#include <stdexcept>#include <iostream>#include <string>#include <vector>#include <cmath>#include "viennacl/matrix.hpp"#include "viennacl/linalg/prod.hpp"#include "viennacl/linalg/svd.hpp"#include "viennacl/tools/timer.hpp"Go to the source code of this file.
Functions | |
| void | read_matrix_size (std::fstream &f, std::size_t &sz1, std::size_t &sz2) |
| template<typename ScalarType > | |
| void | read_matrix_body (std::fstream &f, viennacl::matrix< ScalarType > &A) |
| template<typename ScalarType > | |
| void | read_vector_body (std::fstream &f, std::vector< ScalarType > &v) |
| template<typename ScalarType > | |
| void | random_fill (std::vector< ScalarType > &in) |
| template<typename ScalarType > | |
| bool | check_bidiag (viennacl::matrix< ScalarType > &A) |
| template<typename ScalarType > | |
| ScalarType | matrix_compare (viennacl::matrix< ScalarType > &res, viennacl::matrix< ScalarType > &ref) |
| template<typename ScalarType > | |
| ScalarType | sigmas_compare (viennacl::matrix< ScalarType > &res, std::vector< ScalarType > &ref) |
| template<typename ScalarType > | |
| void | test_svd (const std::string &fn, ScalarType EPS) |
| template<typename ScalarType > | |
| void | time_svd (std::size_t sz1, std::size_t sz2) |
| template<typename ScalarType > | |
| int | test (ScalarType epsilon) |
| int | main () |
Tests the singular value decomposition.
Definition in file svd.cpp.
| bool check_bidiag | ( | viennacl::matrix< ScalarType > & | A | ) |
| ScalarType matrix_compare | ( | viennacl::matrix< ScalarType > & | res, |
| viennacl::matrix< ScalarType > & | ref | ||
| ) |
| void random_fill | ( | std::vector< ScalarType > & | in | ) |
| void read_matrix_body | ( | std::fstream & | f, |
| viennacl::matrix< ScalarType > & | A | ||
| ) |
|
inline |
| void read_vector_body | ( | std::fstream & | f, |
| std::vector< ScalarType > & | v | ||
| ) |
| ScalarType sigmas_compare | ( | viennacl::matrix< ScalarType > & | res, |
| std::vector< ScalarType > & | ref | ||
| ) |
| int test | ( | ScalarType | epsilon | ) |
| void test_svd | ( | const std::string & | fn, |
| ScalarType | EPS | ||
| ) |