Home
last modified time | relevance | path

Searched refs:refMat (Results 1 – 7 of 7) sorted by relevance

/external/eigen/test/eigen2/
Dsparse.h46 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;
Deigen2_sparse_solvers.cpp14 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()
Deigen2_sparse_basic.cpp59 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/
Dsparse_solvers.cpp14 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()
Dsparse_basic.cpp33 DenseMatrix refMat = DenseMatrix::Zero(rows, cols); in sparse_basic() local
38 initSparse<Scalar>(density, refMat, m, 0, &zeroCoords, &nonzeroCoords); in sparse_basic()
50 VERIFY_IS_APPROX(m, refMat); in sparse_basic()
53 refMat.coeffRef(nonzeroCoords[0].x(), nonzeroCoords[0].y()) = Scalar(5); in sparse_basic()
55 VERIFY_IS_APPROX(m, refMat); in sparse_basic()
65 VERIFY_IS_APPROX(m.block(i,j,h,w), refMat.block(i,j,h,w)); in sparse_basic()
68 VERIFY_IS_APPROX(m.block(i,j,h,w).col(c), refMat.block(i,j,h,w).col(c)); in sparse_basic()
71 … 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_basic()
72 VERIFY_IS_APPROX(m.block(i,j,h,w).coeff(r,c), refMat.block(i,j,h,w).coeff(r,c)); in sparse_basic()
77 VERIFY_IS_APPROX(m.block(i,j,h,w).row(r), refMat.block(i,j,h,w).row(r)); in sparse_basic()
[all …]
Dsparse.h58 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;
/external/eigen/unsupported/test/
Dsparse_extra.cpp64 DenseMatrix refMat = DenseMatrix::Zero(rows, cols); in sparse_extra() local
69 initSparse<Scalar>(density, refMat, m, 0, &zeroCoords, &nonzeroCoords); in sparse_extra()
81 VERIFY_IS_APPROX(m, refMat); in sparse_extra()
84 refMat.coeffRef(nonzeroCoords[0].x(), nonzeroCoords[0].y()) = Scalar(5); in sparse_extra()
86 VERIFY_IS_APPROX(m, refMat); in sparse_extra()
104 …VERIFY(( test_random_setter<RandomSetter<SparseMatrixType, StdMapTraits> >(m,refMat,nonzeroCoords)… in sparse_extra()
106 …VERIFY(( test_random_setter<RandomSetter<SparseMatrixType, StdUnorderedMapTraits> >(m,refMat,nonze… in sparse_extra()
109 …VERIFY(( test_random_setter<RandomSetter<SparseMatrixType, GoogleDenseHashMapTraits> >(m,refMat,no… in sparse_extra()
112 …ndom_setter<RandomSetter<SparseMatrixType, GoogleSparseHashMapTraits> >(m,refMat,nonzeroCoords) )); in sparse_extra()