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

Public Member Functions

 TensorOpFactory (const TensorOpFactory &)=delete
 
TensorOpFactoryoperator= (const TensorOpFactory &)=delete
 
 TensorOpFactory (TensorOpFactory &&) noexcept=default
 
TensorOpFactoryoperator= (TensorOpFactory &&) noexcept=default
 
void registerTensorOp (TensorOpCode opcode, createTensorOpFn creator)
 
std::unique_ptr< TensorOperationcreateTensorOp (TensorOpCode opcode)
 
std::shared_ptr< TensorOperationcreateTensorOpShared (TensorOpCode opcode)
 

Static Public Member Functions

static TensorOpFactoryget ()
 

Member Function Documentation

◆ createTensorOp()

std::unique_ptr< TensorOperation > exatn::numerics::TensorOpFactory::createTensorOp ( TensorOpCode  opcode)

Creates a new instance of a desired subtype.

◆ createTensorOpShared()

std::shared_ptr< TensorOperation > exatn::numerics::TensorOpFactory::createTensorOpShared ( TensorOpCode  opcode)

Creates a new instance of a desired subtype.

◆ get()

TensorOpFactory * exatn::numerics::TensorOpFactory::get ( )
static

Returns a pointer to the TensorOpFactory singleton.

◆ registerTensorOp()

void exatn::numerics::TensorOpFactory::registerTensorOp ( TensorOpCode  opcode,
createTensorOpFn  creator 
)

Registers a new tensor operation subtype to produce instances of.


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