Lines Matching refs:refMat2
276 DenseMatrix refMat2 = DenseMatrix::Zero(rows, cols); in sparse_basic() local
278 initSparse<Scalar>(density, refMat2, m2); in sparse_basic()
306 DenseMatrix refMat2 = DenseMatrix::Zero(rows, cols); in sparse_basic() local
308 initSparse<Scalar>(density, refMat2, m2); in sparse_basic()
309 VERIFY_IS_APPROX(m2.transpose().eval(), refMat2.transpose().eval()); in sparse_basic()
310 VERIFY_IS_APPROX(m2.transpose(), refMat2.transpose()); in sparse_basic()
312 VERIFY_IS_APPROX(SparseMatrixType(m2.adjoint()), refMat2.adjoint()); in sparse_basic()
396 DenseMatrix refMat2(rows, cols), refMat3(rows, cols); in sparse_basic() local
398 initSparse<Scalar>(density, refMat2, m2); in sparse_basic()
403 VERIFY_IS_APPROX(mapMat2+mapMat3, refMat2+refMat3); in sparse_basic()
404 VERIFY_IS_APPROX(mapMat2+mapMat3, refMat2+refMat3); in sparse_basic()
409 VERIFY_IS_APPROX(mapMat2+mapMat3, refMat2+refMat3); in sparse_basic()
410 VERIFY_IS_APPROX(mapMat2+mapMat3, refMat2+refMat3); in sparse_basic()
427 DenseMatrix refMat2(rows, cols), refMat3(rows, cols); in sparse_basic() local
429 initSparse<Scalar>(density, refMat2, m2); in sparse_basic()
430 refMat3 = refMat2.template triangularView<Lower>(); in sparse_basic()
434 refMat3 = refMat2.template triangularView<Upper>(); in sparse_basic()
439 refMat3 = refMat2.template triangularView<UnitUpper>(); in sparse_basic()
443 refMat3 = refMat2.template triangularView<UnitLower>(); in sparse_basic()
448 refMat3 = refMat2.template triangularView<StrictlyUpper>(); in sparse_basic()
452 refMat3 = refMat2.template triangularView<StrictlyLower>(); in sparse_basic()
458 VERIFY_IS_APPROX(refMat3, DenseMatrix(refMat2.template triangularView<StrictlyUpper>())); in sparse_basic()
464 DenseMatrix refMat2(rows, rows), refMat3(rows, rows); in sparse_basic() local
466 initSparse<Scalar>(density, refMat2, m2); in sparse_basic()
467 refMat3 = refMat2.template selfadjointView<Lower>(); in sparse_basic()
471 refMat3 += refMat2.template selfadjointView<Lower>(); in sparse_basic()
475 refMat3 -= refMat2.template selfadjointView<Lower>(); in sparse_basic()
487 DenseMatrix refMat2 = DenseMatrix::Zero(rows, rows); in sparse_basic() local
489 initSparse<Scalar>(density, refMat2, m2); in sparse_basic()
490 VERIFY_IS_APPROX(m2.eval(), refMat2.sparseView().eval()); in sparse_basic()
493 VERIFY_IS_APPROX((s1*m2).eval(), (s1*refMat2).sparseView().eval()); in sparse_basic()
494 VERIFY_IS_APPROX((m2+m2).eval(), (refMat2+refMat2).sparseView().eval()); in sparse_basic()
495 VERIFY_IS_APPROX((m2*m2).eval(), (refMat2.lazyProduct(refMat2)).sparseView().eval()); in sparse_basic()
496 VERIFY_IS_APPROX((m2*m2).eval(), (refMat2*refMat2).sparseView().eval()); in sparse_basic()
501 DenseMatrix refMat2 = DenseMatrix::Zero(rows, cols); in sparse_basic() local
503 initSparse<Scalar>(density, refMat2, m2); in sparse_basic()
504 VERIFY_IS_APPROX(m2.diagonal(), refMat2.diagonal().eval()); in sparse_basic()
506 VERIFY_IS_APPROX(d, refMat2.diagonal().eval()); in sparse_basic()
508 VERIFY_IS_APPROX(d, refMat2.diagonal().eval()); in sparse_basic()
509 VERIFY_IS_APPROX(const_cast<const SparseMatrixType&>(m2).diagonal(), refMat2.diagonal().eval()); in sparse_basic()
511 initSparse<Scalar>(density, refMat2, m2, ForceNonZeroDiag); in sparse_basic()
512 m2.diagonal() += refMat2.diagonal(); in sparse_basic()
513 refMat2.diagonal() += refMat2.diagonal(); in sparse_basic()
514 VERIFY_IS_APPROX(m2, refMat2); in sparse_basic()
520 DenseMatrix refMat2 = d.asDiagonal(); in sparse_basic() local
523 VERIFY_IS_APPROX(m2, refMat2); in sparse_basic()
525 VERIFY_IS_APPROX(m3, refMat2); in sparse_basic()
526 refMat2 += d.asDiagonal(); in sparse_basic()
528 VERIFY_IS_APPROX(m2, refMat2); in sparse_basic()
593 DenseMatrix refMat2 = DenseMatrix::Zero(rows, cols); in sparse_basic() local
595 initSparse<Scalar>(density, refMat2, m2); in sparse_basic()