5
const Squeal Tensor::_outOfRange = Squeal(Squeal::recoverable, "Tensor index out of range", "Tensor::Tensor");
6
const Squeal Tensor::_outOfRank = Squeal(Squeal::recoverable, "Tensor rank out of range", "Tensor::Tensor");
7
const Squeal Tensor::_lowRank = Squeal(Squeal::recoverable, "Do not use Tensor for rank <= 3", "Tensor::Tensor");
5
const Exception Tensor::_outOfRange = MAUS::Exception(MAUS::Exception::recoverable, "Tensor index out of range", "Tensor::Tensor");
6
const Exception Tensor::_outOfRank = MAUS::Exception(MAUS::Exception::recoverable, "Tensor rank out of range", "Tensor::Tensor");
7
const Exception Tensor::_lowRank = MAUS::Exception(MAUS::Exception::recoverable, "Do not use Tensor for rank <= 3", "Tensor::Tensor");
10
10
Tensor::Tensor(std::vector<int> size, double val) : _data(NULL), _size(size)