61 ArrayShape makeShape(
unsigned i0,
unsigned i1,
unsigned i2,
unsigned i3,
unsigned i4,
unsigned i5,
unsigned i6) {
75 unsigned i0,
unsigned i1,
unsigned i2,
unsigned i3,
unsigned i4,
unsigned i5,
unsigned i6,
unsigned i7) {
142 for (
unsigned i = 0;
i < nIndices; ++
i)
143 s.push_back(indices[
i]);
150 const unsigned len = s.size();
151 for (
unsigned i = 0;
i < len; ++
i)
158 const unsigned len = s.size();
159 for (
unsigned i = 0;
i < len; ++
i) {
160 if (!(s[
i] % 2U == 0))
162 "In npstat::halfShape: array span must be "
163 "even in each dimension");
170 const unsigned len = sh1.size();
171 if (len != sh2.size())
173 for (
unsigned i = 0;
i < len; ++
i)
bool isSubShape(const ArrayShape &sh1, const ArrayShape &sh2)
std::vector< unsigned > ArrayShape
Exceptions for the npstat namespace.
ArrayShape doubleShape(const ArrayShape &inputShape)
Utilities for defining shapes of multidimensional arrays.
ArrayShape halfShape(const ArrayShape &inputShape)