11 #ifndef EIGEN_HYPERPLANE_H
12 #define EIGEN_HYPERPLANE_H
35 template <
typename Scalar_,
int AmbientDim_,
int Options_>
57 template<
int OtherOptions>
218 template<
typename XprType>
230 eigen_assert(0 &&
"invalid traits value in Hyperplane::transform()");
242 template<
int TrOptions>
256 template<
typename NewScalarType>
260 return typename internal::cast_return_type<
Hyperplane,
265 template<
typename OtherScalarType,
int OtherOptions>
273 template<
int OtherOptions>
Array< double, 1, 3 > e(1./3., 0.5, 2.)
cout<< "Here is the matrix m:"<< endl<< m<< endl;JacobiSVD< MatrixXf, ComputeThinU|ComputeThinV > svd(m)
#define EIGEN_DEVICE_FUNC
#define EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF_VECTORIZABLE_FIXED_SIZE(Scalar, Size)
#define EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE(TYPE, SIZE)
M1<< 1, 2, 3, 4, 5, 6, 7, 8, 9;Map< RowVectorXf > v1(M1.data(), M1.size())
Expression of a fixed-size or dynamic-size block.
static Hyperplane Through(const VectorType &p0, const VectorType &p1)
VectorType intersection(const Hyperplane &other) const
ConstNormalReturnType normal() const
Hyperplane & transform(const Transform< Scalar, AmbientDimAtCompileTime, Affine, TrOptions > &t, TransformTraits traits=Affine)
Scalar signedDistance(const VectorType &p) const
Block< Coefficients, AmbientDimAtCompileTime, 1 > NormalReturnType
Hyperplane(const Hyperplane< Scalar, AmbientDimAtCompileTime, OtherOptions > &other)
internal::cast_return_type< Hyperplane, Hyperplane< NewScalarType, AmbientDimAtCompileTime, Options > >::type cast() const
Hyperplane(const VectorType &n, const VectorType &e)
NormalReturnType normal()
const Block< const Coefficients, AmbientDimAtCompileTime, 1 > ConstNormalReturnType
@ AmbientDimAtCompileTime
const Scalar & offset() const
Scalar absDistance(const VectorType &p) const
static Hyperplane Through(const VectorType &p0, const VectorType &p1, const VectorType &p2)
Hyperplane(const VectorType &n, const Scalar &d)
bool isApprox(const Hyperplane< Scalar, AmbientDimAtCompileTime, OtherOptions > &other, const typename NumTraits< Scalar >::Real &prec=NumTraits< Scalar >::dummy_precision()) const
Hyperplane(const Hyperplane< OtherScalarType, AmbientDimAtCompileTime, OtherOptions > &other)
NumTraits< Scalar >::Real RealScalar
Matrix< Scalar, Index(AmbientDimAtCompileTime)==Dynamic ? Dynamic :Index(AmbientDimAtCompileTime)+1, 1, Options > Coefficients
const Coefficients & coeffs() const
Matrix< Scalar, AmbientDimAtCompileTime, 1 > VectorType
Hyperplane(const ParametrizedLine< Scalar, AmbientDimAtCompileTime > ¶metrized)
VectorType projection(const VectorType &p) const
Hyperplane & transform(const MatrixBase< XprType > &mat, TransformTraits traits=Affine)
Two-sided Jacobi SVD decomposition of a rectangular matrix.
Base class for all dense matrices, vectors, and expressions.
const VectorType & direction() const
const VectorType & origin() const
constexpr const Scalar & coeff(Index rowId, Index colId) const
bool isMuchSmallerThan(const Scalar &x, const OtherScalar &y, const typename NumTraits< Scalar >::Real &precision=NumTraits< Scalar >::dummy_precision())
EIGEN_ALWAYS_INLINE std::enable_if_t< NumTraits< T >::IsSigned||NumTraits< T >::IsComplex, typename NumTraits< T >::Real > abs(const T &x)
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Holds information about the various numeric (i.e. scalar) types allowed by Eigen.