Minsky
minsky::TimeOp Struct Reference
Inheritance diagram for minsky::TimeOp:
Inheritance graph
Collaboration diagram for minsky::TimeOp:
Collaboration graph

Public Member Functions

size_t size () const override
 return number of elements in tensor - maybe less than hypercube.numElements if sparse More...
 
double operator[] (size_t) const override
 
Timestamp timestamp () const override
 timestamp indicating how old the dependendent data might be. Used in CachedTensorOp to determine when to invalidate the cache More...
 
double dFlow (std::size_t, std::size_t) const override
 partial derivative of tensor component ti wrt flow variable fi More...
 
double dStock (std::size_t, std::size_t) const override
 partial derivative of tensor component ti wrt stock variable si More...
 
- Public Member Functions inherited from civita::ITensor
 CLASSDESC_ACCESS (ITensor)
 
 ITensor ()
 
 ITensor (const Hypercube &hc)
 
 ITensor (Hypercube &&hc)
 
 ITensor (const std::vector< unsigned > &dims)
 
 ITensor (const ITensor &)=default
 
 ITensor (ITensor &&)=default
 
ITensoroperator= (const ITensor &)=default
 
ITensoroperator= (ITensor &&)=default
 
virtual ~ITensor ()
 
virtual const Hypercube & hypercube () const
 information describing the axes, types and labels of this tensor More...
 
virtual const Hypercube & hypercube (const Hypercube &hc)
 
virtual const Hypercube & hypercube (Hypercube &&hc)
 
std::size_t rank () const
 
std::vector< unsigned > shape () const
 
void imposeDimensions (const Dimensions &dimensions)
 impose dimensions according to dimension map dimensions More...
 
virtual const Index & index () const
 the index vector - assumed to be ordered and unique More...
 
virtual double operator[] (std::size_t) const =0
 return or compute data at a location More...
 
double atHCIndex (std::size_t hcIdx) const
 returns the data value at hypercube index hcIdx, or NaN if More...
 
template<class T >
std::size_t hcIndex (const std::initializer_list< T > &indices) const
 
template<class T >
double operator() (const std::initializer_list< T > &indices) const
 
virtual void setArgument (const TensorPtr &, const ITensor::Args &args={"", 0})
 
virtual void setArguments (const TensorPtr &, const TensorPtr &, const ITensor::Args &args={})
 
virtual void setArguments (const std::vector< TensorPtr > &a, const ITensor::Args &args={"", 0})
 
virtual void setArguments (const std::vector< TensorPtr > &a1, const std::vector< TensorPtr > &a2, const ITensor::Args &args={"", 0})
 

Additional Inherited Members

- Public Types inherited from civita::ITensor
using Timestamp = std::chrono::time_point< std::chrono::high_resolution_clock >
 
- Protected Member Functions inherited from civita::ITensor
void notImpl () const
 
- Protected Attributes inherited from civita::ITensor
Hypercube m_hypercube
 
Index m_index
 

Detailed Description

Definition at line 49 of file minskyTensorOps.cc.

Member Function Documentation

◆ dFlow()

double minsky::TimeOp::dFlow ( std::size_t  ti,
std::size_t  fi 
) const
inlineoverridevirtual

partial derivative of tensor component ti wrt flow variable fi

Implements minsky::DerivativeMixin.

Definition at line 54 of file minskyTensorOps.cc.

54 {return 0;}

◆ dStock()

double minsky::TimeOp::dStock ( std::size_t  ti,
std::size_t  si 
) const
inlineoverridevirtual

partial derivative of tensor component ti wrt stock variable si

Implements minsky::DerivativeMixin.

Definition at line 55 of file minskyTensorOps.cc.

55 {return 0;}

◆ operator[]()

double minsky::TimeOp::operator[] ( size_t  ) const
inlineoverride

Definition at line 52 of file minskyTensorOps.cc.

52 {return EvalOpBase::t;}
static double t
Definition: evalOp.h:53

◆ size()

size_t minsky::TimeOp::size ( ) const
inlineoverridevirtual

return number of elements in tensor - maybe less than hypercube.numElements if sparse

Reimplemented from civita::ITensor.

Definition at line 51 of file minskyTensorOps.cc.

51 {return 1;}

◆ timestamp()

Timestamp minsky::TimeOp::timestamp ( ) const
inlineoverridevirtual

timestamp indicating how old the dependendent data might be. Used in CachedTensorOp to determine when to invalidate the cache

Implements civita::ITensor.

Definition at line 53 of file minskyTensorOps.cc.

53 {return {};}

The documentation for this struct was generated from the following file: