Lines 212-227
public:
Link Here
|
212 |
|
212 |
|
213 |
#ifndef EIGEN_PARSED_BY_DOXYGEN |
213 |
#ifndef EIGEN_PARSED_BY_DOXYGEN |
214 |
template<typename RhsType, typename DstType> |
214 |
template<typename RhsType, typename DstType> |
215 |
EIGEN_DEVICE_FUNC |
215 |
EIGEN_DEVICE_FUNC |
216 |
void _solve_impl(const RhsType &rhs, DstType &dst) const; |
216 |
void _solve_impl(const RhsType &rhs, DstType &dst) const; |
217 |
#endif |
217 |
#endif |
218 |
|
218 |
|
219 |
protected: |
219 |
protected: |
|
|
220 |
|
221 |
static void check_template_parameters() |
222 |
{ |
223 |
EIGEN_STATIC_ASSERT_NON_INTEGER(Scalar); |
224 |
} |
225 |
|
220 |
// return true if already allocated |
226 |
// return true if already allocated |
221 |
bool allocate(Index rows, Index cols, unsigned int computationOptions) ; |
227 |
bool allocate(Index rows, Index cols, unsigned int computationOptions) ; |
222 |
|
228 |
|
223 |
MatrixUType m_matrixU; |
229 |
MatrixUType m_matrixU; |
224 |
MatrixVType m_matrixV; |
230 |
MatrixVType m_matrixV; |
225 |
SingularValuesType m_singularValues; |
231 |
SingularValuesType m_singularValues; |
226 |
bool m_isInitialized, m_isAllocated, m_usePrescribedThreshold; |
232 |
bool m_isInitialized, m_isAllocated, m_usePrescribedThreshold; |
227 |
bool m_computeFullU, m_computeThinU; |
233 |
bool m_computeFullU, m_computeThinU; |
Lines 235-251
protected:
Link Here
|
235 |
* Default constructor of SVDBase |
241 |
* Default constructor of SVDBase |
236 |
*/ |
242 |
*/ |
237 |
SVDBase() |
243 |
SVDBase() |
238 |
: m_isInitialized(false), |
244 |
: m_isInitialized(false), |
239 |
m_isAllocated(false), |
245 |
m_isAllocated(false), |
240 |
m_usePrescribedThreshold(false), |
246 |
m_usePrescribedThreshold(false), |
241 |
m_computationOptions(0), |
247 |
m_computationOptions(0), |
242 |
m_rows(-1), m_cols(-1), m_diagSize(0) |
248 |
m_rows(-1), m_cols(-1), m_diagSize(0) |
243 |
{} |
249 |
{ |
|
|
250 |
check_template_parameters(); |
251 |
} |
244 |
|
252 |
|
245 |
|
253 |
|
246 |
}; |
254 |
}; |
247 |
|
255 |
|
248 |
#ifndef EIGEN_PARSED_BY_DOXYGEN |
256 |
#ifndef EIGEN_PARSED_BY_DOXYGEN |
249 |
template<typename Derived> |
257 |
template<typename Derived> |
250 |
template<typename RhsType, typename DstType> |
258 |
template<typename RhsType, typename DstType> |
251 |
void SVDBase<Derived>::_solve_impl(const RhsType &rhs, DstType &dst) const |
259 |
void SVDBase<Derived>::_solve_impl(const RhsType &rhs, DstType &dst) const |