https://doi.org/10.5201/ipol.2012.llm-ksvd
Raw File
Tip revision: c78cdcf65f9f2fd89008647de7d7776cb2454f08 authored by Software Heritage on 01 January 2011, 00:00:00 UTC
ipol: Deposit 1191 in collection ipol
Tip revision: c78cdcf
lib_svd.h
#ifndef LIB_SVD_H_INCLUDED
#define LIB_SVD_H_INCLUDED

#include <vector>

typedef std::vector<std::vector<double> > mat_t;
typedef std::vector<double> vec_t;
typedef std::vector<double>::iterator iter_t;

//! Compute the largest singular value by the power method
//! WARNING : tX is transposed!!!
double svd_trunc(mat_t &tX,
                 vec_t &U,
                 vec_t &V);

#endif // LIB_SVD_H_INCLUDED
back to top