DGtal  0.9.3beta
Data Structures | Public Types | Public Member Functions | Data Fields | Private Member Functions | Private Attributes | Friends
DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger > Class Template Reference

#include <DGtal/dec/DiscreteExteriorCalculus.h>

Collaboration diagram for DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >:
[legend]

Data Structures

struct  Property
 

Public Types

typedef DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger > Self
 
typedef TLinearAlgebraBackend LinearAlgebraBackend
 
typedef LinearAlgebraBackend::DenseVector::Index Index
 
typedef LinearAlgebraBackend::DenseVector::Scalar Scalar
 
typedef LinearAlgebraBackend::DenseVector DenseVector
 
typedef LinearAlgebraBackend::DenseMatrix DenseMatrix
 
typedef LinearAlgebraBackend::SparseMatrix SparseMatrix
 
typedef DGtal::KhalimskySpaceND< dimAmbient, TInteger > KSpace
 
typedef KSpace::Cell Cell
 
typedef KSpace::SCell SCell
 
typedef KSpace::Point Point
 
typedef boost::unordered_map< Cell, PropertyProperties
 
typedef std::vector< SCellSCells
 
typedef boost::array< SCells, dimEmbedded+1 > IndexedSCells
 
typedef VectorField< Self, PRIMALPrimalVectorField
 
typedef VectorField< Self, DUALDualVectorField
 
typedef KForm< Self, 0, PRIMALPrimalForm0
 
typedef KForm< Self, 1, PRIMALPrimalForm1
 
typedef KForm< Self, 2, PRIMALPrimalForm2
 
typedef KForm< Self, 3, PRIMALPrimalForm3
 
typedef KForm< Self, 0, DUALDualForm0
 
typedef KForm< Self, 1, DUALDualForm1
 
typedef KForm< Self, 2, DUALDualForm2
 
typedef KForm< Self, 3, DUALDualForm3
 
typedef LinearOperator< Self, 0, PRIMAL, 1, PRIMALPrimalDerivative0
 
typedef LinearOperator< Self, 1, PRIMAL, 2, PRIMALPrimalDerivative1
 
typedef LinearOperator< Self, 2, PRIMAL, 3, PRIMALPrimalDerivative2
 
typedef LinearOperator< Self, 0, DUAL, 1, DUALDualDerivative0
 
typedef LinearOperator< Self, 1, DUAL, 2, DUALDualDerivative1
 
typedef LinearOperator< Self, 2, DUAL, 3, DUALDualDerivative2
 
typedef LinearOperator< Self, 1, PRIMAL, 0, PRIMALPrimalAntiderivative1
 
typedef LinearOperator< Self, 2, PRIMAL, 1, PRIMALPrimalAntiderivative2
 
typedef LinearOperator< Self, 3, PRIMAL, 2, PRIMALPrimalAntiderivative3
 
typedef LinearOperator< Self, 1, DUAL, 0, DUALDualAntiderivative1
 
typedef LinearOperator< Self, 2, DUAL, 1, DUALDualAntiderivative2
 
typedef LinearOperator< Self, 3, DUAL, 2, DUALDualAntiderivative3
 
typedef LinearOperator< Self, 0, PRIMAL, dimEmbedded-0, DUALPrimalHodge0
 
typedef LinearOperator< Self, 1, PRIMAL, dimEmbedded-1, DUALPrimalHodge1
 
typedef LinearOperator< Self, 2, PRIMAL, dimEmbedded-2, DUALPrimalHodge2
 
typedef LinearOperator< Self, 3, PRIMAL, dimEmbedded-3, DUALPrimalHodge3
 
typedef LinearOperator< Self, 0, DUAL, dimEmbedded-0, PRIMALDualHodge0
 
typedef LinearOperator< Self, 1, DUAL, dimEmbedded-1, PRIMALDualHodge1
 
typedef LinearOperator< Self, 2, DUAL, dimEmbedded-2, PRIMALDualHodge2
 
