Mercurial > hg > may
diff yetilab/matrix/test/test_matrix.yeti @ 220:937f908cae52 matrix_opaque_immutable
More compile fixes
author | Chris Cannam |
---|---|
date | Sat, 11 May 2013 12:20:40 +0100 |
parents | a7f4eb1cdd72 |
children | 77c6a81c577f |
line wrap: on
line diff
--- a/yetilab/matrix/test/test_matrix.yeti Sat May 11 12:07:21 2013 +0100 +++ b/yetilab/matrix/test/test_matrix.yeti Sat May 11 12:20:40 2013 +0100 @@ -4,6 +4,9 @@ mat = load yetilab.matrix.matrix; vec = load yetilab.block.vector; +load yetilab.block.vectortype; +load yetilab.matrix.matrixtype; + import yeti.lang: FailureException; { compare, compareUsing } = load yetilab.test.test; @@ -107,7 +110,7 @@ (map do col: mat.getAt row col m == generator row col done [0..2]) done [0..1]) ), - +/*!!! "setAt-\(name)": \( generator row col = row * 10 + col; m = generate generator { rows = 2, columns = 3 }; @@ -130,7 +133,7 @@ mat.setAt 0 0 6 m; compareMatrices m' m and not mat.equal m m''; ), - +*/ "transposedEmpty-\(name)": \( compare (mat.size (mat.transposed (constMatrix 2 { rows = 0, columns = 0 }))) { columns = 0, rows = 0 } and compare (mat.size (mat.transposed (constMatrix 2 { rows = 0, columns = 4 }))) { columns = 0, rows = 0 } and