#include <minskyTensorOps.h>
Definition at line 125 of file minskyTensorOps.h.
◆ TensorVarVal()
minsky::TensorVarVal::TensorVarVal |
( |
const std::shared_ptr< VariableValue > & |
vv, |
|
|
const shared_ptr< EvalCommon > & |
ev |
|
) |
| |
|
inline |
Definition at line 127 of file minskyTensorOps.h.
128 TensorVarValBase<VariableValue,ITensorVal>(vv,
ev) {}
shared_ptr< EvalCommon > ev
reference to EvalOpVector owning this value, to extract flowVar and stockVarinfo
◆ hypercube() [1/3]
const Hypercube& minsky::TensorVarVal::hypercube |
( |
const Hypercube & |
hc | ) |
|
|
inlineoverride |
◆ hypercube() [2/3]
const Hypercube& minsky::TensorVarVal::hypercube |
( |
Hypercube && |
hc | ) |
|
|
inlineoverride |
Definition at line 133 of file minskyTensorOps.h.
133 {
return value->hypercube(std::move(hc));}
std::shared_ptr< VariableValue > value
◆ hypercube() [3/3]
const Hypercube& minsky::TensorVarVal::hypercube |
( |
| ) |
const |
|
inlineoverride |
◆ index() [1/2]
const Index& minsky::TensorVarVal::index |
( |
Index && |
x | ) |
|
|
inlineoverride |
◆ index() [2/2]
const Index& minsky::TensorVarVal::index |
( |
| ) |
const |
|
inlineoverride |
◆ operator=()
Definition at line 144 of file minskyTensorOps.h.
References civita::ITensor::hypercube(), and civita::ITensor::index().
147 for (
size_t i=0; i<
size(); ++i)
150 ev->update(
ev->flowVars(),
ev->fvSize(),
ev->stockVars());
shared_ptr< EvalCommon > ev
reference to EvalOpVector owning this value, to extract flowVar and stockVarinfo
virtual const Hypercube & hypercube() const
information describing the axes, types and labels of this tensor
virtual const Index & index() const
the index vector - assumed to be ordered and unique
const Index & index() const override
const Hypercube & hypercube() const override
std::size_t size() const override
◆ operator[]()
double& minsky::TensorVarVal::operator[] |
( |
std::size_t |
i | ) |
|
|
inlineoverride |
Definition at line 136 of file minskyTensorOps.h.
References minsky::ValueVector::flowVars.
137 assert(
value->isFlowVar());
141 ||
value->idx()+i<
ev->fvSize());
142 return ev->flowVars()[
value->idx()+i];
shared_ptr< EvalCommon > ev
reference to EvalOpVector owning this value, to extract flowVar and stockVarinfo
std::shared_ptr< VariableValue > value
static std::vector< double, CIVITA_ALLOCATOR< double > > flowVars
variables defined as a simple function of the stock variables, also known as lhs variables. These variables appear in the body of the Godley table
The documentation for this struct was generated from the following file: