Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TargetMatrix Class Reference

Class containing the target corner matrices for the context based smoothing. More...

#include <TargetMatrix.hpp>

Inheritance diagram for TargetMatrix:
Collaboration diagram for TargetMatrix:

Public Member Functions

 TargetMatrix ()
 
 TargetMatrix (const Matrix3D &A)
 
TargetMatrixoperator= (const Matrix3D &A)
 
TargetMatrixoperator= (const TargetMatrix &A)
 
double get_cK () const
 
 TargetMatrix ()
 
 TargetMatrix (const Matrix3D &A)
 
TargetMatrixoperator= (const Matrix3D &A)
 
TargetMatrixoperator= (const TargetMatrix &A)
 
double get_cK () const
 
- Public Member Functions inherited from Matrix3D
 Matrix3D ()
 Default constructor sets all entries to 0. More...
 
 Matrix3D (const Matrix3D &A)
 
 Matrix3D (const double &value)
 sets all entries of the matrix to value. More...
 
 Matrix3D (const double *v)
 sets matrix entries to values in array. More...
 
 Matrix3D (const char *s)
 for test purposes, matrices can be instantiated as More...
 
 ~Matrix3D ()
 
Matrix3Doperator= (const Matrix3D &A)
 
Matrix3Doperator= (const double &scalar)
 
Matrix3Doperator= (const char *s)
 for test purposes, matrices can be assigned as follows More...
 
void zero ()
 Sets all entries to zero (more efficient than assignement). More...
 
void set_column (int j, const Vector3D &c)
 Sets column j (0, 1 or 2) to Vector3D c. More...
 
double column_length (int i) const
 returns the column length – i is 0-based. More...
 
const Matrix3D operator* (const double &s) const
 multiplies each entry by the scalar s More...
 
void operator+= (const Matrix3D &rhs)
 
void operator-= (const Matrix3D &rhs)
 
void operator*= (const double &s)
 multiplies each entry by the scalar s More...
 
Matrix3D plus_transpose (const Matrix3D &B) const
 $ + B^T $ More...
 
void plus_transpose_equal (const Matrix3D &B)
 $ += B^T $ More...
 
Matrix3Douter_product (const Vector3D &v1, const Vector3D &v2)
 Computes $ A = v_1 v_2^T $. More...
 
void fill_lower_triangle ()
 
size_t num_rows () const
 
size_t num_cols () const
 
double * operator[] (unsigned i)
 returns a pointer to a row. More...
 
const double * operator[] (unsigned i) const
 returns a pointer to a row. More...
 
 Matrix3D ()
 Default constructor sets all entries to 0. More...
 
 Matrix3D (const Matrix3D &A)
 
 Matrix3D (const double &value)
 sets all entries of the matrix to value. More...
 
 Matrix3D (const double *v)
 sets matrix entries to values in array. More...
 
 Matrix3D (const char *s)
 for test purposes, matrices can be instantiated as More...
 
 ~Matrix3D ()
 
Matrix3Doperator= (const Matrix3D &A)
 
Matrix3Doperator= (const double &scalar)
 
Matrix3Doperator= (const char *s)
 for test purposes, matrices can be assigned as follows More...
 
void zero ()
 Sets all entries to zero (more efficient than assignement). More...
 
void set_column (int j, const Vector3D &c)
 Sets column j (0, 1 or 2) to Vector3D c. More...
 
double column_length (int i) const
 returns the column length – i is 0-based. More...
 
const Matrix3D operator* (const double &s) const
 
void operator+= (const Matrix3D &rhs)
 
void operator-= (const Matrix3D &rhs)
 
void operator*= (const double &s)
 
Matrix3D plus_transpose (const Matrix3D &B) const
 
void plus_transpose_equal (const Matrix3D &B)
 
Matrix3Douter_product (const Vector3D &v1, const Vector3D &v2)
 
void fill_lower_triangle ()
 
size_t num_rows () const
 
