Class containing several options for the HODLR code and data-structures. More...
#include <HODLROptions.hpp>
Public Types | |
using | real_t = typename RealType< scalar_t >::value_type |
Class containing several options for the HODLR code and data-structures.
scalar_t | scalar type, can be float, double, std::complex<float> or std::complex<double>. This is used here mainly because tolerances might depend on the precision. |
using strumpack::HODLR::HODLROptions< scalar_t >::real_t = typename RealType<scalar_t>::value_type |
real_t is the real type corresponding to the (possibly complex) scalar_t template parameter
|
inline |
Default constructor, sets all options to their default values.
|
inline |
Get the absolute compression tolerance.
|
inline |
Get the BACA block size.
|
inline |
Get butterfly sampling parameter.
|
inline |
get the number of butterfly levels to use for each HODLR matrix.
|
inline |
Get the clustering algorithm to be used. This is used when constructing an HODLR approximation of a kernel matrix.
|
inline |
Get the compression algorithm to be used.
void strumpack::HODLR::HODLROptions< scalar_t >::describe_options | ( | ) | const |
Print an overview of the available command line options and their current values.
|
inline |
Use geometry information? 0, 1 or 2
|
inline |
The number of neighbors to use in the HODLR or HODBF construction.
|
inline |
The number of neighbors to use in the LR or Butterfly block construction.
|
inline |
|
inline |
Returns whether or not to use less_adapt in the randomized construction algorithm.
|
inline |
Bottom level compression algorithms in H-BACA 1, 2, 3, 4, or 5
|
inline |
Get the maximum allowable rank (note, this is not the actual maximum computed rank).
|
inline |
Get the initial guess for the rank.
|
inline |
Get the rate of increment for adaptively determining the rank.
|
inline |
Get the relative compression tolerance.
|
inline |
Set the absolute compression tolerance.
abs_tol | absolute compression tolerance |
|
inline |
Set the BACA block size.
|
inline |
Set sampling parameter for use in linear complexity butterfly compression, higher for more robust sampling.
|
inline |
Set the number of butterfly levels to use for each HODLR matrix.
|
inline |
Specify the clustering algorithm. This is used when constructing a kernel matrix approximation.
|
inline |
Specify the compression algorithm to be used.
void strumpack::HODLR::HODLROptions< scalar_t >::set_from_command_line | ( | int | argc, |
const char *const * | cargv | ||
) |
Parse the command line options given by argc and argv. The options will not be modified. Run with –help to see an overview of available options, or call describe_options().
argc | Number of elements in argv |
argv | Array with options |
|
inline |
geo should be 0, 1, 2 or 3. 0 means use point geometry, 1 means do not use any geometry. 2 means use the graph connectivity for the distance and admissibility info, 3 means use the graph to directly find closest neighbors.
|
inline |
Set the number of neighbors to use in construction of the HODLR or HODBF matrices.
|
inline |
Set the number of neighbors to use in construction of the LR or Butterfly blocks.
|
inline |
|
inline |
Enable/disable the less_adapt algorithm in randomized construction.
|
inline |
lr_leaf should be 1, 2, 3, 4, 5. 1 means svd, 2 means rrqr, 3 means baseline aca, 4 means baca original version, 5 means baca improved version.
|
inline |
Set the maximum rank allowed in HODLR compression.
|
inline |
Set the initial guess for the rank.
|
inline |
Set the rate of increment for adaptively determining the rank.
|
inline |
Set the relative tolerance to be used for HODLR compression. Tuning this parameter is very important for performance.
rel_tol | relative compression tolerance |
|
inline |
Enable or disable verbose output (only by the root process) to stdout.
|
inline |
Verbose or quiet?