typedef LinearOperator< Self, 3, DUAL, dimEmbedded-3, PRIMALDualHodge3
 
typedef LinearOperator< Self, 0, PRIMAL, 0, PRIMALPrimalIdentity0
 
typedef LinearOperator< Self, 1, PRIMAL, 1, PRIMALPrimalIdentity1
 
typedef LinearOperator< Self, 2, PRIMAL, 2, PRIMALPrimalIdentity2
 
typedef LinearOperator< Self, 3, PRIMAL, 3, PRIMALPrimalIdentity3
 
typedef LinearOperator< Self, 0, DUAL, 0, DUALDualIdentity0
 
typedef LinearOperator< Self, 1, DUAL, 1, DUALDualIdentity1
 
typedef LinearOperator< Self, 2, DUAL, 2, DUALDualIdentity2
 
typedef LinearOperator< Self, 3, DUAL, 3, DUALDualIdentity3
 
typedef Properties::const_iterator ConstIterator
 
typedef Properties::iterator Iterator
 

Public Member Functions

 BOOST_CONCEPT_ASSERT ((concepts::CInteger< TInteger >))
 
 BOOST_CONCEPT_ASSERT ((concepts::CDynamicVector< DenseVector >))
 
 BOOST_CONCEPT_ASSERT ((concepts::CDynamicMatrix< DenseMatrix >))
 
 BOOST_CONCEPT_ASSERT ((concepts::CDynamicMatrix< SparseMatrix >))
 
 BOOST_CONCEPT_ASSERT ((concepts::CLinearAlgebra< DenseVector, SparseMatrix >))
 
 BOOST_CONCEPT_ASSERT ((concepts::CLinearAlgebra< DenseVector, DenseMatrix >))
 
 BOOST_STATIC_ASSERT ((boost::is_same< Dimension, Order >::value))
 
 BOOST_STATIC_ASSERT ((dimAmbient >=dimEmbedded))
 
 BOOST_STATIC_CONSTANT (Dimension, dimensionEmbedded=dimEmbedded)
 
 BOOST_STATIC_CONSTANT (Dimension, dimensionAmbient=dimAmbient)
 
 DiscreteExteriorCalculus ()
 
template<typename TDomain >
void initKSpace (ConstAlias< TDomain > domain)
 
ConstIterator begin () const
 
ConstIterator end () const
 
Iterator begin ()
 
Iterator end ()
 
void selfDisplay (std::ostream &out) const
 
std::string className () const
 
bool insertSCell (const SCell &signed_cell)
 
bool insertSCell (const SCell &signed_cell, const Scalar &primal_size, const Scalar &dual_size)
 
bool eraseCell (const Cell &cell)
 
void updateIndexes ()
 
const PropertiesgetProperties () const
 
template<Order order, Duality duality>
const SCellsgetIndexedSCells () const
 
template<Order order, Duality duality, typename TConstIterator >
LinearOperator< Self, order, duality, order, duality > reorder (const TConstIterator &begin_range, const TConstIterator &end_range) const
 
template<Order order, Duality duality>
LinearOperator< Self, order, duality, order, duality > identity () const
 
template<Order order, Duality duality>
LinearOperator< Self, order, duality, order+1, duality > derivative () const
 
template<Order order, Duality duality>
LinearOperator< Self, order, duality, order-1, duality > antiderivative () const
 
template<Duality duality>
LinearOperator< Self, 0, duality, 0, duality > laplace () const
 
template<Order order, Duality duality>
LinearOperator< Self, order, duality, dimEmbedded-order, OppositeDuality< duality >::duality > hodge () const
 
template<Duality duality>
KForm< Self, 1, duality > flat (const VectorField< Self, duality > &vector_field) const
 
template<Duality duality>
LinearOperator< Self, 0, duality, 1, duality > flatDirectional (const Dimension &dir) const
 
