API Documentation
Loading...
Searching...
No Matches
SVD Class Reference

#include <SVD.hpp>

Public Member Functions

 SVD (const NdArray &inMatrix)
 
const NdArrayu () noexcept
 
const NdArrayv () noexcept
 
const Buffer< double > & s () noexcept
 
Buffer< double > solve (const Buffer< double > &inInput, double inThresh=-1.)
 

Detailed Description

performs the singular value decomposition of a general matrix, taken and adapted from Numerical Recipes Third Edition svd.h

Constructor & Destructor Documentation

◆ SVD()

SVD ( const NdArray & inMatrix)
inlineexplicit

Constructor

Parameters
inMatrixmatrix to perform SVD on

Member Function Documentation

◆ s()

const Buffer< double > & s ( )
inlinenoexcept

the resultant w matrix

Returns
s matrix

◆ solve()

Buffer< double > solve ( const Buffer< double > & inInput,
double inThresh = -1. )
inline

solves the linear least squares problem

Parameters
inInput
inThresh(default -1.)
Returns
NdArray

◆ u()

const NdArray & u ( )
inlinenoexcept

the resultant u matrix

Returns
u matrix

◆ v()

const NdArray & v ( )
inlinenoexcept

the resultant v matrix

Returns
v matrix

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