size_t num_cols () const
 
double * operator[] (unsigned i)
 returns a pointer to a row. More...
 
const double * operator[] (unsigned i) const
 returns a pointer to a row. More...
 

Private Attributes

double cK
 

Additional Inherited Members

- Protected Member Functions inherited from Matrix3D
void copy (const double *v)
 
void set (const double &val)
 
void set_values (const char *s)
 
void copy (const double *v)
 
void set (const double &val)
 
void set_values (const char *s)
 
- Protected Attributes inherited from Matrix3D
double v_ [9]
 

Detailed Description

Class containing the target corner matrices for the context based smoothing.

Definition at line 49 of file includeLinks/TargetMatrix.hpp.

Constructor & Destructor Documentation

TargetMatrix ( )
inline

Definition at line 53 of file includeLinks/TargetMatrix.hpp.

References TargetMatrix::cK.

53  : Matrix3D()
54  {
55  cK = 1.;
56  }
Matrix3D()
Default constructor sets all entries to 0.
TargetMatrix ( const Matrix3D A)
inline

Definition at line 58 of file includeLinks/TargetMatrix.hpp.

References TargetMatrix::cK.

58  : Matrix3D(A)
59  {
60  cK = 1.;
61  }
Matrix3D()
Default constructor sets all entries to 0.
rational * A
Definition: vinci_lass.c:67
TargetMatrix ( )
inline

Definition at line 53 of file src/Misc/TargetMatrix.hpp.

References TargetMatrix::cK.

53  : Matrix3D()
54  {
55  cK = 1.;
56  }
Matrix3D()
Default constructor sets all entries to 0.
TargetMatrix ( const Matrix3D A)
inline

Definition at line 58 of file src/Misc/TargetMatrix.hpp.

References TargetMatrix::cK.

58  : Matrix3D(A)
59  {
60  cK = 1.;
61  }
Matrix3D()
Default constructor sets all entries to 0.
rational * A
Definition: vinci_lass.c:67

Member Function Documentation

double get_cK ( ) const
inline

Definition at line 79 of file src/Misc/TargetMatrix.hpp.

References TargetMatrix::cK.

79 { return cK; }
TargetMatrix& operator= ( const Matrix3D A)
inline

Definition at line 63 of file src/Misc/TargetMatrix.hpp.

References TargetMatrix::cK, and Matrix3D::operator=().

64  {
65  if (&A != this)
67  cK = 1.;
68  return *this;
69  }
rational * A
Definition: vinci_lass.c:67
Matrix3D & operator=(const Matrix3D &A)

Here is the call graph for this function:

TargetMatrix& operator= ( const Matrix3D A)
inline

Definition at line 63 of file includeLinks/TargetMatrix.hpp.

References TargetMatrix::cK, and Matrix3D::operator=().

64  {
65  if (&A != this)
67  cK = 1.;
68  return *this;
69  }
rational * A
Definition: vinci_lass.c:67
Matrix3D & operator=(const Matrix3D &A)

Here is the call graph for this function:

TargetMatrix& operator= ( const TargetMatrix A)
inline

Definition at line 71 of file includeLinks/TargetMatrix.hpp.

References TargetMatrix::cK, and Matrix3D::operator=().

72  {
73  if (&A != this)
75  cK = A.cK;
76  return *this;
77  }
rational * A
Definition: vinci_lass.c:67
Matrix3D & operator=(const Matrix3D &A)

Here is the call graph for this function:

TargetMatrix& operator= ( const TargetMatrix A)
inline

Definition at line 71 of file src/Misc/TargetMatrix.hpp.

References TargetMatrix::cK, and Matrix3D::operator=().

72  {
73  if (&A != this)
75  cK = A.cK;
76  return *this;
77  }
rational * A
Definition: vinci_lass.c:67
Matrix3D & operator=(const Matrix3D &A)

Here is the call graph for this function:

Member Data Documentation

double cK
private

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