DGtal 1.4.0
|
Aim: KForm represents discrete kforms in the dec package. More...
#include <DGtal/dec/KForm.h>
Public Types | |
typedef TCalculus | Calculus |
typedef Calculus::DenseVector | Container |
typedef Calculus::Scalar | Scalar |
typedef Calculus::SCell | SCell |
typedef Calculus::Index | Index |
Public Member Functions | |
BOOST_STATIC_ASSERT ((order >=0)) | |
BOOST_STATIC_ASSERT ((order<=Calculus::dimensionEmbedded)) | |
KForm (ConstAlias< Calculus > calculus) | |
KForm (ConstAlias< Calculus > calculus, const Container &container) | |
KForm & | operator= (const KForm &other) |
void | selfDisplay (std::ostream &out) const |
std::string | className () const |
void | clear () |
SCell | getSCell (const Index &index) const |
Index | length () const |
bool | isValid () const |
Static Public Member Functions | |
static KForm< TCalculus, order, duality > | ones (ConstAlias< Calculus > calculus) |
static KForm< TCalculus, order, duality > | zeros (ConstAlias< Calculus > calculus) |
static KForm< TCalculus, order, duality > | dirac (ConstAlias< Calculus > calculus, const typename Calculus::Cell &cell) |
Data Fields | |
Container | myContainer |
const Calculus * | myCalculus |
Protected Member Functions | |
KForm () | |
Aim: KForm represents discrete kforms in the dec package.
Description of template class 'KForm'
TCalculus | should be DiscreteExteriorCalculus. |
order | is the order of the kform. |
duality | is the duality of the kform. |
typedef TCalculus DGtal::KForm< TCalculus, order, duality >::Calculus |
typedef Calculus::DenseVector DGtal::KForm< TCalculus, order, duality >::Container |
typedef Calculus::Index DGtal::KForm< TCalculus, order, duality >::Index |
typedef Calculus::Scalar DGtal::KForm< TCalculus, order, duality >::Scalar |
typedef Calculus::SCell DGtal::KForm< TCalculus, order, duality >::SCell |
DGtal::KForm< TCalculus, order, duality >::KForm | ( | ConstAlias< Calculus > | calculus | ) |
Constructor.
calculus | the discrete exterior calculus to use. |
DGtal::KForm< TCalculus, order, duality >::KForm | ( | ConstAlias< Calculus > | calculus, |
const Container & | container ) |
Constructor.
calculus | the discrete exterior calculus to use. |
container | the container to copy. |
|
protected |
Constructor. Forbidden by default (protected to avoid g++ warnings).
DGtal::KForm< TCalculus, order, duality >::BOOST_STATIC_ASSERT | ( | (order >=0) | ) |
DGtal::KForm< TCalculus, order, duality >::BOOST_STATIC_ASSERT | ( | (order<=Calculus::dimensionEmbedded) | ) |
std::string DGtal::KForm< TCalculus, order, duality >::className | ( | ) | const |
Get class name string "KForm".
void DGtal::KForm< TCalculus, order, duality >::clear | ( | ) |
Clear current k-form.
|
static |
Create a kform with all values initialized to 0, except value associated with cell initialized to 1.
calculus | the discrete exterior calculus to use. |
cell | Dirac position. |
SCell DGtal::KForm< TCalculus, order, duality >::getSCell | ( | const Index & | index | ) | const |
Get signed k-cell from index.
index | the index. |
bool DGtal::KForm< TCalculus, order, duality >::isValid | ( | ) | const |
Checks the validity/consistency of the object.
Index DGtal::KForm< TCalculus, order, duality >::length | ( | ) | const |
|
static |
Create a kform with all values initialized to 1.
calculus | the discrete exterior calculus to use. |
Referenced by DGtal::ATSolver2D< TKSpace, TLinearAlgebra >::initInputScalarFieldU2(), DGtal::ATSolver2D< TKSpace, TLinearAlgebra >::initInputScalarFieldU2(), DGtal::ATSolver2D< TKSpace, TLinearAlgebra >::initInputVectorFieldU2(), DGtal::ATSolver2D< TKSpace, TLinearAlgebra >::initInputVectorFieldU2(), and DGtal::ATSolver2D< TKSpace, TLinearAlgebra >::setEpsilon().
KForm & DGtal::KForm< TCalculus, order, duality >::operator= | ( | const KForm< TCalculus, order, duality > & | other | ) |
Assignment.
other | the object to copy. |
void DGtal::KForm< TCalculus, order, duality >::selfDisplay | ( | std::ostream & | out | ) | const |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
|
static |
Create a kform with all values initialized to 0. Convenience wrapper for default constructor.
calculus | the discrete exterior calculus to use. |
Referenced by DGtal::ATSolver2D< TKSpace, TLinearAlgebra >::solveOneAlternateStep().
const Calculus* DGtal::KForm< TCalculus, order, duality >::myCalculus |
Pointer to const calculus.
Definition at line 136 of file KForm.h.
Referenced by DGtal::dec_helper::diagonal().
Container DGtal::KForm< TCalculus, order, duality >::myContainer |
Container used to actually hold the kform data.
Definition at line 131 of file KForm.h.
Referenced by DGtal::dec_helper::diagonal(), DGtal::ATSolver2D< TKSpace, TLinearAlgebra >::diffV0(), DGtal::ATSolver2D< TKSpace, TLinearAlgebra >::setUp(), DGtal::ATSolver2D< TKSpace, TLinearAlgebra >::setUp(), DGtal::ATSolver2D< TKSpace, TLinearAlgebra >::solveOneAlternateStep(), and test_linear_structure().