MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
matrix_checks.hpp File Reference
#include <stdexcept>
#include <string>
#include <string_view>

Namespaces

namespace  mtl
namespace  mtl::detail
 mat*vec multiply into pre-allocated y: y = A * x.

Functions

template<typename M>
void mtl::detail::require_finite (const M &A, std::string_view who)
 Throws std::invalid_argument unless every entry of A is finite.
template<typename M>
void mtl::detail::require_square (const M &A, std::string_view who)
 Throws std::invalid_argument unless A is square.
template<typename M>
void mtl::detail::require_square_finite (const M &A, std::string_view who)
 Throws std::invalid_argument unless A is square and every entry finite.