/external/eigen/Eigen/src/PardisoSupport/ |
PardisoSupport.h | 73 typedef typename _MatrixType::Scalar Scalar; 82 typedef typename _MatrixType::Scalar Scalar; 91 typedef typename _MatrixType::Scalar Scalar; 104 typedef typename Traits::Scalar Scalar; 107 typedef SparseMatrix<Scalar,RowMajor,Index> SparseMatrixType; 108 typedef Matrix<Scalar,Dynamic,1> VectorType [all...] |
/external/eigen/Eigen/src/SVD/ |
UpperBidiagonalization.h | 29 typedef typename MatrixType::Scalar Scalar; 32 typedef Matrix<Scalar, 1, ColsAtCompileTime> RowVectorType; 33 typedef Matrix<Scalar, RowsAtCompileTime, 1> ColVectorType; 35 typedef Matrix<Scalar, ColsAtCompileTime, 1> DiagVectorType; 36 typedef Matrix<Scalar, ColsAtCompileTimeMinusOne, 1> SuperDiagVectorType; 39 CwiseUnaryOp<internal::scalar_conjugate_op<Scalar>, const Diagonal<const MatrixType,0> >
|
/external/eigen/Eigen/src/SparseCore/ |
AmbiVector.h | 26 typedef _Scalar Scalar; 28 typedef typename NumTraits<Scalar>::Real RealScalar; 47 Scalar& coeffRef(Index i); 48 Scalar& coeff(Index i); 72 Index allocSize = (size * sizeof(ListEl))/sizeof(Scalar); 73 m_allocatedElements = (allocSize*sizeof(Scalar))/sizeof(ListEl); 74 m_buffer = new Scalar[allocSize]; 78 m_allocatedElements = (size*sizeof(Scalar))/sizeof(ListEl); 79 m_buffer = new Scalar[size]; 91 allocSize = allocSize/sizeof(Scalar) + (allocSize%sizeof(Scalar)>0?1:0) [all...] |
CompressedStorage.h | 26 typedef _Scalar Scalar; 31 typedef typename NumTraits<Scalar>::Real RealScalar; 54 memcpy(m_values, other.m_values, m_size * sizeof(Scalar)); 93 void append(const Scalar& v, Index i) 105 inline Scalar& value(size_t i) { return m_values[i]; } 106 inline const Scalar& value(size_t i) const { return m_values[i]; } 111 static CompressedStorage Map(Index* indices, Scalar* values, size_t size) 142 inline Scalar at(Index key, Scalar defaultValue = Scalar(0)) cons [all...] |
SparseCwiseBinaryOp.h | 97 typedef typename traits<CwiseBinaryXpr>::Scalar Scalar; 124 m_value = m_functor(m_lhsIter.value(), Scalar(0)); 130 m_value = m_functor(Scalar(0), m_rhsIter.value()); 141 EIGEN_STRONG_INLINE Scalar value() const { return m_value; } 153 Scalar m_value; 163 typedef typename CwiseBinaryXpr::Scalar Scalar; 197 EIGEN_STRONG_INLINE Scalar value() const { return m_functor(m_lhsIter.value(), m_rhsIter.value()); } 217 typedef typename CwiseBinaryXpr::Scalar Scalar [all...] |
SparseDiagonalProduct.h | 19 // => each inner vector <=> scalar * sparse vector product 34 typedef typename _Lhs::Scalar Scalar; 105 : public CwiseUnaryOp<scalar_multiple_op<typename Lhs::Scalar>,const Rhs>::InnerIterator 107 typedef typename CwiseUnaryOp<scalar_multiple_op<typename Lhs::Scalar>,const Rhs>::InnerIterator Base; 120 scalar_product_op<typename Lhs::Scalar>, 125 scalar_product_op<typename Lhs::Scalar>, 139 : public CwiseUnaryOp<scalar_multiple_op<typename Rhs::Scalar>,const Lhs>::InnerIterator 141 typedef typename CwiseUnaryOp<scalar_multiple_op<typename Rhs::Scalar>,const Lhs>::InnerIterator Base; 154 scalar_product_op<typename Rhs::Scalar>, [all...] |
/external/eigen/bench/ |
bench_norm.cpp | 9 EIGEN_DONT_INLINE typename T::Scalar sqsumNorm(const T& v) 15 EIGEN_DONT_INLINE typename T::Scalar hypotNorm(const T& v) 21 EIGEN_DONT_INLINE typename T::Scalar blueNorm(const T& v) 27 EIGEN_DONT_INLINE typename T::Scalar lapackNorm(T& v) 29 typedef typename T::Scalar Scalar; 31 Scalar scale = 0; 32 Scalar ssq = 1; 35 Scalar ax = internal::abs(v.coeff(i)); 42 ssq = Scalar(1) + ssq * internal::abs2(scale/ax) [all...] |
eig33.cpp | 51 typedef typename Matrix::Scalar Scalar; 52 const Scalar s_inv3 = 1.0/3.0; 53 const Scalar s_sqrt3 = internal::sqrt(Scalar(3.0)); 58 Scalar c0 = m(0,0)*m(1,1)*m(2,2) + Scalar(2)*m(0,1)*m(0,2)*m(1,2) - m(0,0)*m(1,2)*m(1,2) - m(1,1)*m(0,2)*m(0,2) - m(2,2)*m(0,1)*m(0,1); 59 Scalar c1 = m(0,0)*m(1,1) - m(0,1)*m(0,1) + m(0,0)*m(2,2) - m(0,2)*m(0,2) + m(1,1)*m(2,2) - m(1,2)*m(1,2); 60 Scalar c2 = m(0,0) + m(1,1) + m(2,2); 64 Scalar c2_over_3 = c2*s_inv3 [all...] |
quat_slerp.cpp | 11 EIGEN_DONT_INLINE Q nlerp(const Q& a, const Q& b, typename Q::Scalar t) 17 EIGEN_DONT_INLINE Q slerp_eigen(const Q& a, const Q& b, typename Q::Scalar t) 23 EIGEN_DONT_INLINE Q slerp_legacy(const Q& a, const Q& b, typename Q::Scalar t) 25 typedef typename Q::Scalar Scalar; 26 static const Scalar one = Scalar(1) - dummy_precision<Scalar>(); 27 Scalar d = a.dot(b); 28 Scalar absD = internal::abs(d) [all...] |
/external/eigen/blas/ |
common.h | 16 #ifndef SCALAR 17 #error the token SCALAR must be defined to compile this file 81 typedef SCALAR Scalar; 82 typedef NumTraits<Scalar>::Real RealScalar; 87 IsComplex = Eigen::NumTraits<SCALAR>::IsComplex, 91 typedef Matrix<Scalar,Dynamic,Dynamic,ColMajor> PlainMatrixType; 92 typedef Map<Matrix<Scalar,Dynamic,Dynamic,ColMajor>, 0, OuterStride<> > MatrixType; 93 typedef Map<Matrix<Scalar,Dynamic,1>, 0, InnerStride<Dynamic> > StridedVectorType; 94 typedef Map<Matrix<Scalar,Dynamic,1> > CompactVectorType [all...] |
/external/eigen/test/ |
array_for_matrix.cpp | 15 typedef typename MatrixType::Scalar Scalar; 16 typedef typename NumTraits<Scalar>::Real RealScalar; 17 typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, 1> ColVectorType; 18 typedef Matrix<Scalar, 1, MatrixType::ColsAtCompileTime> RowVectorType; 30 Scalar s1 = internal::random<Scalar>(), 31 s2 = internal::random<Scalar>(); 33 // scalar addition 36 VERIFY_IS_APPROX(((m1*Scalar(2)).array() - s2).matrix(), (m1+m1) - MatrixType::Constant(rows,cols,s2) ) [all...] |
basicstuff.cpp | 17 typedef typename MatrixType::Scalar Scalar; 18 typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, 1> VectorType; 19 typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, MatrixType::RowsAtCompileTime> SquareMatrixType; 30 square = Matrix<Scalar, MatrixType::RowsAtCompileTime, MatrixType::RowsAtCompileTime>::Random(rows, rows); 35 Scalar x = 0; 36 while(x == Scalar(0)) x = internal::random<Scalar>(); 55 if(!NumTraits<Scalar>::IsInteger) 71 VERIFY_IS_MUCH_SMALLER_THAN(MatrixType::Zero(rows,cols)(r,c), static_cast<Scalar>(1)) [all...] |
block.cpp | 16 typedef typename MatrixType::Scalar Scalar; 18 typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, 1> VectorType; 19 typedef Matrix<Scalar, 1, MatrixType::ColsAtCompileTime> RowVectorType; 20 typedef Matrix<Scalar, Dynamic, Dynamic> DynamicMatrixType; 21 typedef Matrix<Scalar, Dynamic, 1> DynamicVectorType; 33 Scalar s1 = internal::random<Scalar>(); 48 VERIFY_IS_APPROX(m1.row(r1), m1_copy.row(r1) + Scalar(2) * s1 * m1_copy.row(r2)); 53 VERIFY_IS_APPROX(m1.col(c1), m1_copy.col(c1) + Scalar(2) * s1 * m1_copy.col(c2)) [all...] |
cholesky.cpp | 31 typedef typename MatrixType::Scalar Scalar; 33 typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, 1> VectorType; 70 typedef typename MatrixType::Scalar Scalar; 71 typedef typename NumTraits<Scalar>::Real RealScalar; 72 typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, MatrixType::RowsAtCompileTime> SquareMatrixType; 73 typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, 1> VectorType; 195 // test mixing real/scalar types 202 typedef typename MatrixType::Scalar Scalar [all...] |
geo_alignedbox.cpp | 24 typedef typename BoxType::Scalar Scalar; 25 typedef typename NumTraits<Scalar>::Real RealScalar; 26 typedef Matrix<Scalar, BoxType::AmbientDimAtCompileTime, 1> VectorType; 42 VERIFY(b0.contains(p0*s1+(Scalar(1)-s1)*p1)); 73 typedef typename BoxType::Scalar Scalar; 74 typedef typename NumTraits<Scalar>::Real RealScalar; 75 typedef Matrix<Scalar, BoxType::AmbientDimAtCompileTime, 1> VectorType; 88 typedef typename GetDifferentType<Scalar>::type OtherScalar [all...] |
geo_parametrizedline.cpp | 23 typedef typename LineType::Scalar Scalar; 24 typedef typename NumTraits<Scalar>::Real RealScalar; 25 typedef Matrix<Scalar, LineType::AmbientDimAtCompileTime, 1> VectorType; 26 typedef Matrix<Scalar, LineType::AmbientDimAtCompileTime, 28 typedef Hyperplane<Scalar,LineType::AmbientDimAtCompileTime> HyperplaneType; 37 Scalar s0 = internal::random<Scalar>(); 38 Scalar s1 = internal::abs(internal::random<Scalar>()); [all...] |
geo_quaternion.cpp | 26 typedef typename QuatType::Scalar Scalar; 27 typedef Matrix<Scalar,3,1> VectorType; 28 typedef AngleAxis<Scalar> AA; 30 Scalar largeEps = test_precision<Scalar>(); 32 Scalar theta_tot = AA(q1*q0.inverse()).angle(); 35 for(Scalar t=0; t<=1.001; t+=0.1) 38 Scalar theta = AA(q*q0.inverse()).angle(); 45 template<typename Scalar, int Options> void quaternion(void [all...] |
nomalloc.cpp | 32 typedef typename MatrixType::Scalar Scalar; 33 typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, 1> VectorType; 42 Scalar s1 = internal::random<Scalar>(); 96 template<typename Scalar> 102 typedef Eigen::Matrix<Scalar, 107 typedef Eigen::Matrix<Scalar, 112 typedef Eigen::Matrix<std::complex<Scalar>,
|
product_extra.cpp | 15 typedef typename MatrixType::Scalar Scalar; 16 typedef typename NumTraits<Scalar>::NonInteger NonInteger; 17 typedef Matrix<Scalar, 1, Dynamic> RowVectorType; 18 typedef Matrix<Scalar, Dynamic, 1> ColVectorType; 19 typedef Matrix<Scalar, Dynamic, Dynamic, 38 Scalar s1 = internal::random<Scalar>(), 39 s2 = internal::random<Scalar>(), 40 s3 = internal::random<Scalar>(); [all...] |
sparse_basic.cpp | 19 typedef typename SparseMatrixType::Scalar Scalar; 23 typedef Matrix<Scalar,Dynamic,Dynamic> DenseMatrix; 24 typedef Matrix<Scalar,Dynamic,1> DenseVector; 25 Scalar eps = 1e-6; 30 Scalar s1 = internal::random<Scalar>(); 34 initSparse<Scalar>(density, refMat, m, 0, &zeroCoords, &nonzeroCoords); 43 if(internal::is_same<SparseMatrixType,SparseMatrix<Scalar,Flags> >::value) 48 m.coeffRef(nonzeroCoords[0].x(), nonzeroCoords[0].y()) = Scalar(5) [all...] |
sparse_product.cpp | 43 typedef typename SparseMatrixType::Scalar Scalar; 47 typedef Matrix<Scalar,Dynamic,Dynamic> DenseMatrix; 48 typedef Matrix<Scalar,Dynamic,1> DenseVector; 50 Scalar s1 = internal::random<Scalar>(); 51 Scalar s2 = internal::random<Scalar>(); 126 DiagonalMatrix<Scalar,Dynamic> d1(DenseVector::Random(rows)); 129 initSparse<Scalar>(density, refM2, m2) [all...] |
sparse_solver.h | 17 typedef typename Mat::Scalar Scalar; 39 VERIFY(x.isApprox(refX,test_precision<Scalar>())); 59 VERIFY(x.isApprox(refX,test_precision<Scalar>())); 68 VERIFY(x.isApprox(refX,test_precision<Scalar>())); 76 typedef typename Mat::Scalar Scalar; 104 if (res_error > test_precision<Scalar>() ){ 115 typedef typename Mat::Scalar Scalar; [all...] |
/external/eigen/test/eigen2/ |
eigen2_hyperplane.cpp | 23 typedef typename HyperplaneType::Scalar Scalar; 24 typedef typename NumTraits<Scalar>::Real RealScalar; 25 typedef Matrix<Scalar, HyperplaneType::AmbientDimAtCompileTime, 1> VectorType; 26 typedef Matrix<Scalar, HyperplaneType::AmbientDimAtCompileTime, 39 Scalar s0 = ei_random<Scalar>(); 40 Scalar s1 = ei_random<Scalar>(); 42 VERIFY_IS_APPROX( n1.eigen2_dot(n1), Scalar(1) ) [all...] |
eigen2_sparse_basic.cpp | 12 template<typename SetterType,typename DenseType, typename Scalar, int Options> 13 bool test_random_setter(SparseMatrix<Scalar,Options>& sm, const DenseType& ref, const std::vector<Vector2i>& nonzeroCoords) 15 typedef SparseMatrix<Scalar,Options> SparseType; 50 typedef typename SparseMatrixType::Scalar Scalar; 54 typedef Matrix<Scalar,Dynamic,Dynamic> DenseMatrix; 55 typedef Matrix<Scalar,Dynamic,1> DenseVector; 56 Scalar eps = 1e-6; 61 Scalar s1 = ei_random<Scalar>(); [all...] |
eigen2_submatrices.cpp | 16 template<typename Scalar, int _Rows, int _Cols> struct CheckMinor 18 typedef Matrix<Scalar, _Rows, _Cols> MatrixType; 24 Matrix<Scalar, Dynamic, Dynamic> mi = m1.minor(0,0).eval(); 33 template<typename Scalar> struct CheckMinor<Scalar,1,1> 35 typedef Matrix<Scalar, 1, 1> MatrixType; 44 typedef typename MatrixType::Scalar Scalar; 46 typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, 1> VectorType; 47 typedef Matrix<Scalar, 1, MatrixType::ColsAtCompileTime> RowVectorType [all...] |