/external/eigen/unsupported/test/ |
H A D | matrix_square_root.cpp | 13 template <typename MatrixType, int IsComplex = NumTraits<typename internal::traits<MatrixType>::Scalar>::IsComplex> 17 template <typename MatrixType> 18 struct generateTestMatrix<MatrixType,0> 20 static void run(MatrixType& result, typename MatrixType::Index size) 22 MatrixType mat = MatrixType::Random(size, size); 23 EigenSolver<MatrixType> es(mat); 24 typename EigenSolver<MatrixType> [all...] |
H A D | matrix_function.cpp | 25 template<typename MatrixType> 26 MatrixType randomMatrixWithRealEivals(const typename MatrixType::Index size) 28 typedef typename MatrixType::Index Index; 29 typedef typename MatrixType::Scalar Scalar; 30 typedef typename MatrixType::RealScalar RealScalar; 31 MatrixType diag = MatrixType::Zero(size, size); 36 MatrixType A = MatrixType [all...] |
/external/eigen/test/eigen2/ |
H A D | eigen2_sizeof.cpp | 12 template<typename MatrixType> void verifySizeOf(const MatrixType&) argument 14 typedef typename MatrixType::Scalar Scalar; 15 if (MatrixType::RowsAtCompileTime!=Dynamic && MatrixType::ColsAtCompileTime!=Dynamic) 16 VERIFY(sizeof(MatrixType)==sizeof(Scalar)*MatrixType::SizeAtCompileTime); 18 VERIFY(sizeof(MatrixType)==sizeof(Scalar*) + 2 * sizeof(typename MatrixType::Index));
|
H A D | eigen2_miscmatrices.cpp | 12 template<typename MatrixType> void miscMatrices(const MatrixType& m) 18 typedef typename MatrixType::Scalar Scalar; 19 typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, 1> VectorType; 20 typedef Matrix<Scalar, 1, MatrixType::ColsAtCompileTime> RowVectorType; 25 VERIFY_IS_APPROX(MatrixType::Ones(rows,cols)(r,c), static_cast<Scalar>(1)); 26 MatrixType m1 = MatrixType::Ones(rows,cols); 30 Matrix<Scalar, MatrixType::RowsAtCompileTime, MatrixType [all...] |
H A D | eigen2_svd.cpp | 13 template<typename MatrixType> void svd(const MatrixType& m) 21 typedef typename MatrixType::Scalar Scalar; 23 MatrixType a = MatrixType::Random(rows,cols); 24 Matrix<Scalar, MatrixType::RowsAtCompileTime, 1> b = 25 Matrix<Scalar, MatrixType::RowsAtCompileTime, 1>::Random(rows,1); 26 Matrix<Scalar, MatrixType::ColsAtCompileTime, 1> x(cols,1), x2(cols,1); 33 SVD<MatrixType> svd(a); 34 MatrixType sigm [all...] |
/external/eigen/test/ |
H A D | sizeof.cpp | 12 template<typename MatrixType> void verifySizeOf(const MatrixType&) argument 14 typedef typename MatrixType::Scalar Scalar; 15 if (MatrixType::RowsAtCompileTime!=Dynamic && MatrixType::ColsAtCompileTime!=Dynamic) 16 VERIFY(sizeof(MatrixType)==sizeof(Scalar)*size_t(MatrixType::SizeAtCompileTime)); 18 VERIFY(sizeof(MatrixType)==sizeof(Scalar*) + 2 * sizeof(typename MatrixType::Index));
|
H A D | miscmatrices.cpp | 12 template<typename MatrixType> void miscMatrices(const MatrixType& m) 17 typedef typename MatrixType::Index Index; 18 typedef typename MatrixType::Scalar Scalar; 19 typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, 1> VectorType; 20 typedef Matrix<Scalar, 1, MatrixType::ColsAtCompileTime> RowVectorType; 25 VERIFY_IS_APPROX(MatrixType::Ones(rows,cols)(r,c), static_cast<Scalar>(1)); 26 MatrixType m1 = MatrixType::Ones(rows,cols); 30 Matrix<Scalar, MatrixType [all...] |
H A D | zerosized.cpp | 12 template<typename MatrixType> void zeroSizedMatrix() 14 MatrixType t1; 16 if (MatrixType::SizeAtCompileTime == Dynamic) 18 if (MatrixType::RowsAtCompileTime == Dynamic) 20 if (MatrixType::ColsAtCompileTime == Dynamic) 23 if (MatrixType::RowsAtCompileTime == Dynamic && MatrixType::ColsAtCompileTime == Dynamic) 25 MatrixType t2(0, 0);
|
H A D | schur_complex.cpp | 14 template<typename MatrixType> void schur(int size = MatrixType::ColsAtCompileTime) argument 16 typedef typename ComplexSchur<MatrixType>::ComplexScalar ComplexScalar; 17 typedef typename ComplexSchur<MatrixType>::ComplexMatrixType ComplexMatrixType; 21 MatrixType A = MatrixType::Random(size, size); 22 ComplexSchur<MatrixType> schurOfA(A); 28 VERIFY(T(row,col) == (typename MatrixType::Scalar)0); 35 ComplexSchur<MatrixType> csUninitialized; 41 MatrixType [all...] |
H A D | upperbidiagonalization.cpp | 13 template<typename MatrixType> void upperbidiag(const MatrixType& m) 15 const typename MatrixType::Index rows = m.rows(); 16 const typename MatrixType::Index cols = m.cols(); 18 typedef typename MatrixType::Scalar Scalar; 19 typedef Matrix<typename MatrixType::RealScalar, MatrixType::RowsAtCompileTime, MatrixType::ColsAtCompileTime> RealMatrixType; 21 MatrixType a = MatrixType [all...] |
H A D | hessenberg.cpp | 16 typedef Matrix<Scalar,Size,Size> MatrixType; typedef 20 MatrixType m = MatrixType::Random(size,size); 21 HessenbergDecomposition<MatrixType> hess(m); 22 MatrixType Q = hess.matrixQ(); 23 MatrixType H = hess.matrixH(); 27 VERIFY(H(row,col) == (typename MatrixType::Scalar)0); 33 MatrixType A = MatrixType::Random(size, size); 34 HessenbergDecomposition<MatrixType> cs [all...] |
H A D | schur_real.cpp | 14 template<typename MatrixType> void verifyIsQuasiTriangular(const MatrixType& T) 16 typedef typename MatrixType::Index Index; 19 typedef typename MatrixType::Scalar Scalar; 40 template<typename MatrixType> void schur(int size = MatrixType::ColsAtCompileTime) argument 44 MatrixType A = MatrixType::Random(size, size); 45 RealSchur<MatrixType> schurOfA(A); 47 MatrixType [all...] |
H A D | qr_fullpivoting.cpp | 14 template<typename MatrixType> void qr() 16 typedef typename MatrixType::Index Index; 21 typedef typename MatrixType::Scalar Scalar; 22 typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, MatrixType::RowsAtCompileTime> MatrixQType; 23 typedef Matrix<Scalar, MatrixType::ColsAtCompileTime, 1> VectorType; 24 MatrixType m1; 26 FullPivHouseholderQR<MatrixType> qr(m1); 33 MatrixType r = qr.matrixQR(); 41 MatrixType [all...] |
H A D | selfadjoint.cpp | 15 template<typename MatrixType> void selfadjoint(const MatrixType& m) 17 typedef typename MatrixType::Index Index; 18 typedef typename MatrixType::Scalar Scalar; 24 MatrixType m1 = MatrixType::Random(rows, cols), 31 VERIFY_IS_APPROX(MatrixType(m3.template triangularView<Upper>()), MatrixType(m1.template triangularView<Upper>())); 36 VERIFY_IS_APPROX(MatrixType(m3.template triangularView<Lower>()), MatrixType(m [all...] |
H A D | prec_inverse_4x4.cpp | 14 template<typename MatrixType> void inverse_permutation_4x4() 16 typedef typename MatrixType::Scalar Scalar; 17 typedef typename MatrixType::RealScalar RealScalar; 21 MatrixType m = PermutationMatrix<4>(indices); 22 MatrixType inv = m.inverse(); 23 double error = double( (m*inv-MatrixType::Identity()).norm() / NumTraits<Scalar>::epsilon() ); 30 template<typename MatrixType> void inverse_general_4x4(int repeat) 32 typedef typename MatrixType::Scalar Scalar; 33 typedef typename MatrixType::RealScalar RealScalar; 37 MatrixType [all...] |
/external/eigen/Eigen/src/Eigen2Support/ |
H A D | LU.h | 15 template<typename MatrixType> 16 class LU : public FullPivLU<MatrixType> 20 typedef typename MatrixType::Scalar Scalar; 21 typedef typename NumTraits<typename MatrixType::Scalar>::Real RealScalar; 22 typedef Matrix<int, 1, MatrixType::ColsAtCompileTime, MatrixType::Options, 1, MatrixType::MaxColsAtCompileTime> IntRowVectorType; 23 typedef Matrix<int, MatrixType::RowsAtCompileTime, 1, MatrixType::Options, MatrixType [all...] |
/external/eigen/bench/ |
H A D | basicbenchmark.h | 7 template<int Mode, typename MatrixType> 8 void benchBasic_loop(const MatrixType& I, MatrixType& m, int iterations) __attribute__((noinline)); 10 template<int Mode, typename MatrixType> 11 void benchBasic_loop(const MatrixType& I, MatrixType& m, int iterations) 18 if (MatrixType::SizeAtCompileTime!=Eigen::Dynamic) asm("#fixedsize"); 24 if (MatrixType::SizeAtCompileTime!=Eigen::Dynamic) asm("#fixedsize"); 30 if (MatrixType::SizeAtCompileTime!=Eigen::Dynamic) asm("#fixedsize"); 37 template<int Mode, typename MatrixType> [all...] |
/external/eigen/Eigen/src/misc/ |
H A D | Image.h | 23 typedef typename DecompositionType::MatrixType MatrixType; typedef in struct:Eigen::internal::traits 25 typename MatrixType::Scalar, 26 MatrixType::RowsAtCompileTime, // the image is a subspace of the destination space, whose 29 MatrixType::Options, 30 MatrixType::MaxRowsAtCompileTime, // the image matrix will consist of columns from the original matrix, 31 MatrixType::MaxColsAtCompileTime // so it has the same number of rows and at most as many columns. 39 typedef typename DecompositionType::MatrixType MatrixType; typedef in struct:Eigen::internal::image_retval_base 43 image_retval_base(const DecompositionType& dec, const MatrixType [all...] |
/external/eigen/Eigen/src/LU/ |
H A D | Inverse.h | 21 template<typename MatrixType, typename ResultType, int Size = MatrixType::RowsAtCompileTime> 24 static inline void run(const MatrixType& matrix, ResultType& result) 30 template<typename MatrixType, typename ResultType, int Size = MatrixType::RowsAtCompileTime> 37 template<typename MatrixType, typename ResultType> 38 struct compute_inverse<MatrixType, ResultType, 1> 40 static inline void run(const MatrixType& matrix, ResultType& result) 42 typedef typename MatrixType::Scalar Scalar; 47 template<typename MatrixType, typenam 358 >::type MatrixType; typedef [all...] |
/external/eigen/unsupported/Eigen/src/MatrixFunctions/ |
H A D | MatrixLogarithm.h | 30 template <typename MatrixType> 35 typedef typename MatrixType::Scalar Scalar; 36 // typedef typename MatrixType::Index Index; 39 // typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, 1> VectorType; 48 MatrixType compute(const MatrixType& A); 52 void compute2x2(const MatrixType& A, MatrixType& result); 53 void computeBig(const MatrixType& A, MatrixType [all...] |
H A D | MatrixFunctionAtomic.h | 23 template <typename MatrixType> 28 typedef typename MatrixType::Scalar Scalar; 29 typedef typename MatrixType::Index Index; 32 typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, 1> VectorType; 43 MatrixType compute(const MatrixType& A); 52 bool taylorConverged(Index s, const MatrixType& F, const MatrixType& Fincr, const MatrixType& P); 64 MatrixType m_Ashifte [all...] |
H A D | MatrixSquareRoot.h | 17 * \tparam MatrixType type of the argument of the matrix square root, 26 template <typename MatrixType> 39 MatrixSquareRootQuasiTriangular(const MatrixType& A) 56 typedef typename MatrixType::Index Index; 57 typedef typename MatrixType::Scalar Scalar; 59 void computeDiagonalPartOfSqrt(MatrixType& sqrtT, const MatrixType& T); 60 void computeOffDiagonalPartOfSqrt(MatrixType& sqrtT, const MatrixType& T); 61 void compute2x2diagonalBlock(MatrixType [all...] |
/external/eigen/Eigen/src/SparseCore/ |
H A D | SparseTranspose.h | 15 template<typename MatrixType> class TransposeImpl<MatrixType,Sparse> 16 : public SparseMatrixBase<Transpose<MatrixType> > 18 typedef typename internal::remove_all<typename MatrixType::Nested>::type _MatrixTypeNested; 21 EIGEN_SPARSE_PUBLIC_INTERFACE(Transpose<MatrixType>) 29 // NOTE: VC10 trigger an ICE if don't put typename TransposeImpl<MatrixType,Sparse>:: in front of Index, 30 // a typedef typename TransposeImpl<MatrixType,Sparse>::Index Index; 33 template<typename MatrixType> class TransposeImpl<MatrixType,Sparse>::InnerIterator 39 EIGEN_STRONG_INLINE InnerIterator(const TransposeImpl& trans, typename TransposeImpl<MatrixType,Spars [all...] |
/external/eigen/Eigen/src/Cholesky/ |
H A D | LLT_MKL.h | 48 template<typename MatrixType> \ 49 static inline typename MatrixType::Index potrf(MatrixType& m, char uplo) \ 57 StorageOrder = MatrixType::Flags&RowMajorBit?RowMajor:ColMajor; \ 69 template<typename MatrixType> \ 70 static typename MatrixType::Index blocked(MatrixType& m) \ 74 template<typename MatrixType, typename VectorType> \ 75 static typename MatrixType::Index rankUpdate(MatrixType [all...] |
/external/eigen/Eigen/src/Eigenvalues/ |
H A D | HessenbergDecomposition.h | 18 template<typename MatrixType> struct HessenbergDecompositionMatrixHReturnType; 19 template<typename MatrixType> 20 struct traits<HessenbergDecompositionMatrixHReturnType<MatrixType> > 22 typedef MatrixType ReturnType; 47 * HessenbergDecomposition(const MatrixType&) constructor which computes the 62 typedef _MatrixType MatrixType; typedef in class:Eigen::HessenbergDecomposition 65 Size = MatrixType::RowsAtCompileTime, 67 Options = MatrixType::Options, 68 MaxSize = MatrixType::MaxRowsAtCompileTime, 72 /** \brief Scalar type for matrices of type #MatrixType [all...] |