Points&Forces (core)
Software tools facilitating the task of surveying architecture
Classes | Public Member Functions | Protected Attributes | List of all members
a_mat Class Reference

#include <a_mat.h>

+ Inheritance diagram for a_mat:
+ Collaboration diagram for a_mat:

Classes

class  compatibility_error
 
class  range_error
 

Public Member Functions

 a_mat (UI i, UI j, double v=0)
 
 a_mat (int i, int j, double v=0)
 
 a_mat (const a_mat &m)
 
 ~a_mat ()
 
UI maxi () const
 
UI maxj () const
 
UI size () const
 
std::valarray< double > & x () const
 
virtual double & operator() (const UI i, const UI j)
 
virtual double operator() (const UI i, const UI j) const
 
a_matoperator= (const a_mat &m)
 
bool operator== (const a_mat &a)
 
a_matoperator- ()
 
a_matoperator+= (const a_mat &a)
 
a_mat operator+ (const a_mat &a)
 
a_matoperator-= (const a_mat &a)
 
a_mat operator- (const a_mat &a)
 
a_matoperator*= (double v)
 
a_mat operator* (double v)
 
a_matoperator/= (double v)
 
a_mat operator/ (double v)
 
a_mat transpose ()
 
void swapc (UI c1, UI c2)
 
void swapr (UI r1, UI r2)
 
a_mat sub_matrix (const UI i, const UI j) const
 
virtual void read (std::istream &i)
 
virtual void write (std::ostream &o) const
 
- Public Member Functions inherited from a_mat_base
virtual const std::string classname ()
 
- Public Member Functions inherited from a_base
 a_base ()
 
void read (const std::string &file_in)
 
void write (const std::string &file_out) const
 
void small (double tol)
 
double small () const
 

Protected Attributes

UI maxi_
 
UI maxj_
 
std::valarray< double > * x_
 
- Protected Attributes inherited from a_base
double verysmall_
 

Additional Inherited Members

- Static Public Member Functions inherited from a_mat_base
static const std::string help ()
 
- Static Public Member Functions inherited from a_base
static const std::string help ()
 

Detailed Description

Definition at line 41 of file a_mat.h.

Constructor & Destructor Documentation

◆ a_mat() [1/3]

a_mat::a_mat ( UI  i,
UI  j,
double  v = 0 
)

Definition at line 23 of file a_mat.cxx.

◆ a_mat() [2/3]

a_mat::a_mat ( int  i,
int  j,
double  v = 0 
)

Definition at line 31 of file a_mat.cxx.

◆ a_mat() [3/3]

a_mat::a_mat ( const a_mat m)

Definition at line 39 of file a_mat.cxx.

+ Here is the call graph for this function:

◆ ~a_mat()

a_mat::~a_mat ( )

Definition at line 47 of file a_mat.cxx.

Member Function Documentation

◆ maxi()

UI a_mat::maxi ( ) const
inline

Definition at line 49 of file a_mat.h.

+ Here is the caller graph for this function:

◆ maxj()

UI a_mat::maxj ( ) const
inline

Definition at line 50 of file a_mat.h.

+ Here is the caller graph for this function:

◆ operator()() [1/2]

virtual double& a_mat::operator() ( const UI  i,
const UI  j 
)
inlinevirtual

Definition at line 55 of file a_mat.h.

◆ operator()() [2/2]

virtual double a_mat::operator() ( const UI  i,
const UI  j 
) const
inlinevirtual

Definition at line 56 of file a_mat.h.

◆ operator*()

a_mat a_mat::operator* ( double  v)

Definition at line 109 of file a_mat.cxx.

◆ operator*=()

a_mat & a_mat::operator*= ( double  v)

Definition at line 103 of file a_mat.cxx.

+ Here is the caller graph for this function:

◆ operator+()

a_mat a_mat::operator+ ( const a_mat a)

Definition at line 83 of file a_mat.cxx.

◆ operator+=()

a_mat & a_mat::operator+= ( const a_mat a)

Definition at line 75 of file a_mat.cxx.

+ Here is the call graph for this function:

◆ operator-() [1/2]

a_mat & a_mat::operator- ( )

Definition at line 60 of file a_mat.cxx.

◆ operator-() [2/2]

a_mat a_mat::operator- ( const a_mat a)

Definition at line 97 of file a_mat.cxx.

◆ operator-=()

a_mat & a_mat::operator-= ( const a_mat a)

Definition at line 89 of file a_mat.cxx.

+ Here is the call graph for this function:

◆ operator/()

a_mat a_mat::operator/ ( double  v)

Definition at line 121 of file a_mat.cxx.

◆ operator/=()

a_mat & a_mat::operator/= ( double  v)

Definition at line 115 of file a_mat.cxx.

◆ operator=()

a_mat & a_mat::operator= ( const a_mat m)

Definition at line 52 of file a_mat.cxx.

+ Here is the call graph for this function:

◆ operator==()

bool a_mat::operator== ( const a_mat a)

Definition at line 66 of file a_mat.cxx.

+ Here is the call graph for this function:

◆ read()

void a_mat::read ( std::istream &  i)
virtual

read object from stream: should be overridden by children classes

Reimplemented from a_base.

Reimplemented in a_plane, and a_coord.

Definition at line 211 of file a_mat.cxx.

+ Here is the caller graph for this function:

◆ size()

UI a_mat::size ( ) const
inline

Definition at line 51 of file a_mat.h.

+ Here is the caller graph for this function:

◆ sub_matrix()

a_mat a_mat::sub_matrix ( const UI  i,
const UI  j 
) const

Definition at line 162 of file a_mat.cxx.

+ Here is the caller graph for this function:

◆ swapc()

void a_mat::swapc ( UI  c1,
UI  c2 
)

Definition at line 138 of file a_mat.cxx.

◆ swapr()

void a_mat::swapr ( UI  r1,
UI  r2 
)

Definition at line 149 of file a_mat.cxx.

◆ transpose()

a_mat a_mat::transpose ( )

Definition at line 127 of file a_mat.cxx.

+ Here is the caller graph for this function:

◆ write()

void a_mat::write ( std::ostream &  o) const
virtual

write object to stream: should be overridden by children classes

Reimplemented from a_base.

Reimplemented in a_plane, and a_coord.

Definition at line 224 of file a_mat.cxx.

+ Here is the caller graph for this function:

◆ x()

std::valarray<double>& a_mat::x ( ) const
inline

Definition at line 53 of file a_mat.h.

+ Here is the caller graph for this function:

Member Data Documentation

◆ maxi_

UI a_mat::maxi_
protected

Definition at line 88 of file a_mat.h.

◆ maxj_

UI a_mat::maxj_
protected

Definition at line 89 of file a_mat.h.

◆ x_

std::valarray<double>* a_mat::x_
protected

Definition at line 91 of file a_mat.h.


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