template<Duality duality>
VectorField< Self, duality > sharp (const KForm< Self, 1, duality > &one_form) const
 
template<Duality duality>
LinearOperator< Self, 1, duality, 0, duality > sharpDirectional (const Dimension &dir) const
 
SCell getSCell (const Order &order, const Duality &duality, const Index &index) const
 
bool isCellFlipped (const Cell &cell) const
 
bool containsCell (const Cell &cell) const
 
Index getCellIndex (const Cell &cell) const
 
Index kFormLength (const Order &order, const Duality &duality) const
 
Order actualOrder (const Order &order, const Duality &duality) const
 
Scalar hodgeSign (const Cell &cell, const Duality &duality) const
 
Dimension edgeDirection (const Cell &cell, const Duality &duality) const
 
void resetSizes ()
 
bool isValid () const
 

Data Fields

KSpace myKSpace
 

Private Member Functions

void updateCachedOperators ()
 
template<Duality duality>
void updateFlatOperator ()
 
template<Duality duality>
void updateSharpOperator ()
 

Private Attributes

Properties myCellProperties
 
IndexedSCells myIndexSignedCells
 
boost::array< boost::array< SparseMatrix, dimAmbient >, 2 > myFlatOperatorMatrixes
 
boost::array< boost::array< SparseMatrix, dimAmbient >, 2 > mySharpOperatorMatrixes
 
bool myCachedOperatorsNeedUpdate
 
bool myIndexesNeedUpdate
 

Friends

class DiscreteExteriorCalculusFactory< TLinearAlgebraBackend, TInteger >
 

Detailed Description

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
class DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >

Aim: DiscreteExteriorCalculus represents a calculus in the dec package. This is the main structure in the dec package. This is used to describe the space on which the dec is build and to compute various operators. Once operators or kforms are created, this structure should not be modified.

Description of template class 'DiscreteExteriorCalculus'

Template Parameters
dimEmbeddeddimension of emmbedded manifold.
dimAmbientdimension of ambient manifold.
TLinearAlgebraBackendlinear algebra backend used (i.e. EigenSparseLinearAlgebraBackend).
TIntegerinteger type forwarded to khalimsky space.
Examples:
dec/exampleDECSurface.cpp, dec/exampleDiscreteExteriorCalculusChladni.cpp, dec/exampleDiscreteExteriorCalculusSolve.cpp, dec/exampleDiscreteExteriorCalculusUsage.cpp, and dec/examplePropagation.cpp.

Definition at line 96 of file DiscreteExteriorCalculus.h.

Member Typedef Documentation

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef KSpace::Cell DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::Cell

Definition at line 131 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef Properties::const_iterator DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::ConstIterator

Const iterator typedef.

Definition at line 252 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef LinearAlgebraBackend::DenseMatrix DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::DenseMatrix

Definition at line 109 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef LinearAlgebraBackend::DenseVector DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::DenseVector

Definition at line 108 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef LinearOperator<Self, 1, DUAL, 0, DUAL> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::DualAntiderivative1

Definition at line 204 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef LinearOperator<Self, 2, DUAL, 1, DUAL> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::DualAntiderivative2

Definition at line 205 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef LinearOperator<Self, 3, DUAL, 2, DUAL> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::DualAntiderivative3

Definition at line 206 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef LinearOperator<Self, 0, DUAL, 1, DUAL> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::DualDerivative0

Definition at line 194 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef LinearOperator<Self, 1, DUAL, 2, DUAL> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::DualDerivative1

Definition at line 195 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef LinearOperator<Self, 2, DUAL, 3, DUAL> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::DualDerivative2

Definition at line 196 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef KForm<Self, 0, DUAL> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::DualForm0

Definition at line 183 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef KForm<Self, 1, DUAL> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::DualForm1

Definition at line 184 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef KForm<Self, 2, DUAL> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::DualForm2

Definition at line 185 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef KForm<Self, 3, DUAL> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::DualForm3

