コード例 #1
0
matrixSizes = [[3, 4, 2, 3], [13, 21, 13, 21], [13, 21, 11, 17], [1000, 200],
               [1001, 201], [1000, 1000], [1024, 1024, 1024, 1024],
               [1024, 1024, 256, 256], [1050, 1050], [1001, 1001],
               [1001, 999, 101, 99]]
#matrixSizes = [ [1000,200], [1001,201], [1000,1000], [1050,1050], [1001,1001] ]
#matrixSizes = [ [5,2], [3,3] ]
#matrixSizes = [ [13,21], [301,301], [201,201], [200,200] ]
#dataTypes   = ["double", "int64", "int32", "int16", "uint64", "float" ]
#dataTypes   = ["double"]
dataTypes = ["double", "int64"]
#dataTypes   = ["float"]
successString = "Command completed successfully"
# each test is a sequence of create, fill and comparison (and, of course, cleanup)
tests = []
t = SciDBTest(
    "i+j", "multiply(T,transpose(T))",
    "i*j*%(J)d + (i+j)*(%(J)d*(%(J)d +1)/2)+%(J)d*(%(J)d+1)*(2*%(J)d+1)/6")
tests.append(t)

t = SciDBTest("i+j", "aggregate(T, count(x))", "%(I)d*%(J)d")
t.setResultDim(0)
t.setResultDataType("uint64")
t.setNullableResult(True)
tests.append(t)

t = SciDBTest("i+j", "aggregate(T, count(x), i)", "%(J)d")
t.setResultDim(1, "i")
t.setResultDataType("uint64")
t.setNullableResult(True)
tests.append(t)
コード例 #2
0
ファイル: dense_matrix_tests.py プロジェクト: cerbo/scidb
# class to define a test

# dictionaries filled with commands
matrixNames = ["T", "E", "R"]
matrixSizes = [ [3,4,2,3], [13,21,13,21], [13,21,11,17], [1000,200], [1001,201], [1000,1000], [1024,1024,1024,1024], [1024,1024,256,256], [1050,1050], [1001,1001], [1001,999,101,99] ]
#matrixSizes = [ [1000,200], [1001,201], [1000,1000], [1050,1050], [1001,1001] ]
#matrixSizes = [ [5,2], [3,3] ]
#matrixSizes = [ [13,21], [301,301], [201,201], [200,200] ]
#dataTypes   = ["double", "int64", "int32", "int16", "uint64", "float" ]
#dataTypes   = ["double"]
dataTypes   = ["double", "int64"]
#dataTypes   = ["float"]
successString = "Command completed successfully"
# each test is a sequence of create, fill and comparison (and, of course, cleanup)
tests = []
t = SciDBTest("i+j","multiply(T,transpose(T))", "i*j*%(J)d + (i+j)*(%(J)d*(%(J)d +1)/2)+%(J)d*(%(J)d+1)*(2*%(J)d+1)/6")
tests.append(t)


t = SciDBTest("i+j","aggregate(T, count(x))", "%(I)d*%(J)d")
t.setResultDim(0)
t.setResultDataType("uint64")
t.setNullableResult(True)
tests.append(t)

t = SciDBTest("i+j","aggregate(T, count(x), i)", "%(J)d")
t.setResultDim(1, "i")
t.setResultDataType("uint64")
t.setNullableResult(True)
tests.append(t)
コード例 #3
0
#matrixSizes = [ [3,4,2,3], [13,21,13,21], [13,21,11,17], [1000,200], [1001,201], [1000,1000], [1024,1024,1024,1024], [1024,1024,256,256], [1050,1050], [1001,1001], [1001,999,101,99] ]
#matrixSizes = [ [1024,1024,256,256], [1050,1050], [1001,1001], [1001,999,101,99] ]
#matrixSizes = [ [5,5] ]
#matrixSizes = [ [13,21], [1001,201], [200,200] ]
#dataTypes   = ["double", "int64", "int32", "int16", "uint64", "float" ]
#dataTypes   = ["double"]
dataTypes = ["double", "int64"]
#dataTypes   = ["float"]
successString = "Command completed successfully"
# each test is a sequence of create, fill and comparison (and, of course, cleanup)
tests = []

t = SciDBTest("i+j",
              "aggregate(T, count(x))",
              "iif(%(EMPTY)d=1, 3*%(I)d-2, %(J)d*%(I)d)",
              isSparse=True,
              isOnlySquare=True)
t.setResultDim(0)
t.setSparseFunction("j-2<i and i<j+2")
t.setResultDataType("uint64")
tests.append(t)

t = SciDBTest(
    "i+j",
    "aggregate(T, count(x))",
    "iif(%(EMPTY)d=1,iif(%(I)d>%(J)d,3*%(J)d-1,3*%(I)d-1),%(J)d*%(I)d)",
    isSparse=True,
    isNeverSquare=True)
t.setResultDim(0)
t.setSparseFunction("j-2<i and i<j+2")
コード例 #4
0
ファイル: sparse_matrix_tests.py プロジェクト: cerbo/scidb
#matrixSizes = [ [5,2], [3,3,2,1] ]
#matrixSizes = [ [5,2] ]

#matrixSizes = [ [3,4,2,3], [13,21,13,21], [13,21,11,17], [1000,200], [1001,201], [1000,1000], [1024,1024,1024,1024], [1024,1024,256,256], [1050,1050], [1001,1001], [1001,999,101,99] ]
#matrixSizes = [ [1024,1024,256,256], [1050,1050], [1001,1001], [1001,999,101,99] ]
#matrixSizes = [ [5,5] ]
#matrixSizes = [ [13,21], [1001,201], [200,200] ]
#dataTypes   = ["double", "int64", "int32", "int16", "uint64", "float" ]
#dataTypes   = ["double"]
dataTypes   = ["double", "int64"]
#dataTypes   = ["float"]
successString = "Command completed successfully"
# each test is a sequence of create, fill and comparison (and, of course, cleanup)
tests = []

t = SciDBTest("i+j","aggregate(T, count(x))", "iif(%(EMPTY)d=1, 3*%(I)d-2, %(J)d*%(I)d)",isSparse=True, isOnlySquare=True)
t.setResultDim(0)
t.setSparseFunction("j-2<i and i<j+2")
t.setResultDataType("uint64")
tests.append(t)

t = SciDBTest("i+j","aggregate(T, count(x))", "iif(%(EMPTY)d=1,iif(%(I)d>%(J)d,3*%(J)d-1,3*%(I)d-1),%(J)d*%(I)d)",isSparse=True, isNeverSquare=True)
t.setResultDim(0)
t.setSparseFunction("j-2<i and i<j+2")
t.setResultDataType("uint64")
tests.append(t)

t = SciDBTest("i+j","aggregate(T, sum(x))", "(3*%(I)d-2)*(%(I)d+1)",isSparse=True, isOnlySquare=True)
t.setResultDim(0)
t.setSparseFunction("j-2<i and i<j+2")
#t.setNullableResult(False)