/external/eigen/test/eigen2/ |
eigen2_miscmatrices.cpp | 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)); 27 VERIFY_IS_APPROX(m1(r,c), static_cast<Scalar>(1)); 30 Matrix<Scalar, MatrixType::RowsAtCompileTime, MatrixType::RowsAtCompileTime> 33 else VERIFY_IS_MUCH_SMALLER_THAN(square(r,r2), static_cast<Scalar>(1));
|
eigen2_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, 36 Scalar s0 = ei_random<Scalar>(); 37 Scalar s1 = ei_abs(ei_random<Scalar>()); 43 VERIFY_IS_APPROX( Scalar(l0.distance((p0+s0*d0) + d0.unitOrthogonal() * s1)), s1 ) [all...] |
eigen2_prec_inverse_4x4.cpp | 31 typedef typename MatrixType::Scalar Scalar; 42 double error = double( (m*inv-MatrixType::Identity()).norm() / epsilon<Scalar>() ); 50 typedef typename MatrixType::Scalar Scalar; 60 } while(absdet < 10 * epsilon<Scalar>()); 62 double error = double( (m*inv-MatrixType::Identity()).norm() * absdet / epsilon<Scalar>() ); 66 std::cerr << "inverse_general_4x4, Scalar = " << type_name<Scalar>() << std::endl; 70 VERIFY(error_avg < (NumTraits<Scalar>::IsComplex ? 8.0 : 1.25)) [all...] |
eigen2_sum.cpp | 14 typedef typename MatrixType::Scalar Scalar; 21 VERIFY_IS_MUCH_SMALLER_THAN(MatrixType::Zero(rows, cols).sum(), Scalar(1)); 22 VERIFY_IS_APPROX(MatrixType::Ones(rows, cols).sum(), Scalar(float(rows*cols))); // the float() here to shut up excessive MSVC warning about int->complex conversion being lossy 23 Scalar x = Scalar(0); 30 typedef typename VectorType::Scalar Scalar; 36 Scalar s = Scalar(0) [all...] |
eigen2_svd.cpp | 21 typedef typename MatrixType::Scalar Scalar; 22 typedef typename NumTraits<Scalar>::Real RealScalar; 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);
|
eigen2_swap.cpp | 28 typedef typename MatrixType::Scalar Scalar; 36 MatrixType m2 = MatrixType::Random(rows,cols) + Scalar(100) * MatrixType::Identity(rows,cols); 37 OtherMatrixType m3 = OtherMatrixType::Random(rows,cols) + Scalar(200) * OtherMatrixType::Identity(rows,cols);
|
/external/eigen/test/ |
inverse.cpp | 23 typedef typename MatrixType::Scalar Scalar; 24 typedef typename NumTraits<Scalar>::Real RealScalar; 25 typedef Matrix<Scalar, MatrixType::ColsAtCompileTime, 1> VectorType; 34 VERIFY_IS_APPROX((Scalar(2)*m2).inverse(), m2.inverse()*Scalar(0.5));
|
jacobi.cpp | 17 typedef typename MatrixType::Scalar Scalar;
|
linearstructure.cpp | 18 typedef typename MatrixType::Scalar Scalar; 29 Scalar s1 = internal::random<Scalar>(); 30 while (internal::abs(s1)<1e-3) s1 = internal::random<Scalar>(); 48 if(!NumTraits<Scalar>::IsInteger) 60 if(!NumTraits<Scalar>::IsInteger)
|
mapstride.cpp | 15 typedef typename VectorType::Scalar Scalar; 23 Scalar* a_array = internal::aligned_new<Scalar>(arraysize+1); 24 Scalar* array = a_array; 26 array = (Scalar*)(ptrdiff_t(a_array) + (internal::packet_traits<Scalar>::AlignedOnScalar?sizeof(Scalar):sizeof(typename NumTraits<Scalar>::Real))); 54 typedef typename MatrixType::Scalar Scalar [all...] |
miscmatrices.cpp | 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)); 27 VERIFY_IS_APPROX(m1(r,c), static_cast<Scalar>(1)); 30 Matrix<Scalar, MatrixType::RowsAtCompileTime, MatrixType::RowsAtCompileTime> 33 else VERIFY_IS_MUCH_SMALLER_THAN(square(r,r2), static_cast<Scalar>(1));
|
prec_inverse_4x4.cpp | 16 typedef typename MatrixType::Scalar Scalar; 23 double error = double( (m*inv-MatrixType::Identity()).norm() / NumTraits<Scalar>::epsilon() ); 32 typedef typename MatrixType::Scalar Scalar; 42 } while(absdet < NumTraits<Scalar>::epsilon()); 44 double error = double( (m*inv-MatrixType::Identity()).norm() * absdet / NumTraits<Scalar>::epsilon() ); 48 std::cerr << "inverse_general_4x4, Scalar = " << type_name<Scalar>() << std::endl; 54 VERIFY(error_avg < (NumTraits<Scalar>::IsComplex ? 8.0 : 1.25)) [all...] |
product_trmv.cpp | 15 typedef typename MatrixType::Scalar Scalar; 16 typedef typename NumTraits<Scalar>::Real RealScalar; 17 typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, 1> VectorType; 28 Scalar s1 = internal::random<Scalar>(); 42 // check conjugated and scalar multiple expressions (col-major) 58 // check conjugated and scalar multiple expressions (row-major)
|
schur_real.cpp | 19 typedef typename MatrixType::Scalar Scalar; 24 VERIFY(T(row,col) == Scalar(0)); 31 if (T(row,row-1) != Scalar(0)) { 33 Scalar tr = T(row-1,row-1) + T(row,row); 34 Scalar det = T(row-1,row-1) * T(row,row) - T(row-1,row) * T(row,row-1); 78 A(0,0) = std::numeric_limits<typename MatrixType::Scalar>::quiet_NaN();
|
selfadjoint.cpp | 18 typedef typename MatrixType::Scalar Scalar; 19 typedef typename NumTraits<Scalar>::Real RealScalar; 27 m1.diagonal() = m1.diagonal().real().template cast<Scalar>();
|
swap.cpp | 28 typedef typename MatrixType::Scalar Scalar; 36 MatrixType m2 = MatrixType::Random(rows,cols) + Scalar(100) * MatrixType::Identity(rows,cols); 37 OtherMatrixType m3 = OtherMatrixType::Random(rows,cols) + Scalar(200) * OtherMatrixType::Identity(rows,cols);
|
vectorwiseop.cpp | 17 typedef typename ArrayType::Scalar Scalar; 18 typedef typename NumTraits<Scalar>::Real RealScalar; 19 typedef Array<Scalar, ArrayType::RowsAtCompileTime, 1> ColVectorType; 20 typedef Array<Scalar, 1, ArrayType::ColsAtCompileTime> RowVectorType; 110 typedef typename MatrixType::Scalar Scalar; 111 typedef typename NumTraits<Scalar>::Real RealScalar; 112 typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, 1> ColVectorType; 113 typedef Matrix<Scalar, 1, MatrixType::ColsAtCompileTime> RowVectorType [all...] |
/external/eigen/unsupported/Eigen/src/Polynomials/ |
PolynomialUtils.h | 75 typename NumTraits<typename Polynomial::Scalar>::Real cauchy_max_bound( const Polynomial& poly ) 77 typedef typename Polynomial::Scalar Scalar; 78 typedef typename NumTraits<Scalar>::Real Real; 80 assert( Scalar(0) != poly[poly.size()-1] ); 81 const Scalar inv_leading_coeff = Scalar(1)/poly[poly.size()-1]; 97 typename NumTraits<typename Polynomial::Scalar>::Real cauchy_min_bound( const Polynomial& poly ) 99 typedef typename Polynomial::Scalar Scalar; [all...] |
/external/eigen/unsupported/doc/examples/ |
FFT.cpp | 77 typedef typename NumTraits<T_freq>::Real Scalar; 82 static FFT<Scalar> fft; 95 cout << " scalar ";
|
/external/eigen/Eigen/src/Eigen2Support/Geometry/ |
Scaling.h | 20 * \param _Scalar the scalar type, i.e., the type of the coefficients. 35 /** the scalar type of the coefficients */ 36 typedef _Scalar Scalar; 38 typedef Matrix<Scalar,Dim,1> VectorType; 40 typedef Matrix<Scalar,Dim,Dim> LinearMatrixType; 42 typedef Translation<Scalar,Dim> TranslationType; 44 typedef Transform<Scalar,Dim> TransformType; 55 explicit inline Scaling(const Scalar& s) { m_coeffs.setConstant(s); } 57 inline Scaling(const Scalar& sx, const Scalar& sy [all...] |
Translation.h | 20 * \param _Scalar the scalar type, i.e., the type of the coefficients. 35 /** the scalar type of the coefficients */ 36 typedef _Scalar Scalar; 38 typedef Matrix<Scalar,Dim,1> VectorType; 40 typedef Matrix<Scalar,Dim,Dim> LinearMatrixType; 42 typedef Scaling<Scalar,Dim> ScalingType; 44 typedef Transform<Scalar,Dim> TransformType; 55 inline Translation(const Scalar& sx, const Scalar& sy) 62 inline Translation(const Scalar& sx, const Scalar& sy, const Scalar& sz [all...] |
/external/eigen/Eigen/src/Geometry/ |
OrthoMethods.h | 45 typename Scalar = typename VectorLhs::Scalar, 104 EIGEN_STATIC_ASSERT((internal::is_same<Scalar, typename OtherDerived::Scalar>::value), 131 typedef typename traits<Derived>::Scalar Scalar; 132 typedef typename NumTraits<Scalar>::Real RealScalar; 134 typedef Matrix<Scalar,2,1> Vector2; 155 typedef typename traits<Derived>::Scalar Scalar; [all...] |
RotationBase.h | 33 /** the scalar type of the coefficients */ 34 typedef typename internal::traits<Derived>::Scalar Scalar; 37 typedef Matrix<Scalar,Dim,Dim> RotationMatrixType; 38 typedef Matrix<Scalar,Dim,1> VectorType; 56 inline Transform<Scalar,Dim,Isometry> operator*(const Translation<Scalar,Dim>& t) const 57 { return Transform<Scalar,Dim,Isometry>(*this) * t; } 60 inline RotationMatrixType operator*(const UniformScaling<Scalar>& s) const 80 friend inline Transform<Scalar,Dim,Affine> operator*(const DiagonalMatrix<Scalar,Dim>& l, const Derived& r [all...] |
/external/eigen/Eigen/src/SparseCore/ |
CoreIterators.h | 29 typedef typename Derived::Scalar Scalar; 38 EIGEN_STRONG_INLINE Scalar value() const
|
SparseCwiseUnaryOp.h | 37 typedef typename CwiseUnaryOpImpl::Scalar Scalar; 48 EIGEN_STRONG_INLINE typename CwiseUnaryOpImpl::Scalar value() const { return m_functor(Base::value()); } 53 typename CwiseUnaryOpImpl::Scalar& valueRef(); 60 typedef typename CwiseUnaryOpImpl::Scalar Scalar; 71 EIGEN_STRONG_INLINE typename CwiseUnaryOpImpl::Scalar value() const { return m_functor(Base::value()); } 76 typename CwiseUnaryOpImpl::Scalar& valueRef(); 101 typedef typename CwiseUnaryViewImpl::Scalar Scalar; [all...] |