Home | History | Annotate | Download | only in test

Lines Matching refs:asDiagonal

36   SquareMatrixType sq_m1 (v1.asDiagonal());
37 VERIFY_IS_APPROX(sq_m1, v1.asDiagonal().toDenseMatrix());
38 sq_m1 = v1.asDiagonal();
39 VERIFY_IS_APPROX(sq_m1, v1.asDiagonal().toDenseMatrix());
40 SquareMatrixType sq_m2 = v1.asDiagonal();
43 ldm1 = v1.asDiagonal();
46 LeftDiagonalMatrix ldm4 = v1.asDiagonal();
60 VERIFY_IS_APPROX( ((v1.asDiagonal() * m1)(i,j)) , v1(i) * m1(i,j) );
61 VERIFY_IS_APPROX( ((m1 * rv1.asDiagonal())(i,j)) , rv1(j) * m1(i,j) );
62 VERIFY_IS_APPROX( (((v1+v2).asDiagonal() * m1)(i,j)) , (v1+v2)(i) * m1(i,j) );
63 VERIFY_IS_APPROX( (((v1+v2).asDiagonal() * (m1+m2))(i,j)) , (v1+v2)(i) * (m1+m2)(i,j) );
64 VERIFY_IS_APPROX( ((m1 * (rv1+rv2).asDiagonal())(i,j)) , (rv1+rv2)(j) * m1(i,j) );
65 VERIFY_IS_APPROX( (((m1+m2) * (rv1+rv2).asDiagonal())(i,j)) , (rv1+rv2)(j) * (m1+m2)(i,j) );
71 big.block(i,j,rows,cols) = v1.asDiagonal() * big.block(i,j,rows,cols);
73 VERIFY_IS_APPROX((big.block(i,j,rows,cols)) , v1.asDiagonal() * m1 );
76 big.block(i,j,rows,cols) = big.block(i,j,rows,cols) * rv1.asDiagonal();
77 VERIFY_IS_APPROX((big.block(i,j,rows,cols)) , m1 * rv1.asDiagonal() );