@Test
public void elementMult_scalar() {

	for( boolean sub : new boolean[]{false,true}) {
		Tensor_F64 T = TensorFactory_F64.random(rand,sub, 5,3,1);
		Tensor_F64 original = T.copy();
		double s = 2.1;
		TensorOps_F64.elementMult(T,s);
		int N = original.length();
		for (int i = 0; i < N; i++) {
			assertEquals( original.getAtIndex(i)*s , T.getAtIndex(i) , DeepBoofConstants.TEST_TOL_F64 );
		}
	}
}