Definition at line 186 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef LinearOperator<Self, 0, DUAL, dimEmbedded-0, PRIMAL> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::DualHodge0

Definition at line 215 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef LinearOperator<Self, 1, DUAL, dimEmbedded-1, PRIMAL> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::DualHodge1

Definition at line 216 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef LinearOperator<Self, 2, DUAL, dimEmbedded-2, PRIMAL> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::DualHodge2

Definition at line 217 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef LinearOperator<Self, 3, DUAL, dimEmbedded-3, PRIMAL> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::DualHodge3

Definition at line 218 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef LinearOperator<Self, 0, DUAL, 0, DUAL> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::DualIdentity0

Definition at line 227 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef LinearOperator<Self, 1, DUAL, 1, DUAL> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::DualIdentity1

Definition at line 228 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef LinearOperator<Self, 2, DUAL, 2, DUAL> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::DualIdentity2

Definition at line 229 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef LinearOperator<Self, 3, DUAL, 3, DUAL> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::DualIdentity3

Definition at line 230 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef VectorField<Self, DUAL> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::DualVectorField

Definition at line 174 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef LinearAlgebraBackend::DenseVector::Index DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::Index

Definition at line 106 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef boost::array<SCells, dimEmbedded+1> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::IndexedSCells

Definition at line 168 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef Properties::iterator DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::Iterator

Iterator typedef.

Definition at line 267 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef DGtal::KhalimskySpaceND<dimAmbient, TInteger> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::KSpace

Definition at line 130 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef TLinearAlgebraBackend DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::LinearAlgebraBackend

Definition at line 105 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef KSpace::Point DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::Point

Definition at line 133 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef LinearOperator<Self, 1, PRIMAL, 0, PRIMAL> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::PrimalAntiderivative1

Antiderivative linear operator typedefs.

Definition at line 201 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef LinearOperator<Self, 2, PRIMAL, 1, PRIMAL> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::PrimalAntiderivative2

Definition at line 202 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef LinearOperator<Self, 3, PRIMAL, 2, PRIMAL> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::PrimalAntiderivative3

Definition at line 203 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef LinearOperator<Self, 0, PRIMAL, 1, PRIMAL> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::PrimalDerivative0

Derivative linear operator typedefs.

Definition at line 191 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef LinearOperator<Self, 1, PRIMAL, 2, PRIMAL> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::PrimalDerivative1

Definition at line 192 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef LinearOperator<Self, 2, PRIMAL, 3, PRIMAL> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::PrimalDerivative2

Definition at line 193 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef KForm<Self, 0, PRIMAL> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::PrimalForm0

KForms typedefs.

Definition at line 179 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef KForm<Self, 1, PRIMAL> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::PrimalForm1

Definition at line 180 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef KForm<Self, 2, PRIMAL> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::PrimalForm2

Definition at line 181 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef KForm<Self, 3, PRIMAL> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::PrimalForm3

Definition at line 182 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef LinearOperator<Self, 0, PRIMAL, dimEmbedded-0, DUAL> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::PrimalHodge0

Hodge duality linear operator typedefs.

Definition at line 211 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef LinearOperator<Self, 1, PRIMAL, dimEmbedded-1, DUAL> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::PrimalHodge1

Definition at line 212 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef LinearOperator<Self, 2, PRIMAL, dimEmbedded-2, DUAL> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::PrimalHodge2

Definition at line 213 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef LinearOperator<Self, 3, PRIMAL, dimEmbedded-3, DUAL> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::PrimalHodge3

Definition at line 214 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef LinearOperator<Self, 0, PRIMAL, 0, PRIMAL> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::PrimalIdentity0

Identity linear operator typedefs.

Definition at line 223 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef LinearOperator<Self, 1, PRIMAL, 1, PRIMAL> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::PrimalIdentity1

