/** * Tests {@link GeneralMatrix#getExtendedElements(Matrix, int, int, boolean)}. * This test is a copy of {@link GeneralMatrixTest#testGetExtendedElements()}, * but on a {@link Matrix2} instance instead of {@link GeneralMatrix}. */ @Test public void testGetExtendedElements() { GeneralMatrixTest.testGetExtendedElements(new Matrix2( StrictMath.PI / 180, // Degrees to radians 180 / StrictMath.PI, // Radians to degrees 0.9, // Grads to degrees 0.1234567)); // Random value with no special meaning. } }
/** * Tests {@link GeneralMatrix#getExtendedElements(Matrix, int, int, boolean)}. * This test verifies that {@code getExtendedElements} can infer default error * terms for some well known values. * * @see Matrix2Test#testGetExtendedElements() */ @Test public void testGetExtendedElements() { testGetExtendedElements(new GeneralMatrix(2, 2, new double[] { StrictMath.PI / 180, // Degrees to radians 180 / StrictMath.PI, // Radians to degrees 0.9, // Grads to degrees 0.1234567})); // Random value with no special meaning. }