Package mikera.matrixx.impl

Examples of mikera.matrixx.impl.StridedMatrix


  }

  @Test
  public void testStridedMatrix() {
    AMatrix om = Matrixx.createRandomMatrix(3, 4);
    StridedMatrix sm = StridedMatrix.create(om);
    AMatrix m = sm.getTranspose();
    assertEquals(m.clone(), m);
    assertEquals(m.getRow(1), m.clone().getRow(1));
    assertEquals(m.getTranspose(), m.getTranspose().clone());
    assertTrue(m.getTranspose() instanceof Matrix);
  }
View Full Code Here


    doGenericTests(new ColumnMatrix(Vector.of(1,2,3,4)));
    doGenericTests(new ColumnMatrix(Vector3.of(1,2,3)));
  }
 
  @Test public void g_StridedMatrix() { 
    StridedMatrix strm=StridedMatrix.create(1, 1);
    doGenericTests(strm);
    strm=StridedMatrix.create(Matrixx.createRandomMatrix(3, 4));
    doGenericTests(strm);
    strm=StridedMatrix.wrap(Matrix.create(Matrixx.createRandomMatrix(3, 3)));
    doGenericTests(strm);
View Full Code Here

TOP

Related Classes of mikera.matrixx.impl.StridedMatrix

Copyright © 2018 www.massapicom. 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.