|
Minsky: 3.17.0
|
If a rank 1 argument, sort by the value of the argument. More...
#include <tensorOp.h>


Public Member Functions | |
| SortByValue (ravel::HandleSort::Order order) | |
| void | setArgument (const TensorPtr &a, const ITensor::Args &args={"", 0}) override |
| void | computeTensor () const override |
| computeTensor updates the above two mutable fields, but is logically const More... | |
| Timestamp | timestamp () const override |
| timestamp indicating how old the dependendent data might be. Used in CachedTensorOp to determine when to invalidate the cache More... | |
| const Hypercube & | hypercube () const override |
| information describing the axes, types and labels of this tensor More... | |
| std::size_t | size () const override |
| return number of elements in tensor - maybe less than hypercube.numElements if sparse More... | |
Public Member Functions inherited from civita::CachedTensorOp | |
| const Index & | index () const override |
| the index vector - assumed to be ordered and unique More... | |
| double | operator[] (std::size_t i) const override |
| return or compute data at a location More... | |
| const Hypercube & | hypercube (const Hypercube &hc) override |
| const Hypercube & | hypercube (Hypercube &&hc) override |
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 | |
| ITensor & | operator= (const ITensor &)=default |
| ITensor & | operator= (ITensor &&)=default |
| virtual | ~ITensor () |
| std::size_t | rank () const |
| std::vector< unsigned > | shape () const |
| void | imposeDimensions (const Dimensions &dimensions) |
| impose dimensions according to dimension map dimensions 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 | 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}) |
Private Attributes | |
| TensorPtr | arg |
| ravel::HandleSort::Order | order |
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::CachedTensorOp | |
| TensorVal | cachedResult |
| Timestamp | m_timestamp |
Protected Attributes inherited from civita::ITensor | |
| Hypercube | m_hypercube |
| Index | m_index |
If a rank 1 argument, sort by the value of the argument.
Definition at line 271 of file tensorOp.h.
|
inline |
Definition at line 276 of file tensorOp.h.
|
overridevirtual |
computeTensor updates the above two mutable fields, but is logically const
Implements civita::CachedTensorOp.
Definition at line 464 of file tensorOp.cc.
Referenced by hypercube(), and size().

|
inlineoverridevirtual |
information describing the axes, types and labels of this tensor
Reimplemented from civita::CachedTensorOp.
Definition at line 286 of file tensorOp.h.
References civita::CachedTensorOp::cachedResult, computeTensor(), civita::CachedTensorOp::m_timestamp, and timestamp().

|
inlineoverridevirtual |
|
inlineoverridevirtual |
return number of elements in tensor - maybe less than hypercube.numElements if sparse
Reimplemented from civita::CachedTensorOp.
Definition at line 290 of file tensorOp.h.
References civita::CachedTensorOp::cachedResult, computeTensor(), civita::CachedTensorOp::m_timestamp, and timestamp().

|
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 285 of file tensorOp.h.
References arg.
Referenced by hypercube(), and size().

|
private |
Definition at line 273 of file tensorOp.h.
Referenced by timestamp().
|
private |
Definition at line 274 of file tensorOp.h.