Is "ChainableStack" the most appropriate name for this data structure?

This commit is contained in:
Lane Schwartz 2016-09-18 17:42:48 +02:00
parent a875db7333
commit 6c4a6e0eb4

View File

@ -49,6 +49,12 @@ struct Chainable {
};
};
// XXX Marcin, is ChainableStack the most appropriate name?
// AFAIK, this is never used as a FILO data structure.
// If so, perhaps "Tape" or "ChainLinks" or "ChainableList" might be more apropos?
//
// Naumann (2012) uses "tape" to refer to this data structure.
// -- The Art of Differentiating Computer Programs: An Introduction to Algorithmic Differentiation, Naumann (2012)
typedef std::vector<Chainable<Tensor>*> ChainableStack;
typedef std::shared_ptr<ChainableStack> ChainableStackPtr;
typedef std::shared_ptr<Chainable<Tensor>> ChainPtr;