376377378379380381382383384385386
if (a.size() != aA.size()) { fail("'subAssign' failed"); } final int begin = a.begin(); final int end = a.end(); for (int i=begin; i<end; i++) { if (a.get(i) != 5) { fail("'subAssign' failed"); } }
411412413414415416417418419420421
} if (a1.size() != aA.size()) { fail("'mul' failed"); } for (int i=a1.begin(); i<a1.end(); i++) { if (a1.get(i) != 1000) { fail("'mul' failed"); } }
436437438439440441442443444445446
} if (a2.size() != mB.cols()) { fail("'mul' failed"); } for (int i=a2.begin(); i<a2.end(); i++) { final double elem = aB2.get(i); if (a2.get(i) != elem) { fail("'mul' failed"); } }
472473474475476477478479480481482
if (a.size() != aA.size()) { fail("'mulAssign' failed"); } final int begin = a.begin(); final int end = a.end(); for (int i=begin; i<end; i++) { if (a.get(i) != 1000) { fail("'mulAssign' failed"); } }
541542543544545546547548549550551
if (a.size() != aA.size()) { fail("'divAssign' failed"); } final int begin = a.begin(); final int end = a.end(); for (int i=begin; i<end; i++) { if (!Closeness.isClose(a.get(i), 2.0)) { fail("'divAssign' failed"); } }
307308309310311312313314315316317
if (a != clone) { fail("addAssign must return <this>"); } final int begin = a.begin(); final int end = a.end(); for (int i=begin; i<end; i++) { if (a.get(i) != 5) { fail("'addAssign' failed"); } }