Searched defs:Scalar (Results 1 - 25 of 306) sorted by relevance

1234567891011>>

/external/eigen/test/eigen2/
H A Deigen2_sizeof.cpp14 typedef typename MatrixType::Scalar Scalar; typedef
16 VERIFY(sizeof(MatrixType)==sizeof(Scalar)*MatrixType::SizeAtCompileTime);
18 VERIFY(sizeof(MatrixType)==sizeof(Scalar*) + 2 * sizeof(typename MatrixType::Index));
H A Deigen2_determinant.cpp24 typedef typename MatrixType::Scalar Scalar; typedef
25 Scalar x = ei_random<Scalar>();
26 VERIFY_IS_APPROX(MatrixType::Identity(size, size).determinant(), Scalar(1));
H A Deigen2_qr.cpp21 typedef typename MatrixType::Scalar Scalar; typedef
22 typedef Matrix<Scalar, MatrixType::ColsAtCompileTime, MatrixType::ColsAtCompileTime> SquareMatrixType;
23 typedef Matrix<Scalar, MatrixType::ColsAtCompileTime, 1> VectorType;
H A Deigen2_alignedbox.cpp22 typedef typename BoxType::Scalar Scalar; typedef
23 typedef typename NumTraits<Scalar>::Real RealScalar;
24 typedef Matrix<Scalar, BoxType::AmbientDimAtCompileTime, 1> VectorType;
36 VERIFY(b0.contains(p0*s1+(Scalar(1)-s1)*p1));
46 typedef typename GetDifferentType<Scalar>::type OtherScalar;
48 VERIFY_IS_APPROX(hp1f.template cast<Scalar>(),b0);
49 AlignedBox<Scalar,Dim> hp1d = b0.template cast<Scalar>();
50 VERIFY_IS_APPROX(hp1d.template cast<Scalar>(),b
[all...]
H A Deigen2_inverse.cpp22 typedef typename MatrixType::Scalar Scalar; typedef
23 typedef typename NumTraits<Scalar>::Real RealScalar;
24 typedef Matrix<Scalar, MatrixType::ColsAtCompileTime, 1> VectorType;
42 VERIFY_IS_APPROX((Scalar(2)*m2).inverse(), m2.inverse()*Scalar(0.5));
H A Deigen2_linearstructure.cpp18 typedef typename MatrixType::Scalar Scalar; typedef
19 typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, 1> VectorType;
31 Scalar s1 = ei_random<Scalar>();
32 while (ei_abs(s1)<1e-3) s1 = ei_random<Scalar>();
50 if(NumTraits<Scalar>::HasFloatingPoint)
62 if(NumTraits<Scalar>::HasFloatingPoint)
H A Deigen2_map.cpp14 typedef typename VectorType::Scalar Scalar; typedef
19 Scalar* array1 = ei_aligned_new<Scalar>(size);
20 Scalar* array2 = ei_aligned_new<Scalar>(size);
21 Scalar* array3 = new Scalar[size+1];
22 Scalar* array3unaligned = std::size_t(array3)%16 == 0 ? array3+1 : array3;
26 Map<VectorType>(array3unaligned, size) = Map<VectorType>((const Scalar*)array
40 typedef typename MatrixType::Scalar Scalar; typedef
68 typedef typename VectorType::Scalar Scalar; typedef
[all...]
H A Deigen2_miscmatrices.cpp18 typedef typename MatrixType::Scalar Scalar; typedef
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));
H A Deigen2_prec_inverse_4x4.cpp31 typedef typename MatrixType::Scalar Scalar; typedef
42 double error = double( (m*inv-MatrixType::Identity()).norm() / epsilon<Scalar>() );
50 typedef typename MatrixType::Scalar Scalar; typedef
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>
[all...]
H A Deigen2_sum.cpp14 typedef typename MatrixType::Scalar Scalar; typedef
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; typedef
36 Scalar s = Scalar(
[all...]
H A Deigen2_svd.cpp21 typedef typename MatrixType::Scalar Scalar; typedef
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);
H A Deigen2_swap.cpp28 typedef typename MatrixType::Scalar Scalar; typedef
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/
H A Dsizeof.cpp14 typedef typename MatrixType::Scalar Scalar; typedef
16 VERIFY(std::ptrdiff_t(sizeof(MatrixType))==std::ptrdiff_t(sizeof(Scalar))*std::ptrdiff_t(MatrixType::SizeAtCompileTime));
18 VERIFY(sizeof(MatrixType)==sizeof(Scalar*) + 2 * sizeof(typename MatrixType::Index));
H A Ddeterminant.cpp25 typedef typename MatrixType::Scalar Scalar; typedef
26 Scalar x = internal::random<Scalar>();
27 VERIFY_IS_APPROX(MatrixType::Identity(size, size).determinant(), Scalar(1));
51 VERIFY_IS_APPROX(m2.block(0,0,0,0).determinant(), Scalar(1));
H A Dreal_qz.cpp21 typedef typename MatrixType::Scalar Scalar; typedef
35 if (abs(qz.matrixT()(i,j))!=Scalar(0.0))
37 if (j<i-1 && abs(qz.matrixS()(i,j))!=Scalar(0.0))
39 if (j==i-1 && j>0 && abs(qz.matrixS()(i,j))!=Scalar(0.0) && abs(qz.matrixS()(i-1,j-1))!=Scalar(0.0))
H A Dselfadjoint.cpp18 typedef typename MatrixType::Scalar Scalar; typedef
26 m1.diagonal() = m1.diagonal().real().template cast<Scalar>();
H A Dbandmatrix.cpp15 typedef typename MatrixType::Scalar Scalar; typedef
16 typedef typename NumTraits<Scalar>::Real RealScalar;
17 typedef Matrix<Scalar,Dynamic,Dynamic> DenseMatrixType;
H A Ddiagonal.cpp15 typedef typename MatrixType::Scalar Scalar; typedef
43 VERIFY_IS_APPROX(m2.template diagonal<N1>(), static_cast<Scalar>(2) * m1.diagonal(N1));
45 VERIFY_IS_APPROX(m2.template diagonal<N1>()[0], static_cast<Scalar>(6) * m1.template diagonal<N1>()[0]);
50 VERIFY_IS_APPROX(m2.template diagonal<N2>()[0], static_cast<Scalar>(6) * m1.template diagonal<N2>()[0]);
53 VERIFY_IS_APPROX(m2.template diagonal<N1>(), static_cast<Scalar>(2) * m1.diagonal(N1));
55 VERIFY_IS_APPROX(m2.diagonal(N1)[0], static_cast<Scalar>(6) * m1.diagonal(N1)[0]);
58 VERIFY_IS_APPROX(m2.template diagonal<N2>(), static_cast<Scalar>(2) * m1.diagonal(N2));
60 VERIFY_IS_APPROX(m2.diagonal(N2)[0], static_cast<Scalar>(6) * m1.diagonal(N2)[0]);
H A Ddontalign.cpp23 typedef typename MatrixType::Scalar Scalar; typedef
24 typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, 1> VectorType;
25 typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, MatrixType::RowsAtCompileTime> SquareMatrixType;
40 VERIFY(square.determinant() != Scalar(0));
43 Scalar* array = internal::aligned_new<Scalar>(rows);
H A Deigen2support.cpp17 typedef typename MatrixType::Scalar Scalar; typedef
25 Scalar s1 = internal::random<Scalar>(),
26 s2 = internal::random<Scalar>();
31 VERIFY_IS_APPROX((m1*Scalar(2)).cwise() - s2, (m1+m1) - MatrixType::Constant(rows,cols,s2) );
/external/eigen/Eigen/src/Core/
H A DCommaInitializer.h30 typedef typename XprType::Scalar Scalar; typedef in struct:Eigen::CommaInitializer
33 inline CommaInitializer(XprType& xpr, const Scalar& s)
58 CommaInitializer& operator,(const Scalar& s)
138 inline CommaInitializer<Derived> DenseBase<Derived>::operator<< (const Scalar& s)
143 /** \sa operator<<(const Scalar&) */
/external/llvm/lib/MC/
H A DYAML.cpp27 StringRef yaml::ScalarTraits<yaml::BinaryRef>::input(StringRef Scalar, void *, argument
29 if (Scalar.size() % 2 != 0)
33 for (unsigned I = 0, N = Scalar.size(); I != N; ++I)
34 if (!isxdigit(Scalar[I]))
36 Val = yaml::BinaryRef(Scalar);
/external/eigen/Eigen/src/Eigen2Support/
H A DLeastSquares.h90 typedef typename VectorType::Scalar Scalar; typedef
91 typedef Hyperplane<Scalar, VectorType::SizeAtCompileTime> HyperplaneType;
133 typename NumTraits<typename VectorType::Scalar>::Real* soundness = 0)
135 typedef typename VectorType::Scalar Scalar; typedef
136 typedef Matrix<Scalar,VectorType::SizeAtCompileTime,VectorType::SizeAtCompileTime> CovMatrixType;
/external/eigen/Eigen/src/Eigenvalues/
H A DMatrixBaseEigenvalues.h69 typedef typename internal::traits<Derived>::Scalar Scalar; typedef
70 return internal::eigenvalues_selector<Derived, NumTraits<Scalar>::IsComplex>::run(derived());
/external/eigen/Eigen/src/Householder/
H A DBlockHouseholder.h25 typedef typename VectorsType::Scalar Scalar; typedef
32 Scalar Vii = vectors(i,i);
33 vectors.const_cast_derived().coeffRef(i,i) = Scalar(1);
51 Matrix<typename MatrixType::Scalar, TFactorSize, TFactorSize, ColMajor> T(nbVecs,nbVecs);
57 Matrix<typename MatrixType::Scalar,VectorsType::ColsAtCompileTime,MatrixType::ColsAtCompileTime,0,

Completed in 254 milliseconds

1234567891011>>