1#ifndef DRY_TENSOR_DEFINED
2#define DRY_TENSOR_DEFINED
35template <
typename F =
double>
54 for (
int i(0); i < order_; ++i) {
73 int64_t elementsCount(1);
74 for (
int i(0); i <
order; ++i) { elementsCount *=
lens[i]; }
95template <
typename F =
double>
104template <
typename F =
double>
111template <
typename F =
double>
Definition DryTensor.hpp:96
DryMatrix(int rowCount, int columnCount, int sym, SourceLocation const &location=SourceLocation())
Definition DryTensor.hpp:11
std::pair< int64_t, SourceLocation > ExtendingResource
Definition DryTensor.hpp:13
static void free(int64_t size)
Definition DryTensor.hpp:30
static int64_t currentTotalSize
Definition DryTensor.hpp:31
static void allocate(int64_t size, SourceLocation const &location)
Definition DryTensor.hpp:15
static std::vector< ExtendingResource > extendingResources
Definition DryTensor.hpp:32
static int64_t maxTotalSize
Definition DryTensor.hpp:31
Definition DryTensor.hpp:112
Definition DryTensor.hpp:36
virtual void use()
Definition DryTensor.hpp:70
int64_t getElementsCount() const
Definition DryTensor.hpp:72
SourceLocation location
Definition DryTensor.hpp:83
DryTensor(int order_, int const *lens_, int const *syms_, SourceLocation const &location_=SourceLocation())
Creates a dry tensor for resource consumption estimation without actually allocating its data....
Definition DryTensor.hpp:46
std::vector< int > syms
Definition DryTensor.hpp:82
void allocate()
Definition DryTensor.hpp:87
DryTensor(DryTensor const &A, SourceLocation const &location_=SourceLocation())
Definition DryTensor.hpp:60
std::string const & get_name() const
Definition DryTensor.hpp:79
std::vector< int > lens
Definition DryTensor.hpp:82
void set_name(std::string const &name_)
Definition DryTensor.hpp:78
int order
Definition DryTensor.hpp:81
void free()
Definition DryTensor.hpp:91
virtual ~DryTensor()
Definition DryTensor.hpp:69
int64_t size
Definition DryTensor.hpp:92
std::string name
Definition DryTensor.hpp:84
Definition DryTensor.hpp:105
Definition SourceLocation.hpp:12
Definition Algorithm.hpp:10