/external/eigen/test/eigen2/ |
D | sparse.h | 46 Matrix<Scalar,Dynamic,Dynamic>& refMat, 52 sparseMat.startFill(int(refMat.rows()*refMat.cols()*density)); 53 for(int j=0; j<refMat.cols(); j++) 55 for(int i=0; i<refMat.rows(); i++) 81 refMat(i,j) = v; 89 Matrix<Scalar,Dynamic,Dynamic>& refMat, 95 sparseMat.startFill(int(refMat.rows()*refMat.cols()*density)); 96 for(int j=0; j<refMat.cols(); j++) 98 for(int i=0; i<refMat.rows(); i++) 124 refMat(i,j) = v;
|
D | eigen2_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.fill(i,j) = refMat(i,j); in initSPD()
|
D | eigen2_sparse_basic.cpp | 59 DenseMatrix refMat = DenseMatrix::Zero(rows, cols); in sparse_basic() local 65 initSparse<Scalar>(density, refMat, m, 0, &zeroCoords, &nonzeroCoords); in sparse_basic() 77 VERIFY_IS_APPROX(m, refMat); in sparse_basic() 80 refMat.coeffRef(nonzeroCoords[0].x(), nonzeroCoords[0].y()) = Scalar(5); in sparse_basic() 82 VERIFY_IS_APPROX(m, refMat); in sparse_basic() 154 …VERIFY(( test_random_setter<RandomSetter<SparseMatrixType, StdMapTraits> >(m,refMat,nonzeroCoords)… in sparse_basic() 156 …VERIFY(( test_random_setter<RandomSetter<SparseMatrixType, StdUnorderedMapTraits> >(m,refMat,nonze… in sparse_basic() 159 …VERIFY(( test_random_setter<RandomSetter<SparseMatrixType, GoogleDenseHashMapTraits> >(m,refMat,no… in sparse_basic() 162 …ndom_setter<RandomSetter<SparseMatrixType, GoogleSparseHashMapTraits> >(m,refMat,nonzeroCoords) )); in sparse_basic()
|
/external/eigen/test/ |
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… 102 refMat(ai,aj) = v; 110 Matrix<Scalar,Dynamic,Dynamic, Opt1>& refMat, 118 sparseMat.reserve(int(refMat.rows()*refMat.cols()*density)); 151 refMat(ai,aj) = v;
|
D | sparse_basic.cpp | 28 DenseMatrix refMat = DenseMatrix::Zero(rows, cols); in sparse_basic() local 34 initSparse<Scalar>(density, refMat, m, 0, &zeroCoords, &nonzeroCoords); in sparse_basic() 46 VERIFY_IS_APPROX(m, refMat); in sparse_basic() 49 refMat.coeffRef(nonzeroCoords[0].x(), nonzeroCoords[0].y()) = Scalar(5); in sparse_basic() 51 VERIFY_IS_APPROX(m, refMat); in sparse_basic() 319 DenseMatrix refMat(rows,cols); in sparse_basic() local 320 refMat.setZero(); in sparse_basic() 327 refMat(r,c) += v; in sparse_basic() 331 VERIFY_IS_APPROX(m, refMat); in sparse_basic()
|
/external/eigen/unsupported/test/ |
D | sparse_extra.cpp | 65 DenseMatrix refMat = DenseMatrix::Zero(rows, cols); in sparse_extra() local 70 initSparse<Scalar>(density, refMat, m, 0, &zeroCoords, &nonzeroCoords); in sparse_extra() 82 VERIFY_IS_APPROX(m, refMat); in sparse_extra() 85 refMat.coeffRef(nonzeroCoords[0].x(), nonzeroCoords[0].y()) = Scalar(5); in sparse_extra() 87 VERIFY_IS_APPROX(m, refMat); in sparse_extra() 105 …VERIFY(( test_random_setter<RandomSetter<SparseMatrixType, StdMapTraits> >(m,refMat,nonzeroCoords)… in sparse_extra() 107 …VERIFY(( test_random_setter<RandomSetter<SparseMatrixType, StdUnorderedMapTraits> >(m,refMat,nonze… in sparse_extra() 110 …VERIFY(( test_random_setter<RandomSetter<SparseMatrixType, GoogleDenseHashMapTraits> >(m,refMat,no… in sparse_extra() 113 …ndom_setter<RandomSetter<SparseMatrixType, GoogleSparseHashMapTraits> >(m,refMat,nonzeroCoords) )); in sparse_extra()
|