Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

ReallocatableMatrix Class Reference

#include <matrix.hpp>

Inheritance diagram for ReallocatableMatrix:

Inheritance graph
[legend]
Collaboration diagram for ReallocatableMatrix:

Collaboration graph
[legend]
List of all members.

Detailed Description

Class of matrix stored by columns.

This class contains matrix which stored by columns so you can easy add columns.

Definition at line 122 of file matrix.hpp.

Public Member Functions

 ReallocatableMatrix (unsigned rows, unsigned start_cols)
 Initialize matrix with sizes rows x start_cols.
unsigned GetNumRows () const
 Get number of rows.
unsigned GetNumCols () const
 Get number of columns.
void Resize (unsigned needsize)
 Add new columns two matrix if needed.
double & elem (unsigned i, unsigned j)
 Get a reference to matrix in position i,j; so you can change it.
double elem (unsigned i, unsigned j) const
 Get element in position i,j.
 ~ReallocatableMatrix ()
 The destructor.
Row GetRow (unsigned i) const
 Get view of i row of matrix.
Column GetCol (unsigned j) const
 Get view of j column of matrix.


Constructor & Destructor Documentation

ReallocatableMatrix::ReallocatableMatrix unsigned  rows,
unsigned  start_cols
 

Initialize matrix with sizes rows x start_cols.

Definition at line 111 of file matrix.cpp.

References Resize().

ReallocatableMatrix::~ReallocatableMatrix  ) 
 

The destructor.

Definition at line 166 of file matrix.cpp.


Member Function Documentation

unsigned ReallocatableMatrix::GetNumRows  )  const [virtual]
 

Get number of rows.

Implements Matrix.

Definition at line 136 of file matrix.cpp.

unsigned ReallocatableMatrix::GetNumCols  )  const [virtual]
 

Get number of columns.

Implements Matrix.

Definition at line 141 of file matrix.cpp.

void ReallocatableMatrix::Resize unsigned  needsize  ) 
 

Add new columns two matrix if needed.

Definition at line 117 of file matrix.cpp.

References ReallocatableMatrix_add_allocsize.

Referenced by Cross::Approximate(), and ReallocatableMatrix().

double & ReallocatableMatrix::elem unsigned  i,
unsigned  j
 

Get a reference to matrix in position i,j; so you can change it.

Definition at line 146 of file matrix.cpp.

Referenced by Cross::Approximate().

double ReallocatableMatrix::elem unsigned  i,
unsigned  j
const [virtual]
 

Get element in position i,j.

Implements Matrix.

Definition at line 156 of file matrix.cpp.

Matrix::Row Matrix::GetRow unsigned  i  )  const [inherited]
 

Get view of i row of matrix.

Definition at line 19 of file matrix.cpp.

Referenced by Cross::Approximate().

Matrix::Column Matrix::GetCol unsigned  j  )  const [inherited]
 

Get view of j column of matrix.

Definition at line 39 of file matrix.cpp.

Referenced by Cross::Approximate().


The documentation for this class was generated from the following files:
Generated on Sun May 25 01:58:10 2025 for SmoluchowskiSolver by Doxygen