sisi4s
Loading...
Searching...
No Matches
sisi4s::TensorWriter Class Reference

#include <TensorWriter.hpp>

Inheritance diagram for sisi4s::TensorWriter:
Collaboration diagram for sisi4s::TensorWriter:

Public Member Functions

virtual std::string getName ()
 
 TensorWriter (std::vector< Argument > const &argumentList)
 
 ~TensorWriter ()
 
virtual void run ()
 
- Public Member Functions inherited from sisi4s::Algorithm
 Algorithm (std::vector< Argument > const &argumentList)
 
virtual ~Algorithm ()
 
virtual std::string getName ()=0
 
virtual void run ()=0
 
virtual void dryRun ()
 The dryRun estimates resource consumption, especially memory and processor time.
 
bool isArgumentGiven (std::string const &argumentName)
 
std::string getTextArgument (std::string const &argumentName)
 
std::string getTextArgument (std::string const &argumentName, std::string const &defaultValue)
 
bool getBooleanArgument (std::string const &name)
 
bool getBooleanArgument (std::string const &name, bool const &defaultValue)
 
int64_t getIntegerArgument (std::string const &argumentName)
 
int64_t getIntegerArgument (std::string const &argumentName, int64_t const defaultValue)
 
real getRealArgument (std::string const &argumentName)
 
real getRealArgument (std::string const &argumentName, real const defaultValue)
 
template<typename F = real, typename T = Tensor<F>>
T * getTensorArgument (std::string const &argumentName)
 
template<typename F = real, typename C = std::vector<F>>
C * getContainerArgument (std::string const &argumentName)
 
template<typename F = real, typename C = std::vector<F>>
void allocateContainerArgument (std::string const &argumentName, C *container)
 
std::vector< std::string > getGivenArgumentNames () const
 
void checkArgumentsOrDie (const std::vector< std::string > args) const
 
template<typename F = real, typename T = Tensor<F>>
void allocatedTensorArgument (std::string const &argumentName, T *tensor)
 Specifies the location of an output tensor data.
 
void setRealArgument (std::string const &argumentName, real const value)
 
void setIntegerArgument (std::string const &argumentName, int const value)
 
real getRealArgumentFromInteger (IntegerData *data)
 
real getRealArgumentFromTensor (TensorData< real > *data)
 
template<typename F = real, typename T = Tensor<F>>
T * getTensorArgumentFromReal (RealData *realData)
 Converts the given real data into a scalar tensor.
 
DatagetArgumentData (std::string const &argumentName)
 

Static Public Member Functions

template<typename F >
static void write (const std::string &name, const std::string fileName, Tensor< F > *A, const bool binary_p, const std::string rowIndexOrder, const std::string columnIndexOrder, const std::string delimiter)
 
static const std::type_info & check_type (Data *tensor_data)
 

Static Public Attributes

static sisi4s::AlgorithmRegistrar< TensorWriterregistrar_
 

Additional Inherited Members

- Public Attributes inherited from sisi4s::Algorithm
std::string note
 
bool fallible = false
 
std::map< std::string, std::string > arguments
 

Constructor & Destructor Documentation

◆ TensorWriter()

sisi4s::TensorWriter::TensorWriter ( std::vector< Argument > const &  argumentList)
inline

◆ ~TensorWriter()

sisi4s::TensorWriter::~TensorWriter ( )
inline

Member Function Documentation

◆ check_type()

const std::type_info & sisi4s::TensorWriter::check_type ( Data tensor_data)
static
Here is the caller graph for this function:

◆ getName()

virtual std::string sisi4s::TensorWriter::getName ( )
inlinevirtual

Implements sisi4s::Algorithm.

◆ run()

void sisi4s::TensorWriter::run ( )
virtual

Implements sisi4s::Algorithm.

Here is the call graph for this function:

◆ write()

template<typename F >
void sisi4s::TensorWriter::write ( const std::string &  name,
const std::string  fileName,
Tensor< F > *  A,
const bool  binary_p,
const std::string  rowIndexOrder,
const std::string  columnIndexOrder,
const std::string  delimiter 
)
static

Member Data Documentation

◆ registrar_

sisi4s::AlgorithmRegistrar< TensorWriter > sisi4s::TensorWriter::registrar_
static

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