ExaTN
Public Member Functions | List of all members
exatn::numerics::TensorLeg Class Reference

Public Member Functions

 TensorLeg (unsigned int tensor_id, unsigned int dimensn_id, LegDirection direction=LegDirection::UNDIRECT)
 
 TensorLeg (const TensorLeg &tens_leg)=default
 
TensorLegoperator= (const TensorLeg &tens_leg)=default
 
 TensorLeg (TensorLeg &&tens_leg) noexcept=default
 
TensorLegoperator= (TensorLeg &&tens_leg) noexcept=default
 
void printIt () const
 
unsigned int getTensorId () const
 
unsigned int getDimensionId () const
 
LegDirection getDirection () const
 
void resetConnection (unsigned int tensor_id, unsigned int dimensn_id, LegDirection direction=LegDirection::UNDIRECT)
 
void resetTensorId (unsigned int tensor_id)
 
void resetDimensionId (unsigned int dimensn_id)
 
void resetDirection (LegDirection direction)
 
void reverseDirection ()
 

Constructor & Destructor Documentation

◆ TensorLeg()

exatn::numerics::TensorLeg::TensorLeg ( unsigned int  tensor_id,
unsigned int  dimensn_id,
LegDirection  direction = LegDirection::UNDIRECT 
)

Create a tensor leg by specifying the id of the connected tensor [0:*] and its corresponding dimension [0:*].

Member Function Documentation

◆ getDimensionId()

unsigned int exatn::numerics::TensorLeg::getDimensionId ( ) const

Return the connected tensor dimension id: [0..*].

◆ getDirection()

LegDirection exatn::numerics::TensorLeg::getDirection ( ) const

Return the direction of the tensor leg.

◆ getTensorId()

unsigned int exatn::numerics::TensorLeg::getTensorId ( ) const

Return the connected tensor id: [0..*].

◆ printIt()

void exatn::numerics::TensorLeg::printIt ( ) const

Print.

◆ resetConnection()

void exatn::numerics::TensorLeg::resetConnection ( unsigned int  tensor_id,
unsigned int  dimensn_id,
LegDirection  direction = LegDirection::UNDIRECT 
)

Reset the tensor leg to another connection.

◆ resetDimensionId()

void exatn::numerics::TensorLeg::resetDimensionId ( unsigned int  dimensn_id)

Reset only the tensor dimension id in the tensor leg.

◆ resetDirection()

void exatn::numerics::TensorLeg::resetDirection ( LegDirection  direction)

Reset the direction of the tensor leg.

◆ resetTensorId()

void exatn::numerics::TensorLeg::resetTensorId ( unsigned int  tensor_id)

Reset only the tensor id in the tensor leg.

◆ reverseDirection()

void exatn::numerics::TensorLeg::reverseDirection ( )

Reverse the direction of the tensor leg.


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