12 #ifndef MLPACK_METHODS_SVDWRAPPER_HPP
13 #define MLPACK_METHODS_SVDWRAPPER_HPP
39 template<
class Factorizer = DummyClass>
44 SVDWrapper(
const Factorizer& factorizer = Factorizer())
45 : factorizer(factorizer) {};
58 double Apply(
const arma::mat& V,
72 double Apply(
const arma::mat& V,
79 Factorizer factorizer;
86 #include "svd_wrapper_impl.hpp"
The core includes that mlpack expects; standard C++ includes and Armadillo.
SVDWrapper< DummyClass > ArmaSVDFactorizer
add simple typedefs
This class acts as a dummy class for passing as template parameter.
This class acts as the wrapper for all SVD factorizers which are incompatible with CF module...
double Apply(const arma::mat &V, arma::mat &W, arma::mat &sigma, arma::mat &H) const
Factorizer function which takes SVD of the given matrix and returns the frobenius norm of error...