#include "matrix_typedefs.h"
#include "basisinfo.h"
Go to the source code of this file.
Classes | |
struct | matrix_utilities_CompareClass< RandomAccessIterator > |
Functions | |
mat::SizesAndBlocks | prepareMatrixSizesAndBlocks (int n_basis_functions, int sparse_block_size, int factor1, int factor2, int factor3) |
void | getMatrixPermutation (const BasisInfoStruct &basisInfo, int sparse_block_size, int factor1, int factor2, int factor3, std::vector< int > &permutation) |
void | getMatrixPermutation (const BasisInfoStruct &basisInfo, int sparse_block_size, int factor1, int factor2, int factor3, std::vector< int > &permutation, std::vector< int > &inversePermutation) |
void | fill_matrix_with_random_numbers (int n, symmMatrix &M) |
void | add_random_diag_perturbation (int n, symmMatrix &M, ergo_real eps) |
void | output_matrix (int n, const ergo_real *matrix, const char *matrixName) |
template<class Tmatrix> | |
ergo_real | compute_maxabs_sparse (const Tmatrix &M) |
template<typename Tmatrix> | |
void | get_all_nonzeros (Tmatrix const &A, std::vector< int > const &inversePermutation, std::vector< int > &rowind, std::vector< int > &colind, std::vector< ergo_real > &values) |
template<typename Tmatrix> | |
void | output_distance_vs_magnitude (BasisInfoStruct const &basisInfo, Tmatrix const &A, std::vector< int > const &inversePermutation, std::string name, int resolution_r, int resolution_m) |
template<typename Tmatrix> | |
void | output_magnitude_histogram (Tmatrix const &A, std::string name, int resolution_m) |
template<typename Tmatrix> | |
void | write_matrix_in_matrix_market_format (Tmatrix const &A, std::vector< int > const &inversePermutation, std::string filename, std::string identifier, std::string method_and_basis) |
void add_random_diag_perturbation | ( | int | n, | |
symmMatrix & | M, | |||
ergo_real | eps | |||
) |
ergo_real compute_maxabs_sparse | ( | const Tmatrix & | M | ) |
void fill_matrix_with_random_numbers | ( | int | n, | |
symmMatrix & | M | |||
) |
void get_all_nonzeros | ( | Tmatrix const & | A, | |
std::vector< int > const & | inversePermutation, | |||
std::vector< int > & | rowind, | |||
std::vector< int > & | colind, | |||
std::vector< ergo_real > & | values | |||
) |
void getMatrixPermutation | ( | const BasisInfoStruct & | basisInfo, | |
int | sparse_block_size, | |||
int | factor1, | |||
int | factor2, | |||
int | factor3, | |||
std::vector< int > & | permutation, | |||
std::vector< int > & | inversePermutation | |||
) |
void getMatrixPermutation | ( | const BasisInfoStruct & | basisInfo, | |
int | sparse_block_size, | |||
int | factor1, | |||
int | factor2, | |||
int | factor3, | |||
std::vector< int > & | permutation | |||
) |
void output_distance_vs_magnitude | ( | BasisInfoStruct const & | basisInfo, | |
Tmatrix const & | A, | |||
std::vector< int > const & | inversePermutation, | |||
std::string | name, | |||
int | resolution_r, | |||
int | resolution_m | |||
) |
basisInfo | Info about basis set. |
A | The matrix. |
inversePermutation | Permutation to be used when accessing matrix elements. |
name | File name. |
resolution_r | Resolution in r-direction, r is the distance between atoms. |
resolution_m | Resolution m-direction, m is the magnitude of matrix elements. |
void output_magnitude_histogram | ( | Tmatrix const & | A, | |
std::string | name, | |||
int | resolution_m | |||
) |
A | The matrix. |
name | File name. |
resolution_m | Resolution m-direction, m is the magnitude of matrix elements. |
void output_matrix | ( | int | n, | |
const ergo_real * | matrix, | |||
const char * | matrixName | |||
) |
mat::SizesAndBlocks prepareMatrixSizesAndBlocks | ( | int | n_basis_functions, | |
int | sparse_block_size, | |||
int | factor1, | |||
int | factor2, | |||
int | factor3 | |||
) |
void write_matrix_in_matrix_market_format | ( | Tmatrix const & | A, | |
std::vector< int > const & | inversePermutation, | |||
std::string | filename, | |||
std::string | identifier, | |||
std::string | method_and_basis | |||
) |