ECF 1.5
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Matrica Class Reference

Public Member Functions

Matrica Transpose (int)
 
 Matrica (int, int)
 
 Matrica (Matrica &)
 
double Get (int, int) const
 
double Get (int) const
 
double Set (int, int, double)
 
double Set (int, double)
 
double Norm (void)
 
int GetRow (void) const
 
int GetCol (void) const
 
int CopyColumn (int, Matrica &)
 
int SetColumn (int, Matrica &)
 
Matricaoperator= (Matrica &)
 
Matrica operator+ (Matrica &)
 
Matrica operator+ (double)
 
void operator+= (Matrica &)
 
Matrica operator- (const Matrica &)
 
void operator-= (Matrica &)
 
Matrica operator* (const Matrica &)
 
Matrica operator* (const double &)
 
Matrica operator/ (const double &)
 
Matrica operator~ ()
 
double * operator[] (const int redak)
 
void Reset (int, int=1)
 
void Init (int, int=1)
 
int Load (const char *)
 
void Save (const char *)
 
void SaveLong (const char *fname)
 
void Show (void)
 

Public Attributes

double ** data
 

Protected Member Functions

void Take (void)
 
void Free (void)
 

Protected Attributes

int row
 
int col
 

Detailed Description

Definition at line 14 of file matrice.h.

Constructor & Destructor Documentation

◆ Matrica() [1/3]

Matrica::Matrica ( void  )

Definition at line 33 of file matrice.cpp.

◆ Matrica() [2/3]

Matrica::Matrica ( int  _row,
int  _col = 1 
)

Definition at line 39 of file matrice.cpp.

◆ Matrica() [3/3]

Matrica::Matrica ( Matrica source)

Definition at line 54 of file matrice.cpp.

◆ ~Matrica()

Matrica::~Matrica ( )

Definition at line 80 of file matrice.cpp.

Member Function Documentation

◆ CopyColumn()

int Matrica::CopyColumn ( int  colnum,
Matrica V 
)

Definition at line 282 of file matrice.cpp.

◆ Free()

void Matrica::Free ( void  )
protected

Definition at line 14 of file matrice.cpp.

◆ Get() [1/2]

double Matrica::Get ( int  _row) const

Definition at line 192 of file matrice.cpp.

◆ Get() [2/2]

double Matrica::Get ( int  _row,
int  _col 
) const

Definition at line 186 of file matrice.cpp.

◆ GetCol()

int Matrica::GetCol ( void  ) const
inline

Definition at line 59 of file matrice.h.

◆ GetRow()

int Matrica::GetRow ( void  ) const
inline

Definition at line 56 of file matrice.h.

◆ Init()

void Matrica::Init ( int  _row,
int  _col = 1 
)

Definition at line 46 of file matrice.cpp.

◆ Load()

int Matrica::Load ( const char *  fname)

Definition at line 212 of file matrice.cpp.

◆ Norm()

double Matrica::Norm ( void  )

Definition at line 302 of file matrice.cpp.

◆ operator*() [1/2]

Matrica Matrica::operator* ( const double &  scalar)

Definition at line 134 of file matrice.cpp.

◆ operator*() [2/2]

Matrica Matrica::operator* ( const Matrica op2)

Definition at line 121 of file matrice.cpp.

◆ operator+() [1/2]

Matrica Matrica::operator+ ( double  broj)

Definition at line 310 of file matrice.cpp.

◆ operator+() [2/2]

Matrica Matrica::operator+ ( Matrica op2)

Definition at line 85 of file matrice.cpp.

◆ operator+=()

void Matrica::operator+= ( Matrica op2)

Definition at line 95 of file matrice.cpp.

◆ operator-()

Matrica Matrica::operator- ( const Matrica op2)

Definition at line 111 of file matrice.cpp.

◆ operator-=()

void Matrica::operator-= ( Matrica op2)

Definition at line 103 of file matrice.cpp.

◆ operator/()

Matrica Matrica::operator/ ( const double &  scalar)

Definition at line 155 of file matrice.cpp.

◆ operator=()

Matrica & Matrica::operator= ( Matrica source)

Definition at line 66 of file matrice.cpp.

◆ operator[]()

double * Matrica::operator[] ( const int  redak)
inline

Definition at line 62 of file matrice.h.

◆ operator~()

Matrica Matrica::operator~ ( void  )

Definition at line 144 of file matrice.cpp.

◆ Reset()

void Matrica::Reset ( int  _row,
int  _col = 1 
)

Definition at line 270 of file matrice.cpp.

◆ Save()

void Matrica::Save ( const char *  fname)

Definition at line 231 of file matrice.cpp.

◆ SaveLong()

void Matrica::SaveLong ( const char *  fname)

Definition at line 245 of file matrice.cpp.

◆ Set() [1/2]

double Matrica::Set ( int  _row,
double  value 
)

Definition at line 205 of file matrice.cpp.

◆ Set() [2/2]

double Matrica::Set ( int  _row,
int  _col,
double  value 
)

Definition at line 198 of file matrice.cpp.

◆ SetColumn()

int Matrica::SetColumn ( int  colnum,
Matrica v 
)

Definition at line 292 of file matrice.cpp.

◆ Show()

void Matrica::Show ( void  )

Definition at line 259 of file matrice.cpp.

◆ Take()

void Matrica::Take ( void  )
protected

Definition at line 24 of file matrice.cpp.

◆ Transpose()

Matrica Matrica::Transpose ( int  transpose)

Definition at line 167 of file matrice.cpp.

Member Data Documentation

◆ col

int Matrica::col
protected

Definition at line 17 of file matrice.h.

◆ data

double** Matrica::data

Definition at line 22 of file matrice.h.

◆ row

int Matrica::row
protected

Definition at line 17 of file matrice.h.


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