Macaulay2 Engine
Loading...
Searching...
No Matches

◆ addDet()

SLProgram::GATE_POSITION SLProgram::addDet ( const M2_arrayint a)

Definition at line 35 of file SLP.cpp.

36{
37 mNodes.push_back(Det);
38 mNumInputs.push_back(a->len);
39 for (int i = 0; i < a->len; i++)
40 mInputPositions.push_back(a->array[i] -
41 static_cast<GATE_POSITION>(mNodes.size()) + 1);
42 return static_cast<GATE_POSITION>(mNodes.size()) - 1;
43}
std::vector< GATE_POSITION > mInputPositions
Definition SLP-defs.hpp:98
int GATE_POSITION
Definition SLP-defs.hpp:93
std::vector< GATE_SIZE > mNumInputs
Definition SLP-defs.hpp:96
std::vector< GATE_TYPE > mNodes
Definition SLP-defs.hpp:95

References Det, mInputPositions, mNodes, and mNumInputs.

Referenced by rawSLPDetGate().