package nom.bdezonia.zorbage.algorithm;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

import nom.bdezonia.zorbage.groups.G;
import nom.bdezonia.zorbage.type.data.float64.real.Float64MatrixMember;
import nom.bdezonia.zorbage.type.data.float64.real.Float64Member;

/**
 * 
 * @author Barry DeZonia
 *
 */
public class TestMatrixZero {

	@Test
	public void test() {
		Float64MatrixMember a = new Float64MatrixMember(2,2,new double[] {1,2,3,4});
		Float64Member value = G.DBL.construct();
		G.DBL_MAT.zero().call(a);
		for (int i = 0; i < a.rows(); i++) {
			for (int j = 0; j < a.cols(); j++) {
				assertEquals(0, value.v(), 0);
			}
		}
	}
}

@@ -610,16 +610,38 @@
  j++) %7B%0A
+%09%09%09%09a.v(i, j, value);%0A
 %09%09%09%09asse

Fix a testing bug