35#ifndef STK_WEIGHTEDSVD_H
36#define STK_WEIGHTEDSVD_H
41template<
class Array,
class WRows,
class WCols>
class WeightedSvd;
48template<
class Array_,
class WRows,
class WCols>
58template<
class Array,
class WRows,
class WCols>
97 if (!dec.
run())
return false;
113 if (!solver.
run())
return false;
DiagonalizeOperator< Derived > const diagonalize() const
Derived & resize(Range const &I, Range const &J)
resize the Array.
virtual bool run()
run the computations.
Compute the Singular Value Decomposition of an array.
virtual bool run()
implement the run method
ArrayD D_
Diagonal array of the singular values.
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
This class perform a weighted svd decomposition.
WeightedSvd(Array const &a, WRows const &wrows, WCols const &wcols, int dim)
default constructor.
virtual bool run()
run the weighted svd
ISvd< WeightedSvd< Array, WRows, WCols > > Base
CPointX wcols_
columns weights
int dim_
number of eigenvectors (left and right)
virtual ~WeightedSvd()
destructor
CVectorX wrows_
rows weights
The namespace STK is the main domain space of the Statistical ToolKit project.
traits class for the algebra methods.