List of all members | Public Member Functions | Private Attributes | Friends
FdEnergyDepositFinderKG::ColumnVector Class Reference

#include <LinearAlgebra.h>

Public Member Functions

void Clear ()
 Free the vector (requiring another SetSize(n) call for reuse) More...
 
 ColumnVector (const int n)
 Row vector with n elements. More...
 
 ColumnVector (const int n, const double x)
 Row vector with n elements, intializing to x. More...
 
 ColumnVector ()
 Empty row vector (needs SetSize() later) More...
 
unsigned int GetSize () const
 
const double & operator() (const int row) const
 Read-only access to a vector element. More...
 
double & operator() (const int row)
 Read/write access to a vector element. More...
 
ColumnVector operator+ (const ColumnVector &rhs) const
 
void SetSize (const int n)
 Set the size of the vector. Does NOT initialize elements to 0. More...
 
void Zero ()
 Set all elements to 0. More...
 

Private Attributes

std::vector< double > fElements
 

Friends

class DiagonalMatrix
 
class LowerTriangularMatrix
 

Detailed Description

Definition at line 23 of file LinearAlgebra.h.

Constructor & Destructor Documentation

FdEnergyDepositFinderKG::ColumnVector::ColumnVector ( const int  n)
inline

Row vector with n elements.

Definition at line 26 of file LinearAlgebra.h.

FdEnergyDepositFinderKG::ColumnVector::ColumnVector ( const int  n,
const double  x 
)
inline

Row vector with n elements, intializing to x.

Definition at line 29 of file LinearAlgebra.h.

FdEnergyDepositFinderKG::ColumnVector::ColumnVector ( )
inline

Empty row vector (needs SetSize() later)

Definition at line 33 of file LinearAlgebra.h.

Member Function Documentation

void FdEnergyDepositFinderKG::ColumnVector::Clear ( )
inline

Free the vector (requiring another SetSize(n) call for reuse)

Definition at line 42 of file LinearAlgebra.h.

References fElements.

unsigned int FdEnergyDepositFinderKG::ColumnVector::GetSize ( ) const
inline
const double& FdEnergyDepositFinderKG::ColumnVector::operator() ( const int  row) const
inline

Read-only access to a vector element.

Definition at line 36 of file LinearAlgebra.h.

References fElements.

double& FdEnergyDepositFinderKG::ColumnVector::operator() ( const int  row)
inline

Read/write access to a vector element.

Definition at line 39 of file LinearAlgebra.h.

References fElements.

ColumnVector FdEnergyDepositFinderKG::ColumnVector::operator+ ( const ColumnVector rhs) const

Definition at line 279 of file LinearAlgebra.cc.

References fElements, and GetSize().

void FdEnergyDepositFinderKG::ColumnVector::SetSize ( const int  n)
inline
void FdEnergyDepositFinderKG::ColumnVector::Zero ( )

Set all elements to 0.

Definition at line 294 of file LinearAlgebra.cc.

References fElements.

Referenced by FdEnergyDepositFinderKG::LowerTriangularMatrix::operator*().

Friends And Related Function Documentation

friend class DiagonalMatrix
friend

Definition at line 56 of file LinearAlgebra.h.

friend class LowerTriangularMatrix
friend

Definition at line 55 of file LinearAlgebra.h.

Member Data Documentation

std::vector<double> FdEnergyDepositFinderKG::ColumnVector::fElements
private

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

, generated on Tue Sep 26 2023.