The magnitude at or under which a singular value counts as zero, in a rank (matrix_rank), a pseudo-inverse (pinv) or a least-squares solution (lstsq): by default NumPy's, the largest singular value times the machine epsilon times the larger dimension; relative to the largest, as NumPy's rcond and rtol; or absolute, as matrix_rank's tol.
More...
#include <decomposition.hpp>
The magnitude at or under which a singular value counts as zero, in a rank (matrix_rank), a pseudo-inverse (pinv) or a least-squares solution (lstsq): by default NumPy's, the largest singular value times the machine epsilon times the larger dimension; relative to the largest, as NumPy's rcond and rtol; or absolute, as matrix_rank's tol.
Definition at line 2473 of file decomposition.hpp.
◆ rank_cutoff() [1/2]
| constexpr numerical::rank_cutoff::rank_cutoff |
( |
| ) |
|
|
constexprdefaultnoexcept |
NumPy's default: the largest singular value times the machine epsilon times the larger dimension.
◆ rank_cutoff() [2/2]
|
|
inlineconstexprprivatenoexcept |
◆ absolute()
magnitude itself, whatever the largest singular value.
- Exceptions
-
| std::invalid_argument | If magnitude is negative or NaN. |
Definition at line 2493 of file decomposition.hpp.
◆ checked()
◆ magnitude()
| double numerical::rank_cutoff::magnitude |
( |
double |
largest, |
|
|
std::size_t |
rows, |
|
|
std::size_t |
cols |
|
) |
| const |
|
inlinenoexcept |
The cutoff for a rows × cols matrix whose largest singular value is largest.
Definition at line 2499 of file decomposition.hpp.
◆ relative()
The largest singular value times ratio.
- Exceptions
-
| std::invalid_argument | If ratio is negative or NaN. |
Definition at line 2484 of file decomposition.hpp.
◆ scaled()
◆ absolute_
| bool numerical::rank_cutoff::absolute_ {false} |
|
private |
◆ value_
| double numerical::rank_cutoff::value_ {-1.0} |
|
private |
The ratio or the magnitude; negative for NumPy's default.
Definition at line 2530 of file decomposition.hpp.
The documentation for this class was generated from the following file: