ILNumerics - Technical Application Development
Assembly: ILNumerics.numpy (in ILNumerics.numpy.dll) Version: 5.5.0.0 (5.5.7503.3146)
[numpy API] Replaces a single element of this array at the element location according to the provided dimension indices.
[ILNumerics numpy Module]
Namespace: ILNumerics
Assembly: ILNumerics.numpy (in ILNumerics.numpy.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax
public static void itemset<T1>( this Mutable<T1, Array<T1>, InArray<T1>, OutArray<T1>, RetArray<T1>, Storage<T1>> A, long d0, long d1, long d2, T1 value )
Parameters
- A
- Type: ILNumerics.Core.ArraysMutableT1, ArrayT1, InArrayT1, OutArrayT1, RetArrayT1, StorageT1
The ILNumerics n-dim array. - d0
- Type: SystemInt64
The index into dimension #0. - d1
- Type: SystemInt64
- d2
- Type: SystemInt64
- value
- Type: T1
The single value to be copied to the element at the specified position.
Type Parameters
- T1
- Element type.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type MutableT1, ArrayT1, InArrayT1, OutArrayT1, RetArrayT1, StorageT1. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).Exceptions
Exception | Condition |
---|---|
IndexOutOfRangeException | if an index exceeds the allowed range of the corresponding dimension. |
Remarks
The index for dimension i can be negative and must evaluate to an element position in the range 0...A.S[i]-1.
This function does not support to expand the array for indices outside of the existing range (as SetValue() does). An exception will be thrown instead.
Unspecified dimension indices are assumed to be 0. Optional indices for virtual dimensions must be 0.
[ILNumerics numpy Module]
See Also
Reference
[!:ILNumerics.ExtensionMethods.SetValue<T1, LocalT, InT, OutT, RetT, StorageT>(Mutable<T1, LocalT, InT, OutT, RetT, StorageT>, T1, long, long, long, long, long, long, long)]