11 #ifndef EIGEN_HOUSEHOLDER_H 12 #define EIGEN_HOUSEHOLDER_H 41 template<
typename Derived>
45 makeHouseholder(essentialPart, tau, beta);
63 template<
typename Derived>
64 template<
typename EssentialPart>
66 EssentialPart& essential,
78 const RealScalar tol = (std::numeric_limits<RealScalar>::min)();
91 essential = tail / (c0 - beta);
92 tau =
conj((beta - c0) / beta);
111 template<
typename Derived>
112 template<
typename EssentialPart>
114 const EssentialPart& essential,
126 tmp.noalias() = essential.adjoint() * bottom;
128 this->
row(0) -= tau * tmp;
129 bottom.noalias() -= tau * essential * tmp;
148 template<
typename Derived>
149 template<
typename EssentialPart>
151 const EssentialPart& essential,
163 tmp.noalias() = right * essential.conjugate();
165 this->
col(0) -= tau * tmp;
166 right.noalias() -= tau * tmp * essential.transpose();
172 #endif // EIGEN_HOUSEHOLDER_H const AutoDiffScalar< DerType > & conj(const AutoDiffScalar< DerType > &x)
internal::traits< Derived >::Scalar Scalar
EIGEN_DEVICE_FUNC RealReturnType real() const
EIGEN_DEVICE_FUNC SegmentReturnType tail(Index n)
This is the const version of tail(Index).
A matrix or vector expression mapping an existing array of data.
EIGEN_DEVICE_FUNC const SqrtReturnType sqrt() const
static constexpr size_t size(Tuple< Args... > &)
Provides access to the number of elements in a tuple as a compile-time constant expression.
void makeHouseholder(EssentialPart &essential, Scalar &tau, RealScalar &beta) const
void applyHouseholderOnTheLeft(const EssentialPart &essential, const Scalar &tau, Scalar *workspace)
Expression of a fixed-size or dynamic-size sub-vector.
EIGEN_DEVICE_FUNC ColXpr col(Index i)
This is the const version of col().
EIGEN_DEVICE_FUNC RowXpr row(Index i)
This is the const version of row(). */.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Abs2ReturnType abs2() const
NumTraits< Scalar >::Real RealScalar
Expression of a fixed-size or dynamic-size block.
void applyHouseholderOnTheRight(const EssentialPart &essential, const Scalar &tau, Scalar *workspace)
EIGEN_DEVICE_FUNC const ImagReturnType imag() const
void makeHouseholderInPlace(Scalar &tau, RealScalar &beta)
#define EIGEN_STATIC_ASSERT_VECTOR_ONLY(TYPE)