Points&Forces (core)
Software tools facilitating the task of surveying architecture
Public Member Functions | Static Public Member Functions | Friends | List of all members
a_2dh Class Reference

an homogeneous 2d matrix class More...

#include <a_2dh.h>

+ Inheritance diagram for a_2dh:
+ Collaboration diagram for a_2dh:

Public Member Functions

 a_2dh ()
 
 a_2dh (double x, double y, double t=1)
 
 a_2dh (const a_point2 &p)
 
 a_2dh (const a_mat &m)
 
void set (double x, double y, double t=1)
 
void set (const a_point2 &p)
 
a_point2 point2 () const
 
void X (double v)
 
void Y (double v)
 
void T (double v)
 
double X () const
 
double Y () const
 
double T () const
 
double x () const
 
double y () const
 
- Public Member Functions inherited from a_mat_c
 a_mat_c (UI i, double v=0)
 
 a_mat_c (int i, double v=0)
 
a_mat_coperator= (const a_mat &m)
 
double & operator() (const UI i)
 
double operator() (const UI i) const
 
double sumsq () const
 
double norm () const
 
void normalise ()
 
- Public Member Functions inherited from a_mat
 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
 

Static Public Member Functions

static const std::string help ()
 
- 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 ()
 

Friends

std::istream & operator>> (std::istream &i, a_2dh &m)
 
std::ostream & operator<< (std::ostream &o, const a_2dh &m)
 

Additional Inherited Members

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

Detailed Description

an homogeneous 2d matrix class

Definition at line 29 of file a_2dh.h.

Constructor & Destructor Documentation

◆ a_2dh() [1/4]

a_2dh::a_2dh ( )
inline

Definition at line 32 of file a_2dh.h.

◆ a_2dh() [2/4]

a_2dh::a_2dh ( double  x,
double  y,
double  t = 1 
)
inline

Definition at line 33 of file a_2dh.h.

+ Here is the call graph for this function:

◆ a_2dh() [3/4]

a_2dh::a_2dh ( const a_point2 p)
inline

Definition at line 34 of file a_2dh.h.

+ Here is the call graph for this function:

◆ a_2dh() [4/4]

a_2dh::a_2dh ( const a_mat m)

Definition at line 24 of file a_2dh.cxx.

+ Here is the call graph for this function:

Member Function Documentation

◆ help()

const std::string a_2dh::help ( )
static

Definition at line 4 of file a_2dh.cxx.

+ Here is the caller graph for this function:

◆ point2()

a_point2 a_2dh::point2 ( ) const
inline

Definition at line 39 of file a_2dh.h.

◆ set() [1/2]

void a_2dh::set ( const a_point2 p)
inline

Definition at line 38 of file a_2dh.h.

+ Here is the call graph for this function:

◆ set() [2/2]

void a_2dh::set ( double  x,
double  y,
double  t = 1 
)
inline

Definition at line 37 of file a_2dh.h.

+ Here is the call graph for this function:

◆ T() [1/2]

double a_2dh::T ( ) const
inline

Definition at line 45 of file a_2dh.h.

◆ T() [2/2]

void a_2dh::T ( double  v)
inline

Definition at line 42 of file a_2dh.h.

◆ X() [1/2]

double a_2dh::X ( ) const
inline

Definition at line 43 of file a_2dh.h.

◆ x()

double a_2dh::x ( ) const
inline

Definition at line 46 of file a_2dh.h.

+ Here is the caller graph for this function:

◆ X() [2/2]

void a_2dh::X ( double  v)
inline

Definition at line 40 of file a_2dh.h.

◆ Y() [1/2]

double a_2dh::Y ( ) const
inline

Definition at line 44 of file a_2dh.h.

◆ y()

double a_2dh::y ( ) const
inline

Definition at line 47 of file a_2dh.h.

+ Here is the caller graph for this function:

◆ Y() [2/2]

void a_2dh::Y ( double  v)
inline

Definition at line 41 of file a_2dh.h.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  o,
const a_2dh m 
)
friend

Definition at line 43 of file a_2dh.cxx.

◆ operator>>

std::istream& operator>> ( std::istream &  i,
a_2dh m 
)
friend

Definition at line 33 of file a_2dh.cxx.


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