Minsky: 3.17.0
minsky::OperationType Struct Reference

#include <operationType.h>

Inheritance diagram for minsky::OperationType:
Inheritance graph
Collaboration diagram for minsky::OperationType:
Collaboration graph

Public Types

enum  Type {
  constant, time, integrate, differentiate,
  data, ravel, euler, pi,
  zero, one, inf, percent,
  add, subtract, multiply, divide,
  min, max, and_, or_,
  log, pow, polygamma, lt,
  le, eq, userFunction, copy,
  sqrt, exp, ln, sin,
  cos, tan, asin, acos,
  atan, sinh, cosh, tanh,
  abs, floor, frac, not_,
  Gamma, fact, sum, product,
  infimum, supremum, any, all,
  infIndex, supIndex, runningSum, runningProduct,
  difference, differencePlus, innerProduct, outerProduct,
  index, gather, meld, merge,
  slice, size, shape, mean,
  median, stdDev, moment, histogram,
  covariance, correlation, linearRegression, numOps
}
 
enum  Group {
  general, constop, binop, function,
  reduction, scan, tensor, statistics
}
 

Static Public Member Functions

static std::string typeName (int type)
 return the symbolic name of type More...
 
static Group classify (Type t)
 

Detailed Description

Definition at line 27 of file operationType.h.

Member Enumeration Documentation

◆ Group

◆ Type

=>["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"]

and variable types with

/

Enumerator
constant 
time 
integrate 
differentiate 
data 
ravel 
euler 
pi 
zero 
one 
inf 
percent 
add 
subtract 
multiply 
divide 
min 
max 
and_ 
or_ 
log 
pow 
polygamma 
lt 
le 
eq 
userFunction 
copy 
sqrt 
exp 
ln 
sin 
cos 
tan 
asin 
acos 
atan 
sinh 
cosh 
tanh 
abs 
floor 
frac 
not_ 
Gamma 
fact 
sum 
product 
infimum 
supremum 
any 
all 
infIndex 
supIndex 
runningSum 
runningProduct 
difference 
differencePlus 
innerProduct 
outerProduct 
index 
gather 
meld 
merge 
slice 
size 
shape 
mean 
median 
stdDev 
moment 
histogram 
covariance 
correlation 
linearRegression 
numOps 

Definition at line 29 of file operationType.h.

29  {constant, // deprecated - left to support legacy schemas
30  time, // zero input port ops
31  integrate,
32  differentiate, // with respect to time
33  data, // an interpolated data item
34  ravel, // Ravelâ„¢
35  euler, pi, zero, one, inf, percent,// fundamental constants
36  // multiwire binary ops
38  // underscores to avoid C++ keywords. Can be filtered at UI
39  and_, or_,
40  // single wire binops
41  log, pow, polygamma,
42  lt, le, eq,
44  // functions
45  copy, sqrt, exp, ln, sin, cos, tan, asin, acos, atan,
46  sinh, cosh, tanh, abs,
47  floor, frac, not_, Gamma, fact,
48  // reductions
50  // scans
52  // other tensor ops
54  // statistics
56  numOps // last operation, for iteration purposes
57  };

Member Function Documentation

◆ classify()

◆ typeName()

string minsky::OperationType::typeName ( int  type)
static

return the symbolic name of type

Definition at line 29 of file operationType.cc.

Referenced by minsky::Operation< minsky::OperationType::integrate >::classType(), and minsky::operator<<().

30  {return enumKey<Type>(type);}
Here is the caller graph for this function:

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