#include <ctime>#include <cmath>#include "viennacl/linalg/prod.hpp"#include "viennacl/linalg/nmf.hpp"Go to the source code of this file.
Typedefs | |
| typedef float | ScalarType |
Functions | |
| template<typename MATRIX > | |
| float | matrix_compare (MATRIX &res, viennacl::matrix_base< ScalarType > &ref) |
| void | fill_random (viennacl::matrix_base< ScalarType > &v) |
| void | test_nmf (std::size_t m, std::size_t k, std::size_t n) |
| int | main () |
Variables | |
| const ScalarType | EPS = ScalarType(0.03) |
Tests the nonnegative matrix factorization.
Definition in file nmf.cpp.
| typedef float ScalarType |
| void fill_random | ( | viennacl::matrix_base< ScalarType > & | v | ) |
| float matrix_compare | ( | MATRIX & | res, |
| viennacl::matrix_base< ScalarType > & | ref | ||
| ) |
| void test_nmf | ( | std::size_t | m, |
| std::size_t | k, | ||
| std::size_t | n | ||
| ) |
| const ScalarType EPS = ScalarType(0.03) |