/external/eigen/test/ |
D | sparse_block.cpp | 45 DenseMatrix refMat = DenseMatrix::Zero(rows, cols); in sparse_block() local 46 initSparse<Scalar>(density, refMat, m); in sparse_block() 48 VERIFY_IS_APPROX(m, refMat); in sparse_block() 58 VERIFY_IS_APPROX(m.block(i,j,h,w), refMat.block(i,j,h,w)); in sparse_block() 61 VERIFY_IS_APPROX(m.block(i,j,h,w).col(c), refMat.block(i,j,h,w).col(c)); in sparse_block() 64 VERIFY_IS_APPROX(m.block(i,j,h,w).col(c).coeff(r), refMat.block(i,j,h,w).col(c).coeff(r)); in sparse_block() 65 VERIFY_IS_APPROX(m.block(i,j,h,w).coeff(r,c), refMat.block(i,j,h,w).coeff(r,c)); in sparse_block() 70 VERIFY_IS_APPROX(m.block(i,j,h,w).row(r), refMat.block(i,j,h,w).row(r)); in sparse_block() 73 VERIFY_IS_APPROX(m.block(i,j,h,w).row(r).coeff(c), refMat.block(i,j,h,w).row(r).coeff(c)); in sparse_block() 74 VERIFY_IS_APPROX(m.block(i,j,h,w).coeff(r,c), refMat.block(i,j,h,w).coeff(r,c)); in sparse_block() [all …]
|
D | sparse_solvers.cpp | 14 Matrix<Scalar,Dynamic,Dynamic>& refMat, in initSPD() argument 17 Matrix<Scalar,Dynamic,Dynamic> aux(refMat.rows(),refMat.cols()); in initSPD() 18 initSparse(density,refMat,sparseMat); in initSPD() 19 refMat = refMat * refMat.adjoint(); in initSPD() 23 refMat += aux * aux.adjoint(); in initSPD() 28 if (refMat(i,j)!=Scalar(0)) in initSPD() 29 sparseMat.insert(i,j) = refMat(i,j); in initSPD()
|
D | sparse.h | 58 Matrix<Scalar,Dynamic,Dynamic,Opt1>& refMat, 67 …rve(VectorXi::Constant(IsRowMajor ? refMat.rows() : refMat.cols(), int((1.5*density)*(IsRowMajor?r… 105 refMat(ai,aj) = v; 113 Matrix<Scalar,Dynamic,Dynamic, Opt1>& refMat, 121 sparseMat.reserve(int(refMat.rows()*refMat.cols()*density)); 154 refMat(ai,aj) = v;
|
D | sparse_basic.cpp | 39 DenseMatrix refMat = DenseMatrix::Zero(rows, cols); in sparse_basic() local 44 initSparse<Scalar>(density, refMat, m, 0, &zeroCoords, &nonzeroCoords); in sparse_basic() 53 VERIFY_IS_APPROX(m, refMat); in sparse_basic() 57 refMat.coeffRef(nonzeroCoords[0].x(), nonzeroCoords[0].y()) = Scalar(5); in sparse_basic() 60 VERIFY_IS_APPROX(m, refMat); in sparse_basic()
|
/external/eigen/unsupported/test/ |
D | sparse_extra.cpp | 63 DenseMatrix refMat = DenseMatrix::Zero(rows, cols); in sparse_extra() local 68 initSparse<Scalar>(density, refMat, m, 0, &zeroCoords, &nonzeroCoords); in sparse_extra() 80 VERIFY_IS_APPROX(m, refMat); in sparse_extra() 83 refMat.coeffRef(nonzeroCoords[0].x(), nonzeroCoords[0].y()) = Scalar(5); in sparse_extra() 85 VERIFY_IS_APPROX(m, refMat); in sparse_extra() 103 …VERIFY(( test_random_setter<RandomSetter<SparseMatrixType, StdMapTraits> >(m,refMat,nonzeroCoords)… in sparse_extra() 105 …VERIFY(( test_random_setter<RandomSetter<SparseMatrixType, StdUnorderedMapTraits> >(m,refMat,nonze… in sparse_extra() 108 …VERIFY(( test_random_setter<RandomSetter<SparseMatrixType, GoogleDenseHashMapTraits> >(m,refMat,no… in sparse_extra() 111 …ndom_setter<RandomSetter<SparseMatrixType, GoogleSparseHashMapTraits> >(m,refMat,nonzeroCoords) )); in sparse_extra()
|