Go to the documentation of this file.
7 #ifndef SPECTRA_PARTIAL_SVD_SOLVER_H
8 #define SPECTRA_PARTIAL_SVD_SOLVER_H
11 #include "../SymEigsSolver.h"
16 template <
typename Scalar_>
38 template <
typename Scalar,
typename MatrixType>
77 template <
typename Scalar,
typename MatrixType>
115 template <
typename MatrixType = Eigen::Matrix<
double, Eigen::Dynamic, Eigen::Dynamic>>
189 return m_mat * (
m_evecs.leftCols(nu).array().rowwise() /
m_eigs->eigenvalues().head(nu).transpose().array().sqrt()).
matrix();
205 return m_mat.transpose() * (
m_evecs.leftCols(nv).array().rowwise() /
m_eigs->eigenvalues().head(nv).transpose().array().sqrt()).
matrix();
211 #endif // SPECTRA_PARTIAL_SVD_SOLVER_H
SVDMatOp< Scalar > * m_op
Index rows() const override
Index cols() const override
Array< double, 1, 3 > e(1./3., 0.5, 2.)
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
SymEigsSolver< SVDMatOp< Scalar > > * m_eigs
virtual Index rows() const =0
SVDTallMatOp(ConstGenericMatrix &mat)
Matrix matrix_V(Index nv)
PartialSVDSolver(ConstGenericMatrix &mat, Index ncomp, Index ncv)
virtual Index cols() const =0
typename MatrixType::Scalar Scalar
Vector singular_values() const
A matrix or vector expression mapping an existing array of data.
Map< Matrix< T, Dynamic, Dynamic, ColMajor >, 0, OuterStride<> > matrix(T *data, int rows, int cols, int stride)
virtual void perform_op(const Scalar *x_in, Scalar *y_out) const =0
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR Index cols() const EIGEN_NOEXCEPT
Index rows() const override
virtual ~PartialSVDSolver()
Matrix matrix_U(Index nu)
Index cols() const override
void perform_op(const Scalar *x_in, Scalar *y_out) const override
Index compute(Index maxit=1000, Scalar tol=1e-10)
void perform_op(const Scalar *x_in, Scalar *y_out) const override
SVDWideMatOp(ConstGenericMatrix &mat)
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
gtsam
Author(s):
autogenerated on Sun Feb 16 2025 04:02:32