Definition at line 224 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef LinearOperator<Self, 2, PRIMAL, 2, PRIMAL> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::PrimalIdentity2

Definition at line 225 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef LinearOperator<Self, 3, PRIMAL, 3, PRIMAL> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::PrimalIdentity3

Definition at line 226 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef VectorField<Self, PRIMAL> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::PrimalVectorField

Vector field typedefs.

Definition at line 173 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef boost::unordered_map<Cell, Property> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::Properties

Cells properties map typedef.

Definition at line 162 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef LinearAlgebraBackend::DenseVector::Scalar DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::Scalar

Definition at line 107 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef KSpace::SCell DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::SCell

Definition at line 132 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef std::vector<SCell> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::SCells

Indices to cells map typedefs.

Definition at line 167 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef DiscreteExteriorCalculus<dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::Self

Definition at line 103 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
typedef LinearAlgebraBackend::SparseMatrix DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::SparseMatrix

Definition at line 110 of file DiscreteExteriorCalculus.h.

Constructor & Destructor Documentation

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::DiscreteExteriorCalculus ( )

Constructor. Initialize empty discrete exterior calculus.

Member Function Documentation

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
Order DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::actualOrder ( const Order order,
const Duality duality 
) const

Return actual order of k-forms in the dec package representation. Used internally mostly.

Parameters
orderorder.
dualityduality.
Returns
order if primal, dimEmbedded-order if dual.
template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
template<Order order, Duality duality>
LinearOperator<Self, order, duality, order-1, duality> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::antiderivative ( ) const

Antiderivative operator from order-forms to _(order-1)_-forms.

Template Parameters
orderorder of input k-form.
dualityduality of input k-form.
Returns
antiderivative operator.
template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
ConstIterator DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::begin ( ) const

Begin const iterator.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
Iterator DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::begin ( )

Begin iterator.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::BOOST_CONCEPT_ASSERT ( (concepts::CInteger< TInteger >)  )
template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::BOOST_CONCEPT_ASSERT ( (concepts::CDynamicVector< DenseVector >)  )
template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::BOOST_CONCEPT_ASSERT ( (concepts::CDynamicMatrix< DenseMatrix >)  )
template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::BOOST_CONCEPT_ASSERT ( (concepts::CDynamicMatrix< SparseMatrix >)  )
template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::BOOST_CONCEPT_ASSERT ( (concepts::CLinearAlgebra< DenseVector, SparseMatrix >)  )
template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::BOOST_CONCEPT_ASSERT ( (concepts::CLinearAlgebra< DenseVector, DenseMatrix >)  )
template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::BOOST_STATIC_ASSERT ( (boost::is_same< Dimension, Order >::value)  )
template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::BOOST_STATIC_ASSERT ( (dimAmbient >=dimEmbedded)  )

Static dimensions.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::BOOST_STATIC_CONSTANT ( Dimension  ,
dimensionEmbedded  = dimEmbedded 
)
template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::BOOST_STATIC_CONSTANT ( Dimension  ,
dimensionAmbient  = dimAmbient 
)
template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
std::string DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::className ( ) const

Get class name string "Calculus".

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
bool DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::containsCell ( const Cell cell) const

Check is structure contains cell.

Parameters
cellthe tested cell.
template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
template<Order order, Duality duality>
LinearOperator<Self, order, duality, order+1, duality> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::derivative ( ) const

Derivative operator from order-forms to _(order+1)_-forms.

Template Parameters
orderorder of input k-form.
dualityduality of input k-form.
Returns
derivative operator.
template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
Dimension DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::edgeDirection ( const Cell cell,
const Duality duality 
) const

Return edge direction relative to primal.

Parameters
cellKhalimsky cell.
dualityduality.
template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
ConstIterator DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::end ( ) const

End const iterator.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
Iterator DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::end ( )

End iterator.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
bool DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::eraseCell ( const Cell cell)

Manually erase cell from calculus. Should call updateIndexes() when structure modification is finished.

