Minsky
|
As it says on the tin, this is a factory for creating a TensorOp which can compute the result of op applied to its arguments and so on until all the argument terminate in variables. More...
#include <minskyTensorOps.h>
Public Member Functions | |
TensorOpFactory () | |
std::shared_ptr< ITensor > | create (const ItemPtr &, const TensorsFromPort &tp={}) |
create a tensor representation of the expression rooted at op. If expression doesn't contain any references variables, then the tp parameter may be omitted. More... | |
Private Types | |
enum | Type |
As it says on the tin, this is a factory for creating a TensorOp which can compute the result of op applied to its arguments and so on until all the argument terminate in variables.
Definition at line 72 of file minskyTensorOps.h.
|
private |
=>["constant","time","integrate","differentiate","data","ravel","add","subtract","multiply","divide","log","pow","lt","le","eq","min","max","and_","or_","copy","sqrt","exp","ln","sin","cos","tan","asin","acos","atan","sinh","cosh","tanh","abs","floor","frac","not_","sum","product","infimum","supremum","any","all","infIndex","supIndex","runningSum","runningProduct","difference","innerProduct","outerProduct","index","gather","numOps"]
/
Definition at line 29 of file operationType.h.
minsky::TensorOpFactory::TensorOpFactory | ( | ) |
Definition at line 328 of file minskyTensorOps.cc.
std::shared_ptr< ITensor > minsky::TensorOpFactory::create | ( | const ItemPtr & | it, |
const TensorsFromPort & | tp = {} |
||
) |
create a tensor representation of the expression rooted at op. If expression doesn't contain any references variables, then the tp parameter may be omitted.
Definition at line 1545 of file minskyTensorOps.cc.
References minsky::cminsky(), civita::createRavelChain(), minsky::Minsky::displayErrorItem(), minsky::TensorsFromPort::ev, minsky::op, minsky::TensorsFromPort::tensorsFromPort(), and minsky::TensorsFromPort::tensorsFromPorts().
Referenced by MathDAG::anonymous_namespace{equations.cc}::addTensorOp(), minsky::Ravel::exportAsCSV(), minsky::TensorEval::TensorEval(), and minsky::TensorsFromPort::tensorsFromPort().