Lines Matching refs:refMat1
545 DenseMatrix refMat1 = DenseMatrix::Zero(rows, cols); in sparse_basic() local
546 initSparse<Scalar>(density, refMat1, m1); in sparse_basic()
549 refMat1.conservativeResize(rows+incRows, cols+incCols); in sparse_basic()
550 if (incRows > 0) refMat1.bottomRows(incRows).setZero(); in sparse_basic()
551 if (incCols > 0) refMat1.rightCols(incCols).setZero(); in sparse_basic()
553 VERIFY_IS_APPROX(m1, refMat1); in sparse_basic()
557 m1.insert(m1.rows()-1, 0) = refMat1(refMat1.rows()-1, 0) = 1; in sparse_basic()
559 m1.insert(0, m1.cols()-1) = refMat1(0, refMat1.cols()-1) = 1; in sparse_basic()
561 VERIFY_IS_APPROX(m1, refMat1); in sparse_basic()
569 DenseMatrix refMat1 = DenseMatrix::Identity(rows, rows); in sparse_basic() local
572 VERIFY_IS_APPROX(m1, refMat1); in sparse_basic()
579 refMat1.coeffRef(i,j) = v; in sparse_basic()
580 VERIFY_IS_APPROX(m1, refMat1); in sparse_basic()
585 refMat1.setIdentity(); in sparse_basic()
586 VERIFY_IS_APPROX(m1, refMat1); in sparse_basic()