#include <iostream>
#include <vector>
#include <cmath>
#include <complex>
#include <fstream>
#include "viennacl/toeplitz_matrix.hpp"
#include "viennacl/circulant_matrix.hpp"
#include "viennacl/vandermonde_matrix.hpp"
#include "viennacl/hankel_matrix.hpp"
#include "viennacl/linalg/prod.hpp"
#include "viennacl/fft.hpp"
Go to the source code of this file.
Classes | |
class | dense_matrix< T > |
Functions | |
template<typename T > | |
std::ostream & | operator<< (std::ostream &os, dense_matrix< T > const &mat) |
template<typename ScalarType > | |
ScalarType | diff (dense_matrix< ScalarType > const &m1, dense_matrix< ScalarType > const &m2) |
template<typename ScalarType > | |
ScalarType | diff (std::vector< ScalarType > &vec, std::vector< ScalarType > &ref) |
template<typename ScalarType > | |
ScalarType | diff_max (std::vector< ScalarType > &vec, std::vector< ScalarType > &ref) |
template<typename ScalarType > | |
void | transpose_test () |
template<typename ScalarType > | |
int | toeplitz_test (ScalarType epsilon) |
template<typename ScalarType > | |
int | circulant_test (ScalarType epsilon) |
template<typename ScalarType > | |
int | vandermonde_test (ScalarType epsilon) |
template<typename ScalarType > | |
int | hankel_test (ScalarType epsilon) |
int | main () |
Tests structured matrices.
Definition in file structured-matrices.cpp.
int circulant_test | ( | ScalarType | epsilon | ) |
Definition at line 271 of file structured-matrices.cpp.
ScalarType diff | ( | dense_matrix< ScalarType > const & | m1, |
dense_matrix< ScalarType > const & | m2 | ||
) |
Definition at line 90 of file structured-matrices.cpp.
ScalarType diff | ( | std::vector< ScalarType > & | vec, |
std::vector< ScalarType > & | ref | ||
) |
Definition at line 112 of file structured-matrices.cpp.
ScalarType diff_max | ( | std::vector< ScalarType > & | vec, |
std::vector< ScalarType > & | ref | ||
) |
Definition at line 127 of file structured-matrices.cpp.
int hankel_test | ( | ScalarType | epsilon | ) |
Definition at line 460 of file structured-matrices.cpp.
int main | ( | ) |
Definition at line 561 of file structured-matrices.cpp.
std::ostream& operator<< | ( | std::ostream & | os, |
dense_matrix< T > const & | mat | ||
) |
Definition at line 74 of file structured-matrices.cpp.
int toeplitz_test | ( | ScalarType | epsilon | ) |
Definition at line 170 of file structured-matrices.cpp.
void transpose_test | ( | ) |
Definition at line 150 of file structured-matrices.cpp.
int vandermonde_test | ( | ScalarType | epsilon | ) |
Definition at line 373 of file structured-matrices.cpp.