use of org.ejml.equation.Equation in project BoofCV by lessthanoptimal.
the class TestPerspectiveOps method multTranC_triple_dense.
@Test
void multTranC_triple_dense() {
DMatrixRMaj A = RandomMatrices_DDRM.rectangle(3, 3, rand);
DMatrixRMaj B = RandomMatrices_DDRM.rectangle(3, 3, rand);
DMatrixRMaj C = RandomMatrices_DDRM.rectangle(3, 3, rand);
DMatrixRMaj D = RandomMatrices_DDRM.rectangle(3, 3, rand);
Equation eq = new Equation(A, "A", B, "B", C, "C");
eq.process("D=A*B*C'");
DMatrixRMaj expected = eq.lookupDDRM("D");
PerspectiveOps.multTranC(A, B, C, D);
assertTrue(MatrixFeatures_DDRM.isEquals(expected, D, UtilEjml.TEST_F64));
}
Aggregations