|
akreon-linalg
Fixed-size linear algebra and numerical methods in C++26.
|
compute the frobenius norm of a matrix More...
#include <matrix_norms.hpp>
Public Types | |
| using | domain_type = remove_cvref_t< Mat > |
| using | scalar_type = matrix_scalar_t< domain_type > |
| using | codomain_type = real_type_t< scalar_type > |
Public Member Functions | |
| constexpr codomain_type | operator() (const domain_type &matrix) const |
compute the frobenius norm of a matrix
sqrt(tr(A^T A)) if A in R else sqrt(tr(A^* A)) where A in C
| matrix | A Rows x Cols elements of type T (must be square) |
Definition at line 24 of file matrix_norms.hpp.
| using linalg::Fro< Mat >::codomain_type = real_type_t<scalar_type> |
Definition at line 27 of file matrix_norms.hpp.
| using linalg::Fro< Mat >::domain_type = remove_cvref_t<Mat> |
Definition at line 25 of file matrix_norms.hpp.
| using linalg::Fro< Mat >::scalar_type = matrix_scalar_t<domain_type> |
Definition at line 26 of file matrix_norms.hpp.
|
inlineconstexpr |
Definition at line 29 of file matrix_norms.hpp.
References linalg::constexpr_sqrt_safe(), and linalg::mat_rows_v.