Parameters
cellthe cell to be removed.
Returns
true if cell was removed, false if cell was not in calculus.
template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
template<Duality duality>
KForm<Self, 1, duality> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::flat ( const VectorField< Self, duality > &  vector_field) const

Construct 1-form from vector field.

Template Parameters
dualityinput vector field and output 1-form duality.
Parameters
vector_fieldvector field.
Returns
1-form.
template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
template<Duality duality>
LinearOperator<Self, 0, duality, 1, duality> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::flatDirectional ( const Dimension dir) const

Get directional flat operator that transforms 0-form containing vector field coordinates along direction dir into 1-form. Invert of sharp(1-form).coordAlongDirection(dir).

Template Parameters
dualityinput 0-form and output 1-form duality.
Parameters
dirdirection of projection.
Returns
linear operator.
template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
Index DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::getCellIndex ( const Cell cell) const

Get k-form index from cell.

Parameters
cellKhalimsky cell.
Returns
associated k-form index.
template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
template<Order order, Duality duality>
const SCells& DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::getIndexedSCells ( ) const

Get all signed cells with specific order and duality in index order.

Template Parameters
orderorder of signed cells.
dualityduality of signed cells.
Returns
index ordered signed cells.
template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
const Properties& DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::getProperties ( ) const

Get all cells properties.

Returns
associative container from Cell to Property.
template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
SCell DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::getSCell ( const Order order,
const Duality duality,
const Index index 
) const

Get signed cell from k-form index.

Parameters
orderk-form order.
dualityk-form duality.
indexindex valid on a k-form container.
Returns
associated Khalimsky cell.
template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
template<Order order, Duality duality>
LinearOperator<Self, order, duality, dimEmbedded-order, OppositeDuality<duality>::duality> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::hodge ( ) const

Hodge operator from duality order-form to opposite duality _(dimEmbedded-order)_-forms.

Template Parameters
orderorder of input k-form.
dualityduality of input k-form.
Returns
hodge operator.
template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
Scalar DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::hodgeSign ( const Cell cell,
const Duality duality 
) const

Return sign of hodge operator. Used internally mostly.

Parameters
cellKhalimsky cell.
dualityduality.
template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
template<Order order, Duality duality>
LinearOperator<Self, order, duality, order, duality> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::identity ( ) const

Identity operator from order-forms to order-forms.

Template Parameters
orderinput and output order of identity operator.
dualityinput and output duality of identity operator.
Returns
identity operator.
template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
template<typename TDomain >
void DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::initKSpace ( ConstAlias< TDomain >  domain)

Init Khalimsky space boundaries.

Template Parameters
TDomaintype of digital domain.
Parameters
domaindomain used to initialize Khalimsky space.
Examples:
dec/exampleDiscreteExteriorCalculusChladni.cpp, and dec/exampleDiscreteExteriorCalculusSolve.cpp.
template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
bool DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::insertSCell ( const SCell signed_cell)

Manually insert signed cell into calculus with unit primal and dual size. Should call updateIndexes() when structure modification is finished. Be sure to insert all adjacent lower order primal cells.

Parameters
signed_cellthe signed cell to be inserted.
Returns
true if cell was not already inserted, false if only cell was already inserted (cell properties are always updated).
template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
bool DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::insertSCell ( const SCell signed_cell,
const Scalar primal_size,
const Scalar dual_size 
)

Manually insert signed cell into calculus. Should call updateIndexes() when structure modification is finished. Be sure to insert all adjacent lower order primal cells.

Parameters
signed_cellthe signed cell to be inserted.
primal_sizesize (length, area, volume, ...) of primal cell. Primal size of 0-cell should be equal to 1.
dual_sizesize (length, area, volume, ...) of dual cell. Dual size of n-cell should be equal to 1.
Returns
true if cell was not already inserted, false if only cell was already inserted (cell properties are always updated).
template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
bool DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::isCellFlipped ( const Cell cell) const

Check if cell is flipped in display.

Parameters
cellthe tested cell.
template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
bool DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::isValid ( ) const

Checks the validity/consistency of the object.

Returns
'true' if the object is valid, 'false' otherwise.
template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
Index DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::kFormLength ( const Order order,
const Duality duality 
) const

Return number of elements in discrete k-form.

Parameters
orderk-form order.
dualityk-form duality.
template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
template<Duality duality>
LinearOperator<Self, 0, duality, 0, duality> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::laplace ( ) const

Laplace operator from duality 0-forms to duality 0-forms.

Returns
Laplace operator.
template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
template<Order order, Duality duality, typename TConstIterator >
LinearOperator<Self, order, duality, order, duality> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::reorder ( const TConstIterator &  begin_range,
const TConstIterator &  end_range 
) const

Reorder operator from order-forms to order-forms. Reorder indexes from internal index order to iterator range traversal induced order.

Template Parameters
orderinput and output order of reorder operator.
dualityinput and output duality of reorder operator.
TConstIteratorconst iterator to signed cell type.
Returns
identity operator.
template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
void DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::resetSizes ( )

Reset all primal to dual cell sizes to 1.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
void DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::selfDisplay ( std::ostream &  out) const

Writes/Displays the object on an output stream.

Parameters
outthe output stream where the object is written.
template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
template<Duality duality>
VectorField<Self, duality> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::sharp ( const KForm< Self, 1, duality > &  one_form) const

Construct vector field from 1-form.

Template Parameters
dualityinput 1-form and output vector field duality.
Parameters
one_form1-form.
Returns
vector field.
template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
template<Duality duality>
LinearOperator<Self, 1, duality, 0, duality> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::sharpDirectional ( const Dimension dir) const

Get directional sharp operator that transforms 1-form into 0-form containing vector field coordinates along direction dir. Equivalent to sharp(1-form).coordAlongDirection(dir).

Template Parameters
dualityinput 1-form and output 0-form duality.
Parameters
dirdirection of projection.
Returns
linear operator.
template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
void DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::updateCachedOperators ( )
private

Update sharp and flat operators cache.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
template<Duality duality>
void DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::updateFlatOperator ( )
private

Update flat operator cache.

Template Parameters
dualityduality of updated flat operator.
template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
void DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::updateIndexes ( )

Update indexes for all cells. Cell insertion order == index may not be preserved.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
template<Duality duality>
void DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::updateSharpOperator ( )
private

Update sharp operator cache.

Template Parameters
dualityduality of updated sharp operator.

Friends And Related Function Documentation

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
friend class DiscreteExteriorCalculusFactory< TLinearAlgebraBackend, TInteger >
friend

Definition at line 101 of file DiscreteExteriorCalculus.h.

Field Documentation

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
bool DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::myCachedOperatorsNeedUpdate
private

Cached flat and sharp operators generation flag.

Definition at line 562 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
Properties DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::myCellProperties
private

Cells properties.

Definition at line 541 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
boost::array<boost::array<SparseMatrix, dimAmbient>, 2> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::myFlatOperatorMatrixes
private

Cached flat operator matrix.

Definition at line 552 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
bool DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::myIndexesNeedUpdate
private

Indexes generation flag.

Definition at line 567 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
IndexedSCells DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::myIndexSignedCells
private

Cells indexed by their order. Usefull for finding cell from index and order.

Definition at line 547 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
KSpace DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::myKSpace

Associated Khalimsky space.

Definition at line 285 of file DiscreteExteriorCalculus.h.

template<Dimension dimEmbedded, Dimension dimAmbient, typename TLinearAlgebraBackend, typename TInteger = DGtal::int32_t>
boost::array<boost::array<SparseMatrix, dimAmbient>, 2> DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger >::mySharpOperatorMatrixes
private

Cached sharp operator matrix.

Definition at line 557 of file DiscreteExteriorCalculus.h.


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