HomeSort by relevance Sort by last modified time
    Searched full:diagonal (Results 1 - 25 of 402) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/eigen/test/
diagonal.cpp 12 template<typename MatrixType> void diagonal(const MatrixType& m) function
26 //check diagonal()
27 VERIFY_IS_APPROX(m1.diagonal(), m1.transpose().diagonal());
28 m2.diagonal() = 2 * m1.diagonal();
29 m2.diagonal()[0] *= 3;
38 // check sub/super diagonal
39 if(m1.template diagonal<N1>().RowsAtCompileTime!=Dynamic)
41 VERIFY(m1.template diagonal<N1>().RowsAtCompileTime == m1.diagonal(N1).size())
    [all...]
nesting_ops.cpp 29 VERIFY_IS_APPROX( (m.transpose() * m).diagonal().sum(), (m.transpose() * m).diagonal().sum() );
30 VERIFY_IS_APPROX( (m.transpose() * m).diagonal().array().abs().sum(), (m.transpose() * m).diagonal().array().abs().sum() );
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));
diagonalmatrices.cpp 45 VERIFY_IS_APPROX(ldm1.diagonal(), ldm3.diagonal());
47 VERIFY_IS_APPROX(ldm1.diagonal(), ldm4.diagonal());
57 VERIFY_IS_APPROX( ((ldm1 * m1)(i,j)) , ldm1.diagonal()(i) * m1(i,j) );
58 VERIFY_IS_APPROX( ((ldm1 * (m1+m2))(i,j)) , ldm1.diagonal()(i) * (m1+m2)(i,j) );
59 VERIFY_IS_APPROX( ((m1 * rdm1)(i,j)) , rdm1.diagonal()(j) * m1(i,j) );
  /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
167 MatrixBase<Derived>::diagonal() function in class:Eigen::MatrixBase
175 MatrixBase<Derived>::diagonal() const function in class:Eigen::MatrixBase
193 MatrixBase<Derived>::diagonal(Index index) function in class:Eigen::MatrixBase
201 MatrixBase<Derived>::diagonal(Index index) const function in class:Eigen::MatrixBase
220 MatrixBase<Derived>::diagonal() function in class:Eigen::MatrixBase
229 MatrixBase<Derived>::diagonal() const function in class:Eigen::MatrixBase
    [all...]
DiagonalMatrix.h 47 { other.diagonal() += diagonal(); }
50 { other.diagonal() -= diagonal(); }
52 inline const DiagonalVectorType& diagonal() const { return derived().diagonal(); } function in class:Eigen::DiagonalBase
53 inline DiagonalVectorType& diagonal() { return derived().diagonal(); } function in class:Eigen::DiagonalBase
55 inline Index rows() const { return diagonal().size(); }
56 inline Index cols() const { return diagonal().size();
137 inline const DiagonalVectorType& diagonal() const { return m_diagonal; } function in class:Eigen::DiagonalMatrix
139 inline DiagonalVectorType& diagonal() { return m_diagonal; } function in class:Eigen::DiagonalMatrix
244 const DiagonalVectorType& diagonal() const { return m_diagonal; } function in class:Eigen::DiagonalWrapper
    [all...]
DiagonalProduct.h 51 inline DiagonalProduct(const MatrixType& matrix, const DiagonalType& diagonal)
52 : m_matrix(matrix), m_diagonal(diagonal)
54 eigen_assert(diagonal.diagonal().size() == (ProductOrder == OnTheLeft ? matrix.rows() : matrix.cols()));
62 return m_diagonal.diagonal().coeff(ProductOrder == OnTheLeft ? row : col) * m_matrix.coeff(row, col);
83 internal::pset1<PacketScalar>(m_diagonal.diagonal().coeff(id)));
94 m_diagonal.diagonal().template packet<DiagonalVectorPacketLoadMode>(id));
101 /** \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/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 548 <a href="#" class="top">top</a>\section QuickRef_DiagTriSymm Diagonal, Triangular, and Self-adjoint matrices
551 \subsection QuickRef_Diagonal Diagonal matrices
556 view a vector \link MatrixBase::asDiagonal() as a diagonal matrix \endlink \n </td><td>\code
560 Declare a diagonal matrix</td><td>\code
562 diag1.diagonal() = vector;\endcode
564 <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>
566 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...]
  /external/chromium_org/third_party/opus/src/silk/float/
solve_LS_FLP.c 36 * LDL Factorisation. Finds the upper triangular matrix L and the diagonal
37 * Matrix D (only the diagonal elements returned in a vector)such that
44 silk_float *Dinv /* I/O Pointer to vector holding the inverse diagonal elements of D */
49 * triangular matrix, with ones on the diagonal.
60 * triangular, with ones on the diagonal. (ie then A^T is upper triangular)
83 silk_float Dinv[ MAX_MATRIX_SIZE ]; /* inverse diagonal elements of D*/
89 where L is lower triangular with ones on diagonal
101 diagonal just multiply with 1/d_i
160 silk_float *Dinv /* I/O Pointer to vector holding the inverse diagonal elements of D */

Completed in 1603 milliseconds

1 2 3 4 5 6 7 8 91011>>