CMS 3D CMS Logo

ArrayShape.h
Go to the documentation of this file.
1 #ifndef NPSTAT_ARRAYSHAPE_HH_
2 #define NPSTAT_ARRAYSHAPE_HH_
3 
14 #include <vector>
15 
16 namespace npstat {
21  typedef std::vector<unsigned> ArrayShape;
22 
24 
29  ArrayShape makeShape(unsigned i0);
30  ArrayShape makeShape(unsigned i0, unsigned i1);
31  ArrayShape makeShape(unsigned i0, unsigned i1, unsigned i2);
32  ArrayShape makeShape(unsigned i0, unsigned i1, unsigned i2, unsigned i3);
33  ArrayShape makeShape(unsigned i0, unsigned i1, unsigned i2, unsigned i3, unsigned i4);
34  ArrayShape makeShape(unsigned i0, unsigned i1, unsigned i2, unsigned i3, unsigned i4, unsigned i5);
35  ArrayShape makeShape(unsigned i0, unsigned i1, unsigned i2, unsigned i3, unsigned i4, unsigned i5, unsigned i6);
37  unsigned i0, unsigned i1, unsigned i2, unsigned i3, unsigned i4, unsigned i5, unsigned i6, unsigned i7);
38  ArrayShape makeShape(unsigned i0,
39  unsigned i1,
40  unsigned i2,
41  unsigned i3,
42  unsigned i4,
43  unsigned i5,
44  unsigned i6,
45  unsigned i7,
46  unsigned i8);
47  ArrayShape makeShape(unsigned i0,
48  unsigned i1,
49  unsigned i2,
50  unsigned i3,
51  unsigned i4,
52  unsigned i5,
53  unsigned i6,
54  unsigned i7,
55  unsigned i8,
56  unsigned i9);
57  ArrayShape makeShape(const unsigned* indices, unsigned nIndices);
59 
61  ArrayShape doubleShape(const ArrayShape& inputShape);
62 
64  ArrayShape halfShape(const ArrayShape& inputShape);
65 
71  bool isSubShape(const ArrayShape& sh1, const ArrayShape& sh2);
72 } // namespace npstat
73 
74 #endif // NPSTAT_ARRAYSHAPE_HH_
bool isSubShape(const ArrayShape &sh1, const ArrayShape &sh2)
Definition: ArrayShape.cc:169
std::vector< unsigned > ArrayShape
Definition: ArrayShape.h:21
ArrayShape makeShape()
Definition: ArrayShape.cc:7
ArrayShape doubleShape(const ArrayShape &inputShape)
Definition: ArrayShape.cc:148
ArrayShape halfShape(const ArrayShape &inputShape)
Definition: ArrayShape.cc:156