function
Index
Index[T0: Intable](x: T0) -> StaticIntTuple[1]
Constructs a 1-D Index from the given value.
Parameters:
- T0 (
Intable
): The type of the 1st argument.
Args:
- x (
T0
): The initial value.
Returns:
The constructed StaticIntTuple.
Index[T0: Intable, T1: Intable](x: T0, y: T1) -> StaticIntTuple[2]
Constructs a 2-D Index from the given values.
Parameters:
- T0 (
Intable
): The type of the 1st argument. - T1 (
Intable
): The type of the 2nd argument.
Args:
- x (
T0
): The 1st initial value. - y (
T1
): The 2nd initial value.
Returns:
The constructed StaticIntTuple.
Index[T0: Intable, T1: Intable, T2: Intable](x: T0, y: T1, z: T2) -> StaticIntTuple[3]
Constructs a 3-D Index from the given values.
Parameters:
- T0 (
Intable
): The type of the 1st argument. - T1 (
Intable
): The type of the 2nd argument. - T2 (
Intable
): The type of the 3rd argument.
Args:
- x (
T0
): The 1st initial value. - y (
T1
): The 2nd initial value. - z (
T2
): The 3rd initial value.
Returns:
The constructed StaticIntTuple.
Index[T0: Intable, T1: Intable, T2: Intable, T3: Intable](x: T0, y: T1, z: T2, w: T3) -> StaticIntTuple[4]
Constructs a 4-D Index from the given values.
Parameters:
- T0 (
Intable
): The type of the 1st argument. - T1 (
Intable
): The type of the 2nd argument. - T2 (
Intable
): The type of the 3rd argument. - T3 (
Intable
): The type of the 4th argument.
Args:
- x (
T0
): The 1st initial value. - y (
T1
): The 2nd initial value. - z (
T2
): The 3rd initial value. - w (
T3
): The 4th initial value.
Returns:
The constructed StaticIntTuple.
Index[T0: Intable, T1: Intable, T2: Intable, T3: Intable, T4: Intable](x: T0, y: T1, z: T2, w: T3, v: T4) -> StaticIntTuple[5]
Constructs a 5-D Index from the given values.
Parameters:
- T0 (
Intable
): The type of the 1st argument. - T1 (
Intable
): The type of the 2nd argument. - T2 (
Intable
): The type of the 3rd argument. - T3 (
Intable
): The type of the 4th argument. - T4 (
Intable
): The type of the 5th argument.
Args:
- x (
T0
): The 1st initial value. - y (
T1
): The 2nd initial value. - z (
T2
): The 3rd initial value. - w (
T3
): The 4th initial value. - v (
T4
): The 5th initial value.
Returns:
The constructed StaticIntTuple.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
If you'd like to share more information, please report an issue on GitHub
😔 What went wrong?