/external/eigen/unsupported/test/ |
H A D | sparse_extra.cpp | 43 sm.coeffRef(remaining[i].x(),remaining[i].y()) = ref.coeff(remaining[i].x(),remaining[i].y()); 74 // test coeff and coeffRef 79 VERIFY_RAISES_ASSERT( m.coeffRef(zeroCoords[0].x(),zeroCoords[0].y()) = 5 ); 83 m.coeffRef(nonzeroCoords[0].x(), nonzeroCoords[0].y()) = Scalar(5); 84 refMat.coeffRef(nonzeroCoords[0].x(), nonzeroCoords[0].y()) = Scalar(5); 97 // w->coeffRef(remaining[i].x(),remaining[i].y()) = refMat.coeff(remaining[i].x(),remaining[i].y());
|
/external/eigen/Eigen/src/Core/ |
H A D | Block.h | 210 inline Scalar& coeffRef(Index rowId, Index colId) function in class:Eigen::internal::BlockImpl_dense 214 .coeffRef(rowId + m_startRow.value(), colId + m_startCol.value()); 217 inline const Scalar& coeffRef(Index rowId, Index colId) const function in class:Eigen::internal::BlockImpl_dense 220 .coeffRef(rowId + m_startRow.value(), colId + m_startCol.value()); 228 inline Scalar& coeffRef(Index index) function in class:Eigen::internal::BlockImpl_dense 232 .coeffRef(m_startRow.value() + (RowsAtCompileTime == 1 ? 0 : index), 236 inline const Scalar& coeffRef(Index index) const function in class:Eigen::internal::BlockImpl_dense 239 .coeffRef(m_startRow.value() + (RowsAtCompileTime == 1 ? 0 : index), 326 : Base(internal::const_cast_ptr(&xpr.coeffRef( 339 : Base(internal::const_cast_ptr(&xpr.coeffRef(startRo [all...] |
H A D | ReturnByValue.h | 29 // the Block-with-DirectAccess expression requires to have a coeffRef method. 73 Unusable& coeffRef(Index) { return *reinterpret_cast<Unusable*>(this); } function in class:Eigen::ReturnByValue 74 Unusable& coeffRef(Index,Index) { return *reinterpret_cast<Unusable*>(this); } function in class:Eigen::ReturnByValue
|
H A D | Transpose.h | 121 inline ScalarWithConstIfNotLvalue& coeffRef(Index rowId, Index colId) function in class:Eigen::TransposeImpl 124 return derived().nestedExpression().const_cast_derived().coeffRef(colId, rowId); 127 inline ScalarWithConstIfNotLvalue& coeffRef(Index index) function in class:Eigen::TransposeImpl 130 return derived().nestedExpression().const_cast_derived().coeffRef(index); 133 inline const Scalar& coeffRef(Index rowId, Index colId) const function in class:Eigen::TransposeImpl 135 return derived().nestedExpression().coeffRef(colId, rowId); 138 inline const Scalar& coeffRef(Index index) const function in class:Eigen::TransposeImpl 140 return derived().nestedExpression().coeffRef(index);
|
H A D | Reverse.h | 113 return coeffRef(row, col); 116 inline Scalar& coeffRef(Index row, Index col) function in class:Eigen::Reverse 118 return m_matrix.const_cast_derived().coeffRef(ReverseRow ? m_matrix.rows() - row - 1 : row, 133 inline Scalar& coeffRef(Index index) function in class:Eigen::Reverse 135 return m_matrix.const_cast_derived().coeffRef(m_matrix.size() - index - 1); 141 return coeffRef(index);
|
H A D | DenseCoeffsBase.h | 44 // - The LvalueBit means exactly that we can offer a coeffRef() method, which means exactly that we can get references 92 * \sa operator()(Index,Index) const, coeffRef(Index,Index), coeff(Index) const 130 * \sa operator[](Index) const, coeffRef(Index), coeff(Index,Index) const 247 void coeffRef(); 312 * \sa operator()(Index,Index), coeff(Index, Index) const, coeffRef(Index) 314 EIGEN_STRONG_INLINE Scalar& coeffRef(Index row, Index col) function in class:Eigen::DenseCoeffsBase 318 return derived().coeffRef(row, col); 324 return coeffRef(rowIndexByOuterInner(outer, inner), 338 return derived().coeffRef(row, col); 354 * \sa operator[](Index), coeff(Index) const, coeffRef(Inde 358 coeffRef(Index index) function in class:Eigen::DenseCoeffsBase [all...] |
H A D | PermutationMatrix.h | 122 other.coeffRef(indices().coeff(i),i) = typename DenseDerived::Scalar(1); 151 indices().coeffRef(i) = i; 176 if(indices().coeff(k) == i) indices().coeffRef(k) = j; 177 else if(indices().coeff(k) == j) indices().coeffRef(k) = i; 193 std::swap(indices().coeffRef(i), indices().coeffRef(j)); 218 for (int i=0; i<rows();++i) indices().coeffRef(other.indices().coeff(i)) = i; 224 for (int i=0; i<rows();++i) indices().coeffRef(i) = lhs.indices().coeff(rhs.indices().coeff(i)); 370 for (int i=0; i<m_indices.size();++i) m_indices.coeffRef(other.nestedPermutation().indices().coeff(i)) = i; 573 mask.coeffRef(k [all...] |
H A D | MapBase.h | 65 using Base::coeffRef; 101 inline const Scalar& coeffRef(Index rowId, Index colId) const function in class:Eigen::MapBase 106 inline const Scalar& coeffRef(Index index) const function in class:Eigen::MapBase 185 using Base::coeffRef; 201 inline ScalarWithConstIfNotLvalue& coeffRef(Index row, Index col) function in class:Eigen::MapBase 206 inline ScalarWithConstIfNotLvalue& coeffRef(Index index) function in class:Eigen::MapBase
|
/external/eigen/Eigen/src/Eigen2Support/ |
H A D | LeastSquares.h | 97 result->coeffRef(i) = - h.coeffs()[i] / h.coeffs()[funcOfOthers]; 99 result->coeffRef(i) = - h.coeffs()[i+1] / h.coeffs()[funcOfOthers];
|
H A D | Minor.h | 74 inline Scalar& coeffRef(Index row, Index col) function in class:Eigen::Minor 76 return m_matrix.const_cast_derived().coeffRef(row + (row >= m_row), col + (col >= m_col));
|
/external/eigen/Eigen/src/Geometry/ |
H A D | OrthoMethods.h | 144 perp.coeffRef(maxi) = -numext::conj(src.coeff(sndi)) * invnm; 145 perp.coeffRef(sndi) = numext::conj(src.coeff(maxi)) * invnm; 171 perp.coeffRef(0) = -numext::conj(src.y())*invnm; 172 perp.coeffRef(1) = numext::conj(src.x())*invnm; 173 perp.coeffRef(2) = 0; 182 perp.coeffRef(0) = 0; 183 perp.coeffRef(1) = -numext::conj(src.z())*invnm; 184 perp.coeffRef(2) = numext::conj(src.y())*invnm;
|
H A D | AngleAxis.h | 215 res.coeffRef(0,1) = tmp - sin_axis.z(); 216 res.coeffRef(1,0) = tmp + sin_axis.z(); 219 res.coeffRef(0,2) = tmp + sin_axis.y(); 220 res.coeffRef(2,0) = tmp - sin_axis.y(); 223 res.coeffRef(1,2) = tmp - sin_axis.x(); 224 res.coeffRef(2,1) = tmp + sin_axis.x();
|
H A D | Quaternion.h | 69 inline Scalar& x() { return this->derived().coeffs().coeffRef(0); } 71 inline Scalar& y() { return this->derived().coeffs().coeffRef(1); } 73 inline Scalar& z() { return this->derived().coeffs().coeffRef(2); } 75 inline Scalar& w() { return this->derived().coeffs().coeffRef(3); } 546 res.coeffRef(0,0) = Scalar(1)-(tyy+tzz); 547 res.coeffRef(0,1) = txy-twz; 548 res.coeffRef(0,2) = txz+twy; 549 res.coeffRef(1,0) = txy+twz; 550 res.coeffRef(1,1) = Scalar(1)-(txx+tzz); 551 res.coeffRef( [all...] |
/external/eigen/unsupported/Eigen/src/IterativeSolvers/ |
H A D | GMRES.h | 90 r0.makeHouseholder(e, tau.coeffRef(0), beta); 102 v.tail(m - i).applyHouseholderOnTheLeft(H.col(i).tail(m - i - 1), tau.coeffRef(i), workspace.data()); 111 v.tail(m - i).applyHouseholderOnTheLeft(H.col(i).tail(m - i - 1), tau.coeffRef(i), workspace.data()); 121 v.tail(m - k).makeHouseholder(e, tau.coeffRef(k), beta); 125 v.tail(m - k).applyHouseholderOnTheLeft(H.col(k).tail(m - k - 1), tau.coeffRef(k), workspace.data()); 162 x_new.tail(m - k + 1).applyHouseholderOnTheLeft(H.col(k - 1).tail(m - k), tau.coeffRef(k - 1), workspace.data()); 167 x_new.tail(m - i).applyHouseholderOnTheLeft(H.col(i).tail(m - i - 1), tau.coeffRef(i), workspace.data()); 188 r0.makeHouseholder(e, tau.coeffRef(0), beta);
|
/external/eigen/Eigen/src/Eigen2Support/Geometry/ |
H A D | AngleAxis.h | 198 res.coeffRef(0,1) = tmp - sin_axis.z(); 199 res.coeffRef(1,0) = tmp + sin_axis.z(); 202 res.coeffRef(0,2) = tmp + sin_axis.y(); 203 res.coeffRef(2,0) = tmp - sin_axis.y(); 206 res.coeffRef(1,2) = tmp - sin_axis.x(); 207 res.coeffRef(2,1) = tmp + sin_axis.x();
|
/external/eigen/Eigen/src/Eigenvalues/ |
H A D | GeneralizedEigenSolver.h | 315 m_alphas.coeffRef(i) = m_matS.coeff(i, i); 316 m_betas.coeffRef(i) = m_realQZ.matrixT().coeff(i,i); 323 m_alphas.coeffRef(i) = ComplexScalar(m_matS.coeff(i+1, i+1) + p, z); 324 m_alphas.coeffRef(i+1) = ComplexScalar(m_matS.coeff(i+1, i+1) + p, -z); 326 m_betas.coeffRef(i) = m_realQZ.matrixT().coeff(i,i); 327 m_betas.coeffRef(i+1) = m_realQZ.matrixT().coeff(i,i);
|
H A D | RealQZ.h | 239 G.makeGivens(m_S.coeff(i-1,j), m_S.coeff(i,j), &m_S.coeffRef(i-1, j)); 240 m_S.coeffRef(i,j) = Scalar(0.0); 250 G.makeGivens(m_T.coeff(i,i), m_T.coeff(i,i-1), &m_T.coeffRef(i,i)); 251 m_T.coeffRef(i,i-1) = Scalar(0.0); 349 m_S.coeffRef(i+1,i) = Scalar(0.0); 350 m_T.coeffRef(i+1,i) = Scalar(0.0); 372 m_T.coeffRef(zz+1,zz+1) = Scalar(0.0); 382 m_S.coeffRef(zz+1,zz-1) = Scalar(0.0); 392 m_S.coeffRef(l,l-1)=Scalar(0.0); 491 m_S.coeffRef( [all...] |
H A D | ComplexEigenSolver.h | 285 m_matX.coeffRef(k,k) = ComplexScalar(1.0,0.0); 289 m_matX.coeffRef(i,k) = -m_schur.matrixT().coeff(i,k); 291 m_matX.coeffRef(i,k) -= (m_schur.matrixT().row(i).segment(i+1,k-i-1) * m_matX.col(k).segment(i+1,k-i-1)).value(); 299 m_matX.coeffRef(i,k) = m_matX.coeff(i,k) / z;
|
/external/eigen/Eigen/src/Core/products/ |
H A D | TriangularMatrixVector.h | 65 res.coeffRef(i) += alpha * cjRhs.coeff(i); 73 &lhs.coeffRef(s,pi), lhsStride, 74 &rhs.coeffRef(pi), rhsIncr, 75 &res.coeffRef(s), resIncr, alpha); 82 &lhs.coeffRef(0,size), lhsStride, 83 &rhs.coeffRef(size), rhsIncr, 131 res.coeffRef(i) += alpha * (cjLhs.row(i).segment(s,r).cwiseProduct(cjRhs.segment(s,r).transpose())).sum(); 133 res.coeffRef(i) += alpha * cjRhs.coeff(i); 141 &lhs.coeffRef(pi,s), lhsStride, 142 &rhs.coeffRef( [all...] |
/external/eigen/Eigen/src/QR/ |
H A D | ColPivHouseholderQR.h | 443 m_colSqNorms.coeffRef(k) = m_qr.col(k).squaredNorm(); 464 m_colSqNorms.coeffRef(biggest_col_index) = biggest_col_sq_norm; 482 m_colsTranspositions.coeffRef(k) = biggest_col_index; 485 std::swap(m_colSqNorms.coeffRef(k), m_colSqNorms.coeffRef(biggest_col_index)); 491 m_qr.col(k).tail(rows-k).makeHouseholderInPlace(m_hCoeffs.coeffRef(k), beta); 494 m_qr.coeffRef(k,k) = beta; 501 .applyHouseholderOnTheLeft(m_qr.col(k).tail(rows-k-1), m_hCoeffs.coeffRef(k), &m_temp.coeffRef(k+1));
|
H A D | FullPivHouseholderQR.h | 449 m_rows_transpositions.coeffRef(i) = i; 450 m_cols_transpositions.coeffRef(i) = i; 451 m_hCoeffs.coeffRef(i) = Scalar(0); 456 m_rows_transpositions.coeffRef(k) = row_of_biggest_in_corner; 457 m_cols_transpositions.coeffRef(k) = col_of_biggest_in_corner; 468 m_qr.col(k).tail(rows-k).makeHouseholderInPlace(m_hCoeffs.coeffRef(k), beta); 469 m_qr.coeffRef(k,k) = beta; 475 .applyHouseholderOnTheLeft(m_qr.col(k).tail(rows-k-1), m_hCoeffs.coeffRef(k), &m_temp.coeffRef(k+1)); 518 dec().hCoeffs().coeff(k), &temp.coeffRef( [all...] |
/external/eigen/Eigen/src/Cholesky/ |
H A D | LDLT.h | 284 transpositions.coeffRef(k) = index_of_biggest_in_corner; 292 std::swap(mat.coeffRef(k,k),mat.coeffRef(index_of_biggest_in_corner,index_of_biggest_in_corner)); 295 Scalar tmp = mat.coeffRef(i,k); 296 mat.coeffRef(i,k) = numext::conj(mat.coeffRef(index_of_biggest_in_corner,i)); 297 mat.coeffRef(index_of_biggest_in_corner,i) = numext::conj(tmp); 300 mat.coeffRef(index_of_biggest_in_corner,k) = numext::conj(mat.coeff(index_of_biggest_in_corner,k)); 315 mat.coeffRef(k,k) -= (A10 * temp.head(k)).value(); 324 RealScalar realAkk = numext::real(mat.coeffRef( [all...] |
/external/eigen/blas/ |
H A D | BandTriangularSolver.h | 47 other.coeffRef(i,col) -= cjLhs.row(i).segment(actual_start,actual_k).transpose() 51 other.coeffRef(i,col) /= cjLhs(i,IsLower ? k : 0); 83 other.coeffRef(i,col) /= cjLhs(IsLower ? 0 : k, i);
|
/external/eigen/Eigen/src/Householder/ |
H A D | BlockHouseholder.h | 33 vectors.const_cast_derived().coeffRef(i,i) = Scalar(1); 36 vectors.const_cast_derived().coeffRef(i, i) = Vii;
|
/external/eigen/test/eigen2/ |
H A D | eigen2_sparse_vector.cpp | 38 // test coeff and coeffRef 42 //VERIFY_RAISES_ASSERT( v1.coeffRef(zerocoords[i]) = 5 ); 56 v1.coeffRef(nonzerocoords[0]) = Scalar(5); 57 refV1.coeffRef(nonzerocoords[0]) = Scalar(5);
|