#include <densematrix.h>
Public Member Functions | |
CDenseMatrix (int row, int col) | |
~CDenseMatrix () | |
double * | operator[] (int idx) |
void | reset () |
void | Gram_Schmidt_Orghonomralization () |
int | row () |
int | col () |
Protected Attributes | |
int | m_row |
int | m_col |
double ** | m_ptr |
Definition at line 47 of file densematrix.h.
MeshLib::CDenseMatrix::CDenseMatrix | ( | int | row, | |
int | col | |||
) | [inline] |
MeshLib::CDenseMatrix::~CDenseMatrix | ( | ) | [inline] |
Definition at line 67 of file densematrix.h.
int MeshLib::CDenseMatrix::col | ( | ) | [inline] |
Definition at line 84 of file densematrix.h.
{ return m_col; };
void MeshLib::CDenseMatrix::Gram_Schmidt_Orghonomralization | ( | ) | [inline] |
Definition at line 95 of file densematrix.h.
{ for( int i = 0; i < m_row; i ++ ) { for( int j = 0; j < i; j ++ ) { double inner = _inner_product( m_ptr[i], m_ptr[j], m_col ); for( int k = 0; k < m_col; k ++ ) { m_ptr[i][k] = m_ptr[i][k] - m_ptr[j][k] * inner; } } _normalize( m_ptr[i], m_col ); if( i % 150 == 0 ) printf("%d/%d\n", i, m_row ); }; };
double* MeshLib::CDenseMatrix::operator[] | ( | int | idx | ) | [inline] |
Definition at line 77 of file densematrix.h.
void MeshLib::CDenseMatrix::reset | ( | ) | [inline] |
int MeshLib::CDenseMatrix::row | ( | ) | [inline] |
Definition at line 83 of file densematrix.h.
{ return m_row; };
int MeshLib::CDenseMatrix::m_col [protected] |
Definition at line 89 of file densematrix.h.
double** MeshLib::CDenseMatrix::m_ptr [protected] |
Definition at line 91 of file densematrix.h.
int MeshLib::CDenseMatrix::m_row [protected] |
Definition at line 84 of file densematrix.h.