Package org.encog.mathutil.matrices

Examples of org.encog.mathutil.matrices.Matrix.clear()


 
  public void testClear() throws Throwable
  {
    double matrixData[] = {1.0,2.0,3.0,4.0};
    Matrix matrix = Matrix.createColumnMatrix(matrixData);
    matrix.clear();
    TestCase.assertEquals(matrix.get(0, 0), 0.0);
    TestCase.assertEquals(matrix.get(1, 0), 0.0);
    TestCase.assertEquals(matrix.get(2, 0), 0.0);
    TestCase.assertEquals(matrix.get(3, 0), 0.0);
  }
View Full Code Here


 
  public void testClear() throws Throwable
  {
    double matrixData[] = {1.0,2.0,3.0,4.0};
    Matrix matrix = Matrix.createColumnMatrix(matrixData);
    matrix.clear();
    TestCase.assertEquals(matrix.get(0, 0), 0.0);
    TestCase.assertEquals(matrix.get(1, 0), 0.0);
    TestCase.assertEquals(matrix.get(2, 0), 0.0);
    TestCase.assertEquals(matrix.get(3, 0), 0.0);
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.