SimplexJacQF< N, T > Class Template Reference

Simplex quality functions of the Jacobian matrix. More...

#include <SimplexJacQF.h>

Inheritance diagram for SimplexJacQF< N, T >:
SimplexAdjJacQF< N, T > SimplexMeanRatio< N, T > SimplexCondNum< N, T > SimplexModMeanRatio< N, T > SimplexModCondNum< N, T >

List of all members.

Public Types

typedef T Number
 The number type.
typedef Jacobian::Vertex Vertex
 The class for a vertex.
typedef Jacobian::Simplex Simplex
 The simplex type.
typedef Jacobian::Matrix Matrix
 An NxN matrix.

Public Member Functions

Constructors etc.

 SimplexJacQF ()
 Default constructor. Un-initialized memory.
 SimplexJacQF (const SimplexJacQF &other)
 Copy constructor.
 SimplexJacQF (const Simplex &s)
 Construct from a simplex.
SimplexJacQFoperator= (const SimplexJacQF &other)
 Assignment operator.
 ~SimplexJacQF ()
 Trivial destructor.
Manipulators

void setFunction (const Simplex &s)
 Set the vertices in preparation for a function call.
void set (const Simplex &s)
 Set the vertices in preparation for a function call or a gradient call.
void setFunction (const geom::Simplex< N, ads::FixedArray< N+1, Number >, Number > &s)
 Set the vertices in preparation for a function call.
void setFunction (const geom::Simplex< N, ads::FixedArray< N+2, Number >, Number > &s)
 Set the vertices in preparation for a function call.
void set (const geom::Simplex< N, ads::FixedArray< N+1, Number >, Number > &s)
 Set the vertices in preparation for a function call or a gradient call.

Accessors.



const MatrixgetMatrix () const
 Return a const reference to the Jacobian matrix.
const ads::FixedArray< N,
Matrix > & 
getGradientMatrix () const
 Return a const reference to the gradient of the Jacobian matrix.
Number getDeterminant () const
 Return the determinant of the Jacobian matrix.
const VertexgetGradientDeterminant () const
 Return a const reference to the gradient of the determinant of the Jacobian matrix.
Number computeContent () const
 Return the content (hypervolume) of the simplex.
void computeGradientContent (Vertex *grad) const
 Calculate the gradient of the content (hypervolume) of the simplex.
Vertex computeGradientContent () const
 Return the gradient of the content (hypervolume) of the simplex.
static int getDimension ()
 Return the space dimension.

Detailed Description

template<int N, typename T = double>
class SimplexJacQF< N, T >

Simplex quality functions of the Jacobian matrix.

Parameters:
N is the dimension.
T is the number type. By default it is double.

This is a base class for simplex quality functions that uses the Jacobian matrix. It has member functions for evaluating the determinant and content of the simplex.

Before calling getDeterminant() or computeContent(), you must set the Jacobian matrix with setFunction() or set(). Before calling computeGradientContent(), you must set the Jacobian matrix and its gradient with set().


Member Function Documentation

template<int N, typename T = double>
void SimplexJacQF< N, T >::set ( const geom::Simplex< N, ads::FixedArray< N+1, Number >, Number > &  s  )  [inline]

Set the vertices in preparation for a function call or a gradient call.

This first projects the simplex to N-D and then call the above set().

Reimplemented in SimplexAdjJacQF< N, T >.

template<int N, typename T = double>
void SimplexJacQF< N, T >::setFunction ( const geom::Simplex< N, ads::FixedArray< N+2, Number >, Number > &  s  )  [inline]

Set the vertices in preparation for a function call.

This first projects the simplex to N-D and then calls the above set_function().

References SimplexJacQF< N, T >::setFunction().

template<int N, typename T = double>
void SimplexJacQF< N, T >::setFunction ( const geom::Simplex< N, ads::FixedArray< N+1, Number >, Number > &  s  )  [inline]

Set the vertices in preparation for a function call.

This first projects the simplex to N-D and then calls the above set_function().

Reimplemented in SimplexAdjJacQF< N, T >.

References SimplexJacQF< N, T >::setFunction().


The documentation for this class was generated from the following file:
Generated on Thu Jun 30 02:14:58 2016 for Computational Geometry Package by  doxygen 1.6.3