GNU Octave 7.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::math::qr< T > Class Template Reference

#include "qr.h"

Inheritance diagram for octave::math::qr< T >:
Collaboration diagram for octave::math::qr< T >:

Public Types

typedef T::column_vector_type CV_T
 
typedef T::element_type ELT_T
 
typedef T::row_vector_type RV_T
 
enum  type { std , raw , economy }
 

Public Member Functions

 qr (const qr &a)
 
 qr (const T &a, type qr_type=qr::std)
 
OCTAVE_API qr (const T &m_q, const T &m_r)
 
 qr (void)
 
virtual ~qr (void)=default
 
OCTAVE_API void delete_col (const Array< octave_idx_type > &j)
 
OCTAVE_API void delete_col (octave_idx_type j)
 
OCTAVE_API void delete_row (octave_idx_type j)
 
OCTAVE_API type get_type (void) const
 
OCTAVE_API void init (const T &a, type qr_type)
 
OCTAVE_API void insert_col (const CV_T &u, octave_idx_type j)
 
OCTAVE_API void insert_col (const T &u, const Array< octave_idx_type > &j)
 
OCTAVE_API void insert_row (const RV_T &u, octave_idx_type j)
 
qroperator= (const qr &a)
 
Q (void) const
 
R (void) const
 
OCTAVE_API bool regular (void) const
 
OCTAVE_API void shift_cols (octave_idx_type i, octave_idx_type j)
 
OCTAVE_API void update (const CV_T &u, const CV_T &v)
 
OCTAVE_API void update (const T &u, const T &v)
 

Protected Member Functions

OCTAVE_API void form (octave_idx_type n, T &afact, ELT_T *tau, type qr_type)
 

Protected Attributes

m_q
 
m_r
 

Detailed Description

template<typename T>
class octave::math::qr< T >

Definition at line 38 of file qr.h.

Member Typedef Documentation

◆ CV_T

template<typename T >
typedef T::column_vector_type octave::math::qr< T >::CV_T

Definition at line 45 of file qr.h.

◆ ELT_T

template<typename T >
typedef T::element_type octave::math::qr< T >::ELT_T

Definition at line 43 of file qr.h.

◆ RV_T

template<typename T >
typedef T::row_vector_type octave::math::qr< T >::RV_T

Definition at line 44 of file qr.h.

Member Enumeration Documentation

◆ type

template<typename T >
enum octave::math::qr::type
Enumerator
std 
raw 
economy 

Definition at line 47 of file qr.h.

Constructor & Destructor Documentation

◆ qr() [1/4]

template<typename T >
octave::math::qr< T >::qr ( void  )
inline

Definition at line 54 of file qr.h.

◆ qr() [2/4]

template<typename T >
octave::math::qr< T >::qr ( const T &  a,
type  qr_type = qr< T >::std 
)
inline

Definition at line 56 of file qr.h.

References qr_type().

◆ qr() [3/4]

template<typename T >
qr< T >::qr ( const T &  m_q,
const T &  m_r 
)

Definition at line 58 of file qr.cc.

References octave::math::qr< T >::m_q, and octave::math::qr< T >::m_r.

◆ qr() [4/4]

template<typename T >
octave::math::qr< T >::qr ( const qr< T > &  a)
inline

Definition at line 64 of file qr.h.

◆ ~qr()

template<typename T >
virtual octave::math::qr< T >::~qr ( void  )
virtualdefault

Member Function Documentation

◆ delete_col() [1/2]

template<typename T >
OCTAVE_API void octave::math::qr< T >::delete_col ( const Array< octave_idx_type > &  j)

◆ delete_col() [2/2]

template<typename T >
OCTAVE_API void octave::math::qr< T >::delete_col ( octave_idx_type  j)

◆ delete_row()

template<typename T >
OCTAVE_API void octave::math::qr< T >::delete_row ( octave_idx_type  j)

◆ form()

template<typename T >
OCTAVE_API void octave::math::qr< T >::form ( octave_idx_type  n,
T &  afact,
ELT_T tau,
type  qr_type 
)
protected

◆ get_type()

template<typename T >
qr< T >::type qr< T >::get_type ( void  ) const

Definition at line 73 of file qr.cc.

◆ init()

template<typename T >
OCTAVE_API void octave::math::qr< T >::init ( const T &  a,
type  qr_type 
)

◆ insert_col() [1/2]

template<typename T >
OCTAVE_API void octave::math::qr< T >::insert_col ( const CV_T u,
octave_idx_type  j 
)

◆ insert_col() [2/2]

template<typename T >
OCTAVE_API void octave::math::qr< T >::insert_col ( const T &  u,
const Array< octave_idx_type > &  j 
)

◆ insert_row()

template<typename T >
OCTAVE_API void octave::math::qr< T >::insert_row ( const RV_T u,
octave_idx_type  j 
)

◆ operator=()

template<typename T >
qr & octave::math::qr< T >::operator= ( const qr< T > &  a)
inline

Definition at line 66 of file qr.h.

References octave::math::qr< T >::m_q, and octave::math::qr< T >::m_r.

Referenced by octave::math::qrp< T >::operator=().

◆ Q()

template<typename T >
T octave::math::qr< T >::Q ( void  ) const
inline

Definition at line 79 of file qr.h.

◆ R()

template<typename T >
T octave::math::qr< T >::R ( void  ) const
inline

Definition at line 81 of file qr.h.

◆ regular()

template<typename T >
bool qr< T >::regular ( void  ) const

Definition at line 89 of file qr.cc.

References min().

◆ shift_cols()

template<typename T >
OCTAVE_API void octave::math::qr< T >::shift_cols ( octave_idx_type  i,
octave_idx_type  j 
)

◆ update() [1/2]

template<typename T >
OCTAVE_API void octave::math::qr< T >::update ( const CV_T u,
const CV_T v 
)

◆ update() [2/2]

template<typename T >
OCTAVE_API void octave::math::qr< T >::update ( const T &  u,
const T &  v 
)

Member Data Documentation

◆ m_q

template<typename T >
T octave::math::qr< T >::m_q
protected

Definition at line 109 of file qr.h.

Referenced by octave::math::qr< T >::qr(), and octave::math::qr< T >::operator=().

◆ m_r

template<typename T >
T octave::math::qr< T >::m_r
protected

Definition at line 110 of file qr.h.

Referenced by octave::math::qr< T >::qr(), and octave::math::qr< T >::operator=().


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