MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
testsuite.hpp File Reference
#include <string>
#include <vector>
#include <unordered_map>
#include <stdexcept>
#include <filesystem>
#include <mtl/mat/dense2D.hpp>
#include <mtl/io/matrix_market.hpp>

Namespaces

namespace  mtl
namespace  mtl::testsuite

Functions

const std::unordered_map< std::string, double > & mtl::testsuite::kappa_table ()
 2-norm condition numbers sigma_max / sigma_min for the catalog.
std::vector< std::string > mtl::testsuite::names ()
 The catalog entries (roughly ordered small -> large).
double mtl::testsuite::kappa (const std::string &name)
 Published condition number for name; throws if the name is not in the catalog.
std::string mtl::testsuite::data_dir ()
 The default catalog data directory.
mat::dense2D< double > mtl::testsuite::by_name (const std::string &name, const std::string &dir=data_dir())
 Load a catalog matrix by name as a dense2D<double>, reading its .mtx from dir (default: the CMake-configured catalog directory).