Eigen::SPQR_QProduct< SPQRType, Derived > Struct Template Reference

#include <SuiteSparseQRSupport.h>

+ Inheritance diagram for Eigen::SPQR_QProduct< SPQRType, Derived >:

Public Types

typedef SPQRType::Scalar Scalar
 
typedef SPQRType::StorageIndex StorageIndex
 
- Public Types inherited from Eigen::ReturnByValue< SPQR_QProduct< SPQRType, Derived > >
typedef internal::traits< SPQR_QProduct< SPQRType, Derived > >::ReturnType ReturnType
 
typedef internal::dense_xpr_base< ReturnByValue >::type Base
 

Public Member Functions

 SPQR_QProduct (const SPQRType &spqr, const Derived &other, bool transpose)
 
Index rows () const
 
Index cols () const
 
template<typename ResType >
void evalTo (ResType &res) const
 
- Public Member Functions inherited from Eigen::ReturnByValue< SPQR_QProduct< SPQRType, Derived > >
EIGEN_DEVICE_FUNC void evalTo (Dest &dst) const
 
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index rows () const EIGEN_NOEXCEPT
 
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index cols () const EIGEN_NOEXCEPT
 
const Unusablecoeff (Index) const
 
const Unusablecoeff (Index, Index) const
 
UnusablecoeffRef (Index)
 
UnusablecoeffRef (Index, Index)
 

Public Attributes

const SPQRType & m_spqr
 
const Derived & m_other
 
bool m_transpose
 

Member Typedef Documentation

◆ Scalar

template<typename SPQRType , typename Derived >
typedef SPQRType::Scalar Eigen::SPQR_QProduct< SPQRType, Derived >::Scalar

◆ StorageIndex

template<typename SPQRType , typename Derived >
typedef SPQRType::StorageIndex Eigen::SPQR_QProduct< SPQRType, Derived >::StorageIndex

Constructor & Destructor Documentation

◆ SPQR_QProduct()

template<typename SPQRType , typename Derived >
Eigen::SPQR_QProduct< SPQRType, Derived >::SPQR_QProduct ( const SPQRType &  spqr,
const Derived &  other,
bool  transpose 
)
inline
268  : m_spqr(spqr), m_other(other), m_transpose(transpose) {}
void transpose()
Definition: skew_symmetric_matrix3.cpp:135
bool m_transpose
Definition: SuiteSparseQRSupport.h:287
const SPQRType & m_spqr
Definition: SuiteSparseQRSupport.h:285
const Derived & m_other
Definition: SuiteSparseQRSupport.h:286

Member Function Documentation

◆ cols()

◆ evalTo()

template<typename SPQRType , typename Derived >
template<typename ResType >
void Eigen::SPQR_QProduct< SPQRType, Derived >::evalTo ( ResType &  res) const
inline
274  {
275  cholmod_dense y_cd;
276  cholmod_dense* x_cd;
277  int method = m_transpose ? SPQR_QTX : SPQR_QX;
278  cholmod_common* cc = m_spqr.cholmodCommon();
279  y_cd = viewAsCholmod(m_other.const_cast_derived());
280  x_cd = SuiteSparseQR_qmult<Scalar>(method, m_spqr.m_H, m_spqr.m_HTau, m_spqr.m_HPinv, &y_cd, cc);
282  reinterpret_cast<Scalar*>(x_cd->x), x_cd->nrow, x_cd->ncol);
283  cholmod_l_free_dense(&x_cd, cc);
284  }
cout<< "Here is the matrix m:"<< endl<< m<< endl;Matrix< ptrdiff_t, 3, 1 > res
Definition: PartialRedux_count.cpp:3
SCALAR Scalar
Definition: bench_gemm.cpp:45
static ConstMapType Map(const Scalar *data)
Definition: PlainObjectBase.h:595
cholmod_sparse viewAsCholmod(Ref< SparseMatrix< Scalar_, Options_, StorageIndex_ > > mat)
Definition: CholmodSupport.h:64

References Eigen::SPQR_QProduct< SPQRType, Derived >::m_other, Eigen::SPQR_QProduct< SPQRType, Derived >::m_spqr, Eigen::SPQR_QProduct< SPQRType, Derived >::m_transpose, Eigen::PlainObjectBase< Matrix< Scalar_, Rows_, Cols_, Options_, MaxRows_, MaxCols_ > >::Map(), res, and Eigen::viewAsCholmod().

◆ rows()

Member Data Documentation

◆ m_other

template<typename SPQRType , typename Derived >
const Derived& Eigen::SPQR_QProduct< SPQRType, Derived >::m_other

◆ m_spqr

template<typename SPQRType , typename Derived >
const SPQRType& Eigen::SPQR_QProduct< SPQRType, Derived >::m_spqr

◆ m_transpose

template<typename SPQRType , typename Derived >
bool Eigen::SPQR_QProduct< SPQRType, Derived >::m_transpose

The documentation for this struct was generated from the following file: