Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Uncomment some tests I forgot to previously for issues that have been…

… fixed.
  • Loading branch information...
commit 31fc78649f86362020239a5c6bfd2920082a2f7e 1 parent 5007744
@dsimcha dsimcha authored
Showing with 34 additions and 34 deletions.
  1. +12 −12 scid/demos/dmatops.d
  2. +22 −22 scid/demos/zmat.d
View
24 scid/demos/dmatops.d
@@ -17,16 +17,16 @@ void dMatOpsTest() {
enforceMatData( c, 2, 2, [-22,-49,-28,-64] );
// Issue 84
-// dSyMat s = c.t*c;
-//
-// enforceMatData( s, 2, 2, [2885, 3752, 4880] );
-//
-// auto d = eval( s - dSyMat([2800.,3700,4800]) );
-// static assert( is( typeof(d) : dSyMat ) );
-// enforceMatData( d, 2, 2, [85,52,80] );
-// enforce( d[1][0] == 52 );
-//
-// auto e = eval( d - b[0..2][1..3]*10 );
-// static assert( is( typeof(e) : dGeMat ) );
-// enforceMatData( e, 2, 2, [ 55, 12, 2, 20 ] );
+ dSyMat s = c.t*c;
+
+ enforceMatData( s, 2, 2, [2885, 3752, 4880] );
+
+ auto d = eval( s - dSyMat([2800.,3700,4800]) );
+ static assert( is( typeof(d) : dSyMat ) );
+ enforceMatData( d, 2, 2, [85,52,80] );
+ enforce( d[1][0] == 52 );
+
+ auto e = eval( d - b[0..2][1..3]*10 );
+ static assert( is( typeof(e) : dGeMat ) );
+ enforceMatData( e, 2, 2, [ 55, 12, 2, 20 ] );
}
View
44 scid/demos/zmat.d
@@ -21,26 +21,26 @@ void zMatOpsTest() {
c[] = c + zGeMat([[150-190i,280-230i], [430+28i,570+150i]]);
// Issue 84
-// zSyMat s = c.t*c;
-//
-// enforceMatData( s, 2, 2, [ 83.760 + 0.000i,
-// -29.360 + 7.040i,
-// 59.280 + 0.000i ]);
-//
-//
-// enforce( abs(s[1][0] - (-29.360 - 7.040i)) <= 1e-3 );
-//
-// auto d = eval( s - zSyMat([80.+0.i,-28,59]) );
-// static assert( is( typeof(d) : zSyMat ) );
-//
-// enforceMatData( d, 2, 2, [ 3.76 + 0.0i, -1.36 + 7.04i, 0.28 + 0.0i ] );
-//
-//
-// enforce( abs(d[1][0] - (-1.36 - 7.04i)) <= 1e-3 );
-//
-//
-// auto e = eval( d + b[0..2][1..3]*(10.+0.i) );
-// static assert( is( typeof(e) : zGeMat ) );
-//
-// enforceMatData( e, 2, 2, [ 33.760 + 0.000i, 38.640 - 17.040i, 48.640 - 12.960i, 60.280 - 30.000i] );
+ zSyMat s = c.t*c;
+
+ enforceMatData( s, 2, 2, [ 83.760 + 0.000i,
+ -29.360 + 7.040i,
+ 59.280 + 0.000i ]);
+
+
+ enforce( abs(s[1][0] - (-29.360 - 7.040i)) <= 1e-3 );
+
+ auto d = eval( s - zSyMat([80.+0.i,-28,59]) );
+ static assert( is( typeof(d) : zSyMat ) );
+
+ enforceMatData( d, 2, 2, [ 3.76 + 0.0i, -1.36 + 7.04i, 0.28 + 0.0i ] );
+
+
+ enforce( abs(d[1][0] - (-1.36 - 7.04i)) <= 1e-3 );
+
+
+ auto e = eval( d + b[0..2][1..3]*(10.+0.i) );
+ static assert( is( typeof(e) : zGeMat ) );
+
+ enforceMatData( e, 2, 2, [ 33.760 + 0.000i, 38.640 - 17.040i, 48.640 - 12.960i, 60.280 - 30.000i] );
}
Please sign in to comment.
Something went wrong with that request. Please try again.