Constructor TensorIndex
TensorIndex(int, int, int, int, int, int, int, int)
Creates a rank-8 tensor index (d7, d6, d5, d4, d3, d2, d1, d0) Ex: (2,3,4,5,6,7,8,9)
Declaration
public TensorIndex(int d7, int d6, int d5, int d4, int d3, int d2, int d1, int d0)
Parameters
Type | Name | Description |
---|---|---|
int | d7 | Axis 7. |
int | d6 | Axis 6. |
int | d5 | Axis 5. |
int | d4 | Axis 4. |
int | d3 | Axis 3. |
int | d2 | Axis 2. |
int | d1 | Axis 1. |
int | d0 | Axis 0. |
TensorIndex(int, int, int, int, int, int, int)
Creates a rank-7 tensor index (d6, d5, d4, d3, d2, d1, d0) Ex: (3,4,5,6,7,8,9)
Declaration
public TensorIndex(int d6, int d5, int d4, int d3, int d2, int d1, int d0)
Parameters
Type | Name | Description |
---|---|---|
int | d6 | Axis 6. |
int | d5 | Axis 5. |
int | d4 | Axis 4. |
int | d3 | Axis 3. |
int | d2 | Axis 2. |
int | d1 | Axis 1. |
int | d0 | Axis 0. |
TensorIndex(int, int, int, int, int, int)
Creates a rank-6 tensor index (d5, d4, d3, d2, d1, d0) Ex: (4,5,6,7,8,9)
Declaration
public TensorIndex(int d5, int d4, int d3, int d2, int d1, int d0)
Parameters
Type | Name | Description |
---|---|---|
int | d5 | Axis 5. |
int | d4 | Axis 4. |
int | d3 | Axis 3. |
int | d2 | Axis 2. |
int | d1 | Axis 1. |
int | d0 | Axis 0. |
TensorIndex(int, int, int, int, int)
Creates a rank-5 tensor index (d4, d3, d2, d1, d0) Ex: (5,6,7,8,9)
Declaration
public TensorIndex(int d4, int d3, int d2, int d1, int d0)
Parameters
Type | Name | Description |
---|---|---|
int | d4 | Axis 4. |
int | d3 | Axis 3. |
int | d2 | Axis 2. |
int | d1 | Axis 1. |
int | d0 | Axis 0. |
TensorIndex(int, int, int, int)
Creates a rank-4 tensor index (d3, d2, d1, d0) Ex: (6,7,8,9)
Declaration
public TensorIndex(int d3, int d2, int d1, int d0)
Parameters
Type | Name | Description |
---|---|---|
int | d3 | Axis 3. |
int | d2 | Axis 2. |
int | d1 | Axis 1. |
int | d0 | Axis 0. |
TensorIndex(int, int, int)
Creates a rank-3 tensor index (d2, d1, d0) Ex: (7,8,9)
Declaration
public TensorIndex(int d2, int d1, int d0)
Parameters
Type | Name | Description |
---|---|---|
int | d2 | Axis 2. |
int | d1 | Axis 1. |
int | d0 | Axis 0. |
TensorIndex(int, int)
Creates a rank-2 tensor index (d1, d0) Ex: (8,9)
Declaration
public TensorIndex(int d1, int d0)
Parameters
Type | Name | Description |
---|---|---|
int | d1 | Axis 1. |
int | d0 | Axis 0. |
TensorIndex(int)
Creates a rank-1 tensor index (d0) Ex: (9)
Declaration
public TensorIndex(int d0)
Parameters
Type | Name | Description |
---|---|---|
int | d0 | Axis 0. |
TensorIndex(TensorIndex)
Instantiates and returns a copy of another TensorIndex
.
Declaration
public TensorIndex(TensorIndex index)
Parameters
Type | Name | Description |
---|---|---|
TensorIndex | index | The |
TensorIndex(int[])
Creates a tensor index given an input int[] representing the index Ex: TensorIndex(new [] {3,4,5,6}) = (3,4,5,6)
Declaration
public TensorIndex(int[] index)
Parameters
Type | Name | Description |
---|---|---|
int[] | index | The index as an array. |