<T>LAPACK 0.1.1
C++ Template Linear Algebra PACKage
|
MatrixMarket class. More...
#include <MatrixMarket.hpp>
Public Member Functions | |
template<TLAPACK_MATRIX matrix_t> | |
void | colmajor_read (matrix_t &A, std::istream &is) const |
Read a dense matrix from an input stream (file, stdin, etc). | |
template<TLAPACK_MATRIX matrix_t> | |
void | hessenberg (matrix_t &A) |
Generate a random upper Hessenberg matrix. | |
template<TLAPACK_MATRIX matrix_t> | |
void | hilbert (matrix_t &A) const |
Generate a Hilbert matrix. | |
template<TLAPACK_MATRIX matrix_t> | |
void | random (matrix_t &A) |
Generate a random dense matrix. | |
template<TLAPACK_UPLO uplo_t, TLAPACK_MATRIX matrix_t> | |
void | random (uplo_t uplo, matrix_t &A) |
Generate an upper- or lower-triangular random matrix. | |
template<TLAPACK_MATRIX matrix_t> | |
void | single_value (matrix_t &A, const type_t< matrix_t > &val) const |
Generate a matrix with a single value in all entries. | |
template<TLAPACK_UPLO uplo_t, TLAPACK_MATRIX matrix_t> | |
void | single_value (uplo_t uplo, matrix_t &A, const type_t< matrix_t > &val) const |
Generate an upper- or lower-triangular matrix with a single value in all entries. | |
Public Attributes | |
rand_generator | gen |
MatrixMarket class.
This class provides methods to read matrices from files and to generate random or structured matrices.
|
inline |
Read a dense matrix from an input stream (file, stdin, etc).
The data is read in column-major format.
[out] | A | Matrix. |
[in,out] | is | Input stream. |
|
inline |
Generate a random upper Hessenberg matrix.
Put a single garbage value float(0xFA57C0DE) below the first subdiagonal.
[out] | A | Matrix. |
|
inline |
Generate a Hilbert matrix.
The Hilbert matrix is defined as:
\[ A_{ij} = \frac{1}{i + j + 1} \]
[out] | A | Matrix. |
|
inline |
Generate a random dense matrix.
[out] | A | Matrix. |
|
inline |
Generate an upper- or lower-triangular random matrix.
Put a single garbage value float(0xCAFEBABE) in the opposite triangle.
[in] | uplo | Upper or lower triangular. |
[out] | A | Matrix. |
|
inline |
Generate a matrix with a single value in all entries.
[out] | A | Matrix. |
[in] | val | Value. |
|
inline |
Generate an upper- or lower-triangular matrix with a single value in all entries.
Put a single garbage value float(0xCAFEBABE) in the opposite triangle.
[in] | uplo | Upper or lower triangular. |
[out] | A | Matrix. |
[in] | val | Value. |