11 #ifndef EIGEN_HOUSEHOLDER_H
12 #define EIGEN_HOUSEHOLDER_H
19 template<
int n>
struct decrement_size
43 template<
typename Derived>
48 makeHouseholder(essentialPart, tau, beta);
66 template<
typename Derived>
67 template<
typename EssentialPart>
70 EssentialPart& essential,
95 essential =
tail / (c0 - beta);
96 tau =
conj((beta - c0) / beta);
115 template<
typename Derived>
116 template<
typename EssentialPart>
119 const EssentialPart& essential,
131 tmp.noalias() = essential.adjoint() * bottom;
133 this->
row(0) -= tau * tmp;
134 bottom.noalias() -= tau * essential * tmp;
153 template<
typename Derived>
154 template<
typename EssentialPart>
157 const EssentialPart& essential,
169 tmp.noalias() = right * essential;
171 this->
col(0) -= tau * tmp;
172 right.noalias() -= tau * tmp * essential.adjoint();
RowXpr row(Index i)
This is the const version of row(). */.
ColXpr col(Index i)
This is the const version of col().
FixedSegmentReturnType<... >::Type tail(NType n)
const ImagReturnType imag() const
RealReturnType real() const
#define EIGEN_DEVICE_FUNC
#define EIGEN_STATIC_ASSERT_VECTOR_ONLY(TYPE)
Expression of a fixed-size or dynamic-size block.
NumTraits< Scalar >::Real RealScalar
internal::traits< Derived >::Scalar Scalar
A matrix or vector expression mapping an existing array of data.
void makeHouseholder(EssentialPart &essential, Scalar &tau, RealScalar &beta) const
void applyHouseholderOnTheLeft(const EssentialPart &essential, const Scalar &tau, Scalar *workspace)
void applyHouseholderOnTheRight(const EssentialPart &essential, const Scalar &tau, Scalar *workspace)
void makeHouseholderInPlace(Scalar &tau, RealScalar &beta)
Expression of a fixed-size or dynamic-size sub-vector.
bfloat16() min(const bfloat16 &a, const bfloat16 &b)
EIGEN_ALWAYS_INLINE float sqrt(const float &x)
bool is_exactly_zero(const X &x)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_conjugate_op< typename Derived::Scalar >, const Derived > conj(const Eigen::ArrayBase< Derived > &x)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_sqrt_op< typename Derived::Scalar >, const Derived > sqrt(const Eigen::ArrayBase< Derived > &x)