Package mikera.matrixx

Source Code of mikera.matrixx.TestTriangular

package mikera.matrixx;

import static org.junit.Assert.*;

import org.junit.Test;

import mikera.matrixx.impl.UpperTriangularMatrix;

/**
* Tests for specialised triangular matrices
*
* @author Mike
*
*/
public class TestTriangular {

  @Test
  public void testClone() {
    UpperTriangularMatrix u=UpperTriangularMatrix.createFrom(Matrixx.createRandomSquareMatrix(3));
    assertEquals(u,u.exactClone());
   
    assertTrue(u.isUpperTriangular());
    assertTrue(u.getTranspose().isLowerTriangular());
  }

}
TOP

Related Classes of mikera.matrixx.TestTriangular

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.