Virtual Testbed
Ship dynamics simulator for extreme conditions
Public Member Functions | List of all members
vtb::linalg::Matrix< T > Class Template Reference
Inheritance diagram for vtb::linalg::Matrix< T >:
[legend]
Collaboration diagram for vtb::linalg::Matrix< T >:
[legend]

Public Member Functions

 Matrix (base_type rhs)
 
bool is_square () const
 
bool is_symmetric () const
 
bool is_symmetric (T eps) const
 
bool is_positive_definite () const
 
bool is_toeplitz () const
 
bool is_toeplitz (T eps) const
 
Square_matrix< T > inverse () const
 
Square_matrix< T > & inverse_self ()
 
Matrix< T > transpose () const
 
void transpose_self ()
 

Detailed Description

template<class T>
class vtb::linalg::Matrix< T >

Definition at line 51 of file linear_algebra.hh.

Member Function Documentation

◆ is_positive_definite()

template<class T >
bool Matrix::is_positive_definite ( ) const

Check if the matrix is positive definite using Cholesky decomposition. There is no check for symmetry.

Definition at line 26 of file linear_algebra.cc.