/external/eigen/test/ |
diagonal.cpp | 12 template<typename MatrixType> void diagonal(const MatrixType& m) function 23 //check diagonal() 24 VERIFY_IS_APPROX(m1.diagonal(), m1.transpose().diagonal()); 25 m2.diagonal() = 2 * m1.diagonal(); 26 m2.diagonal()[0] *= 3; 35 // check sub/super diagonal 38 VERIFY(m1.template diagonal<N1>().RowsAtCompileTime == m1.diagonal(N1).size()) [all...] |
nesting_ops.cpp | 21 VERIFY_IS_APPROX( (m.transpose() * m).diagonal().sum(), (m.transpose() * m).diagonal().sum() ); 22 VERIFY_IS_APPROX( (m.transpose() * m).diagonal().array().abs().sum(), (m.transpose() * m).diagonal().array().abs().sum() );
|
diagonalmatrices.cpp | 46 VERIFY_IS_APPROX(ldm1.diagonal(), ldm3.diagonal()); 48 VERIFY_IS_APPROX(ldm1.diagonal(), ldm4.diagonal()); 58 VERIFY_IS_APPROX( ((ldm1 * m1)(i,j)) , ldm1.diagonal()(i) * m1(i,j) ); 59 VERIFY_IS_APPROX( ((ldm1 * (m1+m2))(i,j)) , ldm1.diagonal()(i) * (m1+m2)(i,j) ); 60 VERIFY_IS_APPROX( ((m1 * rdm1)(i,j)) , rdm1.diagonal()(j) * m1(i,j) ); 82 VERIFY_IS_APPROX(LeftDiagonalMatrix(ldm1*s1).diagonal(), ldm1.diagonal() * s1); 83 VERIFY_IS_APPROX(LeftDiagonalMatrix(s1*ldm1).diagonal(), s1 * ldm1.diagonal()) [all...] |
bandmatrix.cpp | 29 m.diagonal().setConstant(123); 30 dm1.diagonal().setConstant(123); 33 m.diagonal(i).setConstant(static_cast<RealScalar>(i)); 34 dm1.diagonal(i).setConstant(static_cast<RealScalar>(i)); 38 m.diagonal(-i).setConstant(-static_cast<RealScalar>(i)); 39 dm1.diagonal(-i).setConstant(-static_cast<RealScalar>(i));
|
/external/eigen/doc/snippets/ |
MatrixBase_diagonal_int.cpp | 3 cout << "Here are the coefficients on the 1st super-diagonal and 2nd sub-diagonal of m:" << endl 4 << m.diagonal(1).transpose() << endl 5 << m.diagonal(-2).transpose() << endl;
|
MatrixBase_diagonal_template_int.cpp | 3 cout << "Here are the coefficients on the 1st super-diagonal and 2nd sub-diagonal of m:" << endl 4 << m.diagonal<1>().transpose() << endl 5 << m.diagonal<-2>().transpose() << endl;
|
MatrixBase_diagonal.cpp | 3 cout << "Here are the coefficients on the main diagonal of m:" << endl 4 << m.diagonal() << endl;
|
Tridiagonalization_diagonal.cpp | 10 VectorXd diag = triOfA.diagonal(); 11 cout << "The diagonal is:" << endl << diag << endl;
|
Tridiagonalization_decomposeInPlace.cpp | 9 cout << "The diagonal of the tridiagonal matrix T is:" << endl << diag << endl;
|
Tridiagonalization_packedMatrix.cpp | 7 cout << "The diagonal and subdiagonal corresponds to the matrix T, which is:"
|
/external/eigen/failtest/ |
const_qualified_diagonal_method_retval.cpp | 12 Diagonal<Matrix3d> b(m.diagonal());
|
diagonal_nonconst_ctor_on_const_xpr.cpp | 12 Diagonal<Matrix3d> d(m);
|
diagonal_on_const_type_actually_const.cpp | 13 Diagonal<CV_QUALIFIER MatrixXf>(m).coeffRef(0) = 1.0f;
|
/external/eigen/Eigen/src/Core/ |
Diagonal.h | 16 /** \class Diagonal 19 * \brief Expression of a diagonal/subdiagonal/superdiagonal in a matrix 21 * \param MatrixType the type of the object in which we are taking a sub/main/super diagonal 22 * \param DiagIndex the index of the sub/super diagonal. The default is 0 and it means the main diagonal. 28 * This class represents an expression of the main diagonal, or any sub/super diagonal 29 * of a square matrix. It is the return type of MatrixBase::diagonal() and MatrixBase::diagonal(Index) and most of the 32 * \sa MatrixBase::diagonal(), MatrixBase::diagonal(Index 168 MatrixBase<Derived>::diagonal() function in class:Eigen::MatrixBase 176 MatrixBase<Derived>::diagonal() const function in class:Eigen::MatrixBase 194 MatrixBase<Derived>::diagonal(Index index) function in class:Eigen::MatrixBase 202 MatrixBase<Derived>::diagonal(Index index) const function in class:Eigen::MatrixBase 221 MatrixBase<Derived>::diagonal() function in class:Eigen::MatrixBase 230 MatrixBase<Derived>::diagonal() const function in class:Eigen::MatrixBase [all...] |
DiagonalMatrix.h | 48 { other.diagonal() += diagonal(); } 51 { other.diagonal() -= diagonal(); } 53 inline const DiagonalVectorType& diagonal() const { return derived().diagonal(); } function in class:Eigen::DiagonalBase 54 inline DiagonalVectorType& diagonal() { return derived().diagonal(); } function in class:Eigen::DiagonalBase 56 inline Index rows() const { return diagonal().size(); } 57 inline Index cols() const { return diagonal().size(); 154 inline const DiagonalVectorType& diagonal() const { return m_diagonal; } function in class:Eigen::DiagonalMatrix 156 inline DiagonalVectorType& diagonal() { return m_diagonal; } function in class:Eigen::DiagonalMatrix 261 const DiagonalVectorType& diagonal() const { return m_diagonal; } function in class:Eigen::DiagonalWrapper [all...] |
DiagonalProduct.h | 52 inline DiagonalProduct(const MatrixType& matrix, const DiagonalType& diagonal) 53 : m_matrix(matrix), m_diagonal(diagonal) 55 eigen_assert(diagonal.diagonal().size() == (ProductOrder == OnTheLeft ? matrix.rows() : matrix.cols())); 63 return m_diagonal.diagonal().coeff(ProductOrder == OnTheLeft ? row : col) * m_matrix.coeff(row, col); 100 internal::pset1<PacketScalar>(m_diagonal.diagonal().coeff(id))); 111 m_diagonal.diagonal().template packet<DiagonalVectorPacketLoadMode>(id)); 118 /** \returns the diagonal matrix product of \c *this by the diagonal matrix \a diagonal [all...] |
BandMatrix.h | 83 /** \returns a vector expression of the main diagonal */ 84 inline Block<CoefficientsType,1,SizeAtCompileTime> diagonal() function in class:Eigen::internal::BandMatrixBase 87 /** \returns a vector expression of the main diagonal (const version) */ 88 inline const Block<const CoefficientsType,1,SizeAtCompileTime> diagonal() const function in class:Eigen::internal::BandMatrixBase 108 /** \returns a vector expression of the \a N -th sub or super diagonal */ 109 template<int N> inline typename DiagonalIntReturnType<N>::Type diagonal() function in class:Eigen::internal::BandMatrixBase 114 /** \returns a vector expression of the \a N -th sub or super diagonal */ 115 template<int N> inline const typename DiagonalIntReturnType<N>::Type diagonal() const function in class:Eigen::internal::BandMatrixBase 120 /** \returns a vector expression of the \a i -th sub or super diagonal */ 121 inline Block<CoefficientsType,1,Dynamic> diagonal(Index i function in class:Eigen::internal::BandMatrixBase 128 inline const Block<const CoefficientsType,1,Dynamic> diagonal(Index i) const function in class:Eigen::internal::BandMatrixBase [all...] |
/external/eigen/doc/examples/ |
function_taking_eigenbase.cpp | 16 // v.asDiagonal() returns a 3x3 diagonal matrix pseudo-expression
|
/external/eigen/unsupported/Eigen/src/NonLinearOptimization/ |
qrsolv.h | 28 // the diagonal, though the diagonal is restored afterward 31 /* in particular, save the diagonal elements of r in x. */ 32 x = s.diagonal(); 37 /* eliminate the diagonal matrix d using a givens rotation. */ 41 /* diagonal element using p from the qr factorization. */ 57 /* compute the modified diagonal element of r and */ 82 sdiag = s.diagonal(); 83 s.diagonal() = x;
|
/external/eigen/unsupported/Eigen/src/LevenbergMarquardt/ |
LMqrsolv.h | 41 // the diagonal, though the diagonal is restored afterward 44 /* in particular, save the diagonal elements of r in x. */ 45 x = s.diagonal(); 50 /* eliminate the diagonal matrix d using a givens rotation. */ 54 /* diagonal element using p from the qr factorization. */ 70 /* compute the modified diagonal element of r and */ 95 sdiag = s.diagonal(); 96 s.diagonal() = x; 121 // the diagonal, though the diagonal is restored afterwar [all...] |
/external/ceres-solver/internal/ceres/ |
dense_sparse_matrix.h | 76 // Only one diagonal can be appended at a time. The diagonal is appended to 85 // After append diagonal (1, 2, 3): 95 // diagonal to a matrix that already has an appended diagonal, and it is also 96 // a fatal error to remove a diagonal from a matrix that has none.
|
levenberg_marquardt_strategy_test.cc | 56 RegularizationCheckingLinearSolver(const int num_cols, const double* diagonal) 58 diagonal_(diagonal) { 131 double diagonal[3]; local 132 diagonal[0] = options.min_lm_diagonal; 133 diagonal[1] = 2.0; 134 diagonal[2] = options.max_lm_diagonal; 136 diagonal[i] = sqrt(diagonal[i] / options.initial_radius); 139 RegularizationCheckingLinearSolver linear_solver(3, diagonal);
|
/external/eigen/doc/ |
tutorial.cpp | 15 m3.diagonal().setOnes(); 33 m4.diagonal().block(1,2).setOnes(); 34 std::cout << "*** Step 5 ***\nm4.diagonal():\n" << m4.diagonal() << std::endl; 35 std::cout << "m4.diagonal().start(3)\n" << m4.diagonal().start(3) << std::endl;
|
QuickReference.dox | 538 <a href="#" class="top">top</a>\section QuickRef_DiagTriSymm Diagonal, Triangular, and Self-adjoint matrices 541 \subsection QuickRef_Diagonal Diagonal matrices 546 view a vector \link MatrixBase::asDiagonal() as a diagonal matrix \endlink \n </td><td>\code 550 Declare a diagonal matrix</td><td>\code 552 diag1.diagonal() = vector;\endcode 554 <tr><td>Access the \link MatrixBase::diagonal() diagonal \endlink and \link MatrixBase::diagonal(Index) super/sub diagonals \endlink of a matrix as a vector (read/write)</td> 556 vec1 = mat1.diagonal(); mat1.diagonal() = vec1; // main diagona [all...] |
/external/eigen/Eigen/src/Eigenvalues/ |
Tridiagonalization.h | 44 * main diagonal and the first diagonal below and above it. The Hessenberg 87 typename internal::add_const_on_value_type<typename Diagonal<const MatrixType>::RealReturnType>::type, 88 const Diagonal<const MatrixType> 92 typename internal::add_const_on_value_type<typename Diagonal< 94 const Diagonal< 197 * - the diagonal and lower sub-diagonal represent the real tridiagonal 257 * returned by diagonal() and subDiagonal() instead of creating a new 261 * matrixQ(), packedMatrix(), diagonal(), subDiagonal( 305 Tridiagonalization<MatrixType>::diagonal() const function in class:Eigen::Tridiagonalization [all...] |