NumericAL
A header-only C++20 lexer built on REAL
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
numerical::not_positive_definite_error Class Reference

Thrown when a Cholesky factorisation finds the matrix not positive-definite. More...

#include <decomposition.hpp>

Inheritance diagram for numerical::not_positive_definite_error:
[legend]
Collaboration diagram for numerical::not_positive_definite_error:
[legend]

Public Member Functions

 not_positive_definite_error (const std::string &message, std::size_t order=0)
 Builds the error.
 
std::size_t order () const noexcept
 The order of the first leading minor found not positive definite (LAPACK's info), 0 where unknown.
 

Private Attributes

std::size_t order_
 The order of the failing leading minor, or 0.
 

Detailed Description

Thrown when a Cholesky factorisation finds the matrix not positive-definite.

Definition at line 1552 of file decomposition.hpp.

Constructor & Destructor Documentation

◆ not_positive_definite_error()

numerical::not_positive_definite_error::not_positive_definite_error ( const std::string &  message,
std::size_t  order = 0 
)
inlineexplicit

Builds the error.

Parameters
[in]messageHuman-readable cause.
[in]orderAs order gives it.

Definition at line 1557 of file decomposition.hpp.

Member Function Documentation

◆ order()

std::size_t numerical::not_positive_definite_error::order ( ) const
inlinenoexcept

The order of the first leading minor found not positive definite (LAPACK's info), 0 where unknown.

Definition at line 1563 of file decomposition.hpp.

Member Data Documentation

◆ order_

std::size_t numerical::not_positive_definite_error::order_
private

The order of the failing leading minor, or 0.

Definition at line 1570 of file decomposition.hpp.


The documentation for this class was generated from the following file: