Home
last modified time | relevance | path

Searched refs:nonZeros (Results 1 – 25 of 44) sorted by relevance

12

/external/eigen/Eigen/src/SparseCore/
DSparseCompressedBase.h56 inline Index nonZeros() const
59 return derived().nonZeros();
114 …const { eigen_assert(isCompressed()); return Array<Scalar,Dynamic,1>::Map(valuePtr(),nonZeros()); }
126 …ffs() { eigen_assert(isCompressed()); return Array<Scalar,Dynamic,1>::Map(valuePtr(),nonZeros()); }
163 m_end = mat.nonZeros();
176 …_values(mat.valuePtr()), m_indices(mat.innerIndexPtr()), m_outer(0), m_id(0), m_end(mat.nonZeros())
223 m_id = mat.nonZeros();
236 …alues(mat.valuePtr()), m_indices(mat.innerIndexPtr()), m_outer(0), m_start(0), m_id(mat.nonZeros())
292 return m_matrix->nonZeros();
DSparseTranspose.h31 inline Index nonZeros() const { return derived().nestedExpression().nonZeros(); } in nonZeros() function
DSparseBlock.h42 Index nonZeros() const in nonZeros() function
132 Index nnz = tmp.nonZeros();
194 StorageIndex nnz_k = internal::convert_index<StorageIndex>(tmp.innerVector(k).nonZeros());
259 eigen_assert(Base::nonZeros()>0); in lastCoeff()
437 Index nonZeros() const { return Dynamic; }
489 Index nnz = m_block.nonZeros();
DSparseVector.h140 inline Index nonZeros() const { return m_data.size(); }
334 for (Index i=0; i<m.nonZeros(); ++i)
431 return m_matrix->nonZeros();
DAmbiVector.h39 Index nonZeros() const;
129 Index AmbiVector<_Scalar,_StorageIndex>::nonZeros() const in nonZeros() function
DSparseRef.h101 …::new (static_cast<Base*>(this)) Base(expr.size(), expr.nonZeros(), expr.innerIndexPtr(), expr.val…
103 …::new (static_cast<Base*>(this)) Base(expr.rows(), expr.cols(), expr.nonZeros(), expr.outerIndexPt…
/external/eigen/test/
Dsparse_basic.cpp164 Index m1_nnz = m1.nonZeros(); in sparse_basic()
172 VERIFY_IS_EQUAL(m4.nonZeros(), m1_nnz); in sparse_basic()
218 VERIFY_IS_EQUAL(m1.nonZeros(), m1_nnz); in sparse_basic()
220 VERIFY_IS_EQUAL(m1.nonZeros(), m1_nnz); in sparse_basic()
236 VERIFY_IS_EQUAL(m1.nonZeros(), m1_nnz); in sparse_basic()
239 VERIFY_IS_EQUAL(m1.nonZeros(), m1_nnz); in sparse_basic()
242 VERIFY_IS_EQUAL(m1.nonZeros(), m1_nnz); in sparse_basic()
245 VERIFY_IS_EQUAL(m1.nonZeros(), m1_nnz); in sparse_basic()
269 …VERIFY_IS_EQUAL(mb3.nonZeros(), (refM1.real().template cast<bool>() && refM2.real().template cast<… in sparse_basic()
351 VERIFY(countFalseNonZero+countTrueNonZero == m2.nonZeros()); in sparse_basic()
[all …]
Dsparse_product.cpp110 VERIFY_IS_EQUAL( (As*As.transpose()).eval().nonZeros(), 4); in sparse_product()
111 VERIFY_IS_EQUAL( (Ad*Ad.transpose()).eval().sparseView().eval().nonZeros(), 2); in sparse_product()
112 VERIFY_IS_EQUAL( (As*As.transpose()).pruned(1e-6).eval().nonZeros(), 2); in sparse_product()
175 VERIFY_IS_EQUAL(m4.nonZeros(), (refMat4.array()!=0).count()); in sparse_product()
177 VERIFY_IS_EQUAL(m4.nonZeros(), (refMat4.array()!=0).count()); in sparse_product()
181 VERIFY_IS_EQUAL(m4.nonZeros(), (refMat4.array()!=0).count()); in sparse_product()
183 VERIFY_IS_EQUAL(m4.nonZeros(), (refMat4.array()!=0).count()); in sparse_product()
187 VERIFY_IS_EQUAL(m4.nonZeros(), (refMat4.array()!=0).count()); in sparse_product()
191 VERIFY_IS_EQUAL(m4.nonZeros(), (refMat4.array()!=0).count()); in sparse_product()
193 VERIFY_IS_EQUAL(m4.nonZeros(), (refMat4.array()!=0).count()); in sparse_product()
[all …]
Dsparse_block.cpp165 VERIFY(j==numext::real(m3.innerVector(j).nonZeros())); in sparse_block()
172 VERIFY(j==numext::real(m3.innerVector(j).nonZeros())); in sparse_block()
177 VERIFY(m3.innerVector(j0).nonZeros() == m3.transpose().innerVector(j0).nonZeros()); in sparse_block()
206 VERIFY(m2.innerVectors(j0,n0).nonZeros() == m2.transpose().innerVectors(j0,n0).nonZeros()); in sparse_block()
262 if(m2.nonZeros()>0) in sparse_block()
285 if(m3.nonZeros()>0) in sparse_block()
Dsparse_solvers.cpp65 …MappedSparseMatrix<Scalar> mm2(rows, cols, cm2.nonZeros(), cm2.outerIndexPtr(), cm2.innerIndexPtr(… in sparse_solvers()
Dsparse_vector.cpp45 VERIFY(int(nonzerocoords.size()) == v1.nonZeros()); in sparse_vector()
/external/eigen/Eigen/src/SparseCholesky/
DSimplicialCholesky.h145 …s << " L: " << ((total+=(m_matrix.cols()+1) * sizeof(int) + m_matrix.nonZeros()*(sizeof(in…
169 if(m_matrix.nonZeros()>0) // otherwise L==I
175 if (m_matrix.nonZeros()>0) // otherwise U==I
602 if(Base::m_matrix.nonZeros()>0) // otherwise L==I
613 if (Base::m_matrix.nonZeros()>0) // otherwise I==I
/external/eigen/unsupported/Eigen/src/Skyline/
DSkylineMatrixBase.h122 inline Index nonZeros() const { in nonZeros() function
123 return derived().nonZeros(); in nonZeros()
/external/eigen/bench/
Dsparse_cholesky.cpp73 std::cout << " nnz: " << sm1.nonZeros() << " => " << chol.matrixL().nonZeros() << "\n"; in doEigen()
Dsparse_product.cpp155 …std::cout << "Eigen sparse\t" << sm1.nonZeros()/(float(sm1.rows())*float(sm1.cols()))*100 << "% * " in main()
156 << sm2.nonZeros()/(float(sm2.rows())*float(sm2.cols()))*100 << "%\n"; in main()
Dsparse_randomsetter.cpp57 << " nnz=" << set1->nonZeros() << std::flush; in dostuff()
Dsparse_transpose.cpp59 std::cout << "Non zeros: " << sm1.nonZeros()/float(sm1.rows()*sm1.cols())*100 << "%\n"; in main()
Dsparse_dense_product.cpp93 std::cout << "Eigen sparse\t" << sm1.nonZeros()/float(sm1.rows()*sm1.cols())*100 << "%\n"; in main()
/external/eigen/doc/snippets/
DSparseMatrix_coeffs.cpp7 cout << "it has " << A.nonZeros() << " stored non zero coefficients that are: " << A.coeffs().trans…
/external/eigen/unsupported/Eigen/src/SparseExtra/
DRandomSetter.h216 mp_target->reserve(nonZeros()); in ~RandomSetter()
308 Index nonZeros() const in nonZeros() function
DDynamicSparseMatrix.h122 Index nonZeros() const
383 Index nonZerosEstimate() const { return m_matrix->nonZeros(); }
DBlockOfDynamicSparseMatrix.h86 Index nonZeros() const
/external/eigen/unsupported/test/
Dkronecker_product.cpp31 VERIFY_IS_EQUAL(ab.nonZeros(), 36); in check_kronecker_product()
76 VERIFY_IS_EQUAL(ab.nonZeros(), 3*2); in check_sparse_kronecker_product()
/external/eigen/Eigen/src/OrderingMethods/
DOrdering.h134 StorageIndex nnz = StorageIndex(mat.nonZeros()); in operator()
/external/eigen/Eigen/src/PaStiXSupport/
DPaStiXSupport.h104 for(i = 0; i < mat.nonZeros(); ++i)
119 for(i = 0; i < mat.nonZeros(); ++i)

12