/external/llvm/lib/IR/ |
D | ValueTypes.cpp | 43 ResultVT.LLVMTy = VectorType::get(VT.getTypeForEVT(Context), NumElements); in getExtendedVectorVT() 97 return EVT::getEVT(cast<VectorType>(LLVMTy)->getElementType()); in getExtendedVectorElementType() 102 return cast<VectorType>(LLVMTy)->getNumElements(); in getExtendedVectorNumElements() 109 if (VectorType *VTy = dyn_cast<VectorType>(LLVMTy)) in getExtendedSizeInBits() 218 case MVT::v2i1: return VectorType::get(Type::getInt1Ty(Context), 2); in getTypeForEVT() 219 case MVT::v4i1: return VectorType::get(Type::getInt1Ty(Context), 4); in getTypeForEVT() 220 case MVT::v8i1: return VectorType::get(Type::getInt1Ty(Context), 8); in getTypeForEVT() 221 case MVT::v16i1: return VectorType::get(Type::getInt1Ty(Context), 16); in getTypeForEVT() 222 case MVT::v32i1: return VectorType::get(Type::getInt1Ty(Context), 32); in getTypeForEVT() 223 case MVT::v64i1: return VectorType::get(Type::getInt1Ty(Context), 64); in getTypeForEVT() [all …]
|
/external/eigen/test/eigen2/ |
D | eigen2_map.cpp | 12 template<typename VectorType> void map_class_vector(const VectorType& m) in map_class_vector() 14 typedef typename VectorType::Scalar Scalar; in map_class_vector() 24 Map<VectorType, Aligned>(array1, size) = VectorType::Random(size); in map_class_vector() 25 Map<VectorType>(array2, size) = Map<VectorType>(array1, size); in map_class_vector() 26 …Map<VectorType>(array3unaligned, size) = Map<VectorType>((const Scalar*)array1, size); // test non… in map_class_vector() 27 VectorType ma1 = Map<VectorType>(array1, size); in map_class_vector() 28 VectorType ma2 = Map<VectorType, Aligned>(array2, size); in map_class_vector() 29 VectorType ma3 = Map<VectorType>(array3unaligned, size); in map_class_vector() 66 template<typename VectorType> void map_static_methods(const VectorType& m) in map_static_methods() 68 typedef typename VectorType::Scalar Scalar; in map_static_methods() [all …]
|
D | eigen2_regression.cpp | 13 template<typename VectorType, 16 VectorType **points, in makeNoisyCohyperplanarPoints() 18 typename VectorType::Scalar noiseAmplitude) in makeNoisyCohyperplanarPoints() 20 typedef typename VectorType::Scalar Scalar; in makeNoisyCohyperplanarPoints() 34 VectorType& cur_point = *(points[i]); in makeNoisyCohyperplanarPoints() 37 cur_point = VectorType::Random(size)/*.normalized()*/; in makeNoisyCohyperplanarPoints() 47 *(points[i]) += noiseAmplitude * VectorType::Random(size); in makeNoisyCohyperplanarPoints() 50 template<typename VectorType> 52 VectorType **points, in check_linearRegression() 53 const VectorType& original, in check_linearRegression() [all …]
|
D | eigen2_hyperplane.cpp | 25 typedef Matrix<Scalar, HyperplaneType::AmbientDimAtCompileTime, 1> VectorType; in hyperplane() typedef 29 VectorType p0 = VectorType::Random(dim); in hyperplane() 30 VectorType p1 = VectorType::Random(dim); in hyperplane() 32 VectorType n0 = VectorType::Random(dim).normalized(); in hyperplane() 33 VectorType n1 = VectorType::Random(dim).normalized(); in hyperplane() 53 Scaling<Scalar,HyperplaneType::AmbientDimAtCompileTime> scaling(VectorType::Random()); in hyperplane() 54 Translation<Scalar,HyperplaneType::AmbientDimAtCompileTime> translation(VectorType::Random()); in hyperplane()
|
D | eigen2_alignedbox.cpp | 24 typedef Matrix<Scalar, BoxType::AmbientDimAtCompileTime, 1> VectorType; in alignedbox() typedef 26 VectorType p0 = VectorType::Random(dim); in alignedbox() 27 VectorType p1 = VectorType::Random(dim); in alignedbox() 31 BoxType b1(VectorType::Random(dim),VectorType::Random(dim)); in alignedbox()
|
D | eigen2_parametrizedline.cpp | 25 typedef Matrix<Scalar, LineType::AmbientDimAtCompileTime, 1> VectorType; in parametrizedline() typedef 29 VectorType p0 = VectorType::Random(dim); in parametrizedline() 30 VectorType p1 = VectorType::Random(dim); in parametrizedline() 32 VectorType d0 = VectorType::Random(dim).normalized(); in parametrizedline()
|
/external/eigen/test/ |
D | mapped_matrix.cpp | 16 template<typename VectorType> void map_class_vector(const VectorType& m) in map_class_vector() 18 typedef typename VectorType::Index Index; in map_class_vector() 19 typedef typename VectorType::Scalar Scalar; in map_class_vector() 29 Map<VectorType, Aligned>(array1, size) = VectorType::Random(size); in map_class_vector() 30 Map<VectorType, Aligned>(array2, size) = Map<VectorType,Aligned>(array1, size); in map_class_vector() 31 Map<VectorType>(array3unaligned, size) = Map<VectorType>(array1, size); in map_class_vector() 32 VectorType ma1 = Map<VectorType, Aligned>(array1, size); in map_class_vector() 33 VectorType ma2 = Map<VectorType, Aligned>(array2, size); in map_class_vector() 34 VectorType ma3 = Map<VectorType>(array3unaligned, size); in map_class_vector() 39 VERIFY_RAISES_ASSERT((Map<VectorType,Aligned>(array3unaligned, size))) in map_class_vector() [all …]
|
D | denseLM.cpp | 25 typedef Matrix<Scalar,Dynamic,1> VectorType; typedef 30 VectorType model(const VectorType& uv, VectorType& x) in model() 32 VectorType y; // Should change to use expression template in model() 40 VectorBlock<const VectorType> u(uv, 0, half); in model() 41 VectorBlock<const VectorType> v(uv, half, half); in model() 50 void initPoints(VectorType& uv_ref, VectorType& x) in initPoints() 56 int operator()(const VectorType& uv, VectorType& fvec) in operator ()() 65 VectorBlock<const VectorType> u(uv, 0, half); in operator ()() 66 VectorBlock<const VectorType> v(uv, half, half); in operator ()() 78 int df(const VectorType& uv, JacobianType& fjac) in df() [all …]
|
D | sparseLM.cpp | 23 typedef Matrix<Scalar,Dynamic,1> VectorType; typedef 29 VectorType model(const VectorType& uv, VectorType& x) in model() 31 VectorType y; //Change this to use expression template in model() 39 VectorBlock<const VectorType> u(uv, 0, half); in model() 40 VectorBlock<const VectorType> v(uv, half, half); in model() 54 void initPoints(VectorType& uv_ref, VectorType& x) in initPoints() 59 int operator()(const VectorType& uv, VectorType& fvec) in operator ()() 66 VectorBlock<const VectorType> u(uv, 0, half); in operator ()() 67 VectorBlock<const VectorType> v(uv, half, half); in operator ()() 83 int df(const VectorType& uv, JacobianType& fjac) in df() [all …]
|
D | geo_parametrizedline.cpp | 26 typedef Matrix<Scalar, LineType::AmbientDimAtCompileTime, 1> VectorType; in parametrizedline() typedef 29 VectorType p0 = VectorType::Random(dim); in parametrizedline() 30 VectorType p1 = VectorType::Random(dim); in parametrizedline() 32 VectorType d0 = VectorType::Random(dim).normalized(); in parametrizedline() 54 VectorType p2 = VectorType::Random(dim); in parametrizedline() 55 VectorType n2 = VectorType::Random(dim).normalized(); in parametrizedline() 58 VectorType pi = l0.pointAt(t); in parametrizedline()
|
D | geo_alignedbox.cpp | 30 typedef Matrix<Scalar, BoxType::AmbientDimAtCompileTime, 1> VectorType; in alignedbox() typedef 34 VectorType p0 = VectorType::Random(dim); in alignedbox() 35 VectorType p1 = VectorType::Random(dim); in alignedbox() 37 p1 = VectorType::Random(dim); } in alignedbox() 41 BoxType b1(VectorType::Random(dim),VectorType::Random(dim)); in alignedbox() 68 VectorType r = b0.sample(); in alignedbox() 82 typedef Matrix<Scalar, BoxType::AmbientDimAtCompileTime, 1> VectorType; in alignedboxCastTests() typedef 86 VectorType p0 = VectorType::Random(dim); in alignedboxCastTests() 87 VectorType p1 = VectorType::Random(dim); in alignedboxCastTests()
|
D | conservative_resize.cpp | 63 typedef Matrix<Scalar, 1, Eigen::Dynamic> VectorType; in run_vector_tests() typedef 65 VectorType m, n; in run_vector_tests() 68 m = n = VectorType::Random(50); in run_vector_tests() 72 m = n = VectorType::Random(50); in run_vector_tests() 76 m = n = VectorType::Random(50); in run_vector_tests() 80 m = n = VectorType::Random(50); in run_vector_tests() 88 m = n = VectorType::Random(50); in run_vector_tests() 92 m = n = VectorType::Random(50); in run_vector_tests() 101 m = n = VectorType::Random(50); in run_vector_tests() 102 m.conservativeResizeLike(VectorType::Zero(size)); in run_vector_tests() [all …]
|
/external/eigen/Eigen/src/Core/ |
D | VectorBlock.h | 48 template<typename VectorType, int Size> 49 struct traits<VectorBlock<VectorType, Size> > 50 : public traits<Block<VectorType, 51 traits<VectorType>::Flags & RowMajorBit ? 1 : Size, 52 traits<VectorType>::Flags & RowMajorBit ? Size : 1> > 57 template<typename VectorType, int Size> class VectorBlock 58 : public Block<VectorType, 59 internal::traits<VectorType>::Flags & RowMajorBit ? 1 : Size, 60 internal::traits<VectorType>::Flags & RowMajorBit ? Size : 1> 62 typedef Block<VectorType, [all …]
|
/external/eigen/Eigen/src/Eigen2Support/ |
D | LeastSquares.h | 84 template<typename VectorType> 86 VectorType **points, in linearRegression() 87 VectorType *result, in linearRegression() 90 typedef typename VectorType::Scalar Scalar; in linearRegression() 91 typedef Hyperplane<Scalar, VectorType::SizeAtCompileTime> HyperplaneType; in linearRegression() 129 template<typename VectorType, typename HyperplaneType> 131 VectorType **points, 133 typename NumTraits<typename VectorType::Scalar>::Real* soundness = 0) 135 typedef typename VectorType::Scalar Scalar; 136 typedef Matrix<Scalar,VectorType::SizeAtCompileTime,VectorType::SizeAtCompileTime> CovMatrixType; [all …]
|
/external/eigen/Eigen/src/Eigen2Support/Geometry/ |
D | ParametrizedLine.h | 36 typedef Matrix<Scalar,AmbientDimAtCompileTime,1> VectorType; typedef 48 ParametrizedLine(const VectorType& origin, const VectorType& direction) in ParametrizedLine() 54 static inline ParametrizedLine Through(const VectorType& p0, const VectorType& p1) in Through() 62 const VectorType& origin() const { return m_origin; } in origin() 63 VectorType& origin() { return m_origin; } in origin() 65 const VectorType& direction() const { return m_direction; } in direction() 66 VectorType& direction() { return m_direction; } in direction() 71 RealScalar squaredDistance(const VectorType& p) const in squaredDistance() 73 VectorType diff = p-origin(); in squaredDistance() 79 RealScalar distance(const VectorType& p) const { return ei_sqrt(squaredDistance(p)); } in distance() [all …]
|
D | Hyperplane.h | 40 typedef Matrix<Scalar,AmbientDimAtCompileTime,1> VectorType; typedef 56 inline Hyperplane(const VectorType& n, const VectorType& e) in Hyperplane() 67 inline Hyperplane(const VectorType& n, Scalar d) in Hyperplane() 77 static inline Hyperplane Through(const VectorType& p0, const VectorType& p1) in Through() 88 static inline Hyperplane Through(const VectorType& p0, const VectorType& p1, const VectorType& p2) in Through() 90 EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE(VectorType, 3) in Through() 122 …inline Scalar signedDistance(const VectorType& p) const { return p.eigen2_dot(normal()) + offset()… in signedDistance() 127 inline Scalar absDistance(const VectorType& p) const { return ei_abs(signedDistance(p)); } in absDistance() 131 …inline VectorType projection(const VectorType& p) const { return p - signedDistance(p) * normal();… in projection() 168 VectorType intersection(const Hyperplane& other) in intersection() [all …]
|
D | AlignedBox.h | 34 typedef Matrix<Scalar,AmbientDimAtCompileTime,1> VectorType; typedef 45 inline AlignedBox(const VectorType& _min, const VectorType& _max) : m_min(_min), m_max(_max) {} in AlignedBox() 48 inline explicit AlignedBox(const VectorType& p) : m_min(p), m_max(p) {} in AlignedBox() 66 inline const VectorType& (min)() const { return m_min; } 68 inline VectorType& (min)() { return m_min; } 70 inline const VectorType& (max)() const { return m_max; } 72 inline VectorType& (max)() { return m_max; } 75 inline bool contains(const VectorType& p) const in contains() 83 inline AlignedBox& extend(const VectorType& p) in extend() 95 inline AlignedBox& translate(const VectorType& t) in translate() [all …]
|
/external/eigen/Eigen/src/Geometry/ |
D | ParametrizedLine.h | 41 typedef Matrix<Scalar,AmbientDimAtCompileTime,1,Options> VectorType; typedef 58 ParametrizedLine(const VectorType& origin, const VectorType& direction) in ParametrizedLine() 65 static inline ParametrizedLine Through(const VectorType& p0, const VectorType& p1) in Through() 73 const VectorType& origin() const { return m_origin; } in origin() 74 VectorType& origin() { return m_origin; } in origin() 76 const VectorType& direction() const { return m_direction; } in direction() 77 VectorType& direction() { return m_direction; } in direction() 82 RealScalar squaredDistance(const VectorType& p) const in squaredDistance() 84 VectorType diff = p - origin(); in squaredDistance() 90 …RealScalar distance(const VectorType& p) const { using std::sqrt; return sqrt(squaredDistance(p));… in distance() [all …]
|
D | Hyperplane.h | 45 typedef Matrix<Scalar,AmbientDimAtCompileTime,1> VectorType; typedef 67 inline Hyperplane(const VectorType& n, const VectorType& e) in Hyperplane() 78 inline Hyperplane(const VectorType& n, const Scalar& d) in Hyperplane() 88 static inline Hyperplane Through(const VectorType& p0, const VectorType& p1) in Through() 99 static inline Hyperplane Through(const VectorType& p0, const VectorType& p1, const VectorType& p2) in Through() 101 EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE(VectorType, 3) in Through() 103 VectorType v0(p2 - p0), v1(p1 - p0); in Through() 143 inline Scalar signedDistance(const VectorType& p) const { return normal().dot(p) + offset(); } in signedDistance() 148 …inline Scalar absDistance(const VectorType& p) const { using std::abs; return abs(signedDistance(p… in absDistance() 152 …inline VectorType projection(const VectorType& p) const { return p - signedDistance(p) * normal();… in projection() [all …]
|
D | AlignedBox.h | 40 typedef Matrix<Scalar,AmbientDimAtCompileTime,1> VectorType; typedef 105 inline const VectorType& (min)() const { return m_min; } 107 inline VectorType& (min)() { return m_min; } 109 inline const VectorType& (max)() const { return m_max; } 111 inline VectorType& (max)() { return m_max; } 115 … const CwiseBinaryOp<internal::scalar_sum_op<Scalar>, const VectorType, const VectorType> > 123 … CwiseBinaryOp< internal::scalar_difference_op<Scalar>, const VectorType, const VectorType> sizes(… in sizes() 134 …inline CwiseBinaryOp< internal::scalar_difference_op<Scalar>, const VectorType, const VectorType> … in diagonal() 146 inline VectorType corner(CornerType corner) const in corner() 150 VectorType res; in corner() [all …]
|
D | Translation.h | 39 typedef Matrix<Scalar,Dim,1> VectorType; typedef 49 VectorType m_coeffs; 71 explicit inline Translation(const VectorType& vector) : m_coeffs(vector) {} in Translation() 87 const VectorType& vector() const { return m_coeffs; } in vector() 88 VectorType& vector() { return m_coeffs; } in vector() 90 const VectorType& translation() const { return m_coeffs; } in translation() 91 VectorType& translation() { return m_coeffs; } in translation() 133 inline VectorType operator* (const VectorType& other) const 145 static const Translation Identity() { return Translation(VectorType::Zero()); } in Identity()
|
/external/eigen/unsupported/test/ |
D | BVH.cpp | 27 typedef Matrix<double, Dim, 1> VectorType; typedef 30 Ball(const VectorType &c, double r) : center(c), radius(r) {} in Ball() 32 VectorType center; 44 typedef Matrix<double, Dim, 1> VectorType; typedef 49 BallPointStuff(const VectorType &inP) : p(inP), calls(0), count(0) {} in BallPointStuff() 69 …bool intersectVolumeObject(const BoxType &r, const VectorType &v) { ++calls; return r.contains(v);… in intersectVolumeObject() 70 bool intersectObjectObject(const BallType &b, const VectorType &v){ in intersectObjectObject() 83 …double minimumOnVolumeObject(const BoxType &r, const VectorType &v) { ++calls; return r.squaredExt… in minimumOnVolumeObject() 84 …double minimumOnObjectObject(const BallType &b, const VectorType &v){ ++calls; return SQR((std::ma… in minimumOnObjectObject() 86 VectorType p; [all …]
|
/external/llvm/include/llvm/IR/ |
D | DerivedTypes.h | 357 class VectorType : public SequentialType { 360 VectorType(const VectorType &) = delete; 361 const VectorType &operator=(const VectorType &) = delete; 362 VectorType(Type *ElType, unsigned NumEl); 368 static VectorType *get(Type *ElementType, unsigned NumElements); 374 static VectorType *getInteger(VectorType *VTy) { in getInteger() 378 return VectorType::get(EltTy, VTy->getNumElements()); in getInteger() 385 static VectorType *getExtendedElementVectorType(VectorType *VTy) { in getExtendedElementVectorType() 388 return VectorType::get(EltTy, VTy->getNumElements()); in getExtendedElementVectorType() 395 static VectorType *getTruncatedElementVectorType(VectorType *VTy) { in getTruncatedElementVectorType() [all …]
|
/external/eigen/unsupported/Eigen/src/IterativeSolvers/ |
D | GMRES.h | 64 typedef Matrix < Scalar, Dynamic, 1 > VectorType; in gmres() typedef 73 VectorType p0 = rhs - mat*x; in gmres() 74 VectorType r0 = precond.solve(p0); in gmres() 81 VectorType w = VectorType::Zero(restart + 1); in gmres() 84 VectorType tau = VectorType::Zero(restart + 1); in gmres() 88 VectorType e(m-1); in gmres() 98 VectorType v = VectorType::Unit(m, k - 1), workspace(m); in gmres() 106 VectorType t=mat*v; in gmres() 119 VectorType e(m - k - 1); in gmres() 155 VectorType y = w.head(k); in gmres() [all …]
|
/external/llvm/include/llvm/ADT/ |
D | MapVector.h | 31 typename VectorType = std::vector<std::pair<KeyT, ValueT> > > 33 typedef typename VectorType::size_type size_type; 36 VectorType Vector; 39 typedef typename VectorType::iterator iterator; 40 typedef typename VectorType::const_iterator const_iterator; 41 typedef typename VectorType::reverse_iterator reverse_iterator; 42 typedef typename VectorType::const_reverse_iterator const_reverse_iterator; 134 typename VectorType::iterator erase(typename VectorType::iterator Iterator) { in erase() 168 template <typename KeyT, typename ValueT, typename MapType, typename VectorType> 170 void MapVector<KeyT, ValueT, MapType, VectorType>::remove_if(Function Pred) { in remove_if()
|