ILNumerics Ultimate VS

ExtensionMethodsitemsetT1 Method (MutableT1, ArrayT1, InArrayT1, OutArrayT1, RetArrayT1, StorageT1, Int64, T1)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
[numpy API] Replaces a single element of this array at the sequential element location provided.

[ILNumerics numpy Module]

Namespace:  ILNumerics
Assembly:  ILNumerics.numpy (in ILNumerics.numpy.dll) Version: (5.5.7503.3146)

public static void itemset<T1>(
	this Mutable<T1, Array<T1>, InArray<T1>, OutArray<T1>, RetArray<T1>, Storage<T1>> A,
	long d0,
	T1 value


Type: ILNumerics.Core.ArraysMutableT1, ArrayT1, InArrayT1, OutArrayT1, RetArrayT1, StorageT1
The ILNumerics n-dim array.
Type: SystemInt64
Sequential index into the elements of the array. Assuming row-major storage order.
Type: T1
The single value to be copied to the element at the specified position.

Type Parameters

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).

IndexOutOfRangeException if an index exceeds the allowed range of the corresponding dimension.

The index for dimension i can be negative and must evaluate to an element position in the range -A.S.NumberOfElements...A.S.NumberOfElements-1.

This function does not support expanding the array for indices outside of the existing range (as SetValue() does). An exception will be thrown instead when addressing any non-existing element.

d0 is the position of the element to be overwritten by assuming that the arrays elements are sequentially laid-out in memory in row major order. This function handles arbitrary storage orders, though, by using its strides to compute the actual element position in memory.

[ILNumerics numpy Module]

See Also


[!:ILNumerics.ExtensionMethods.SetValue<T1, LocalT, InT, OutT, RetT, StorageT>(Mutable<T1, LocalT, InT, OutT, RetT, StorageT>, T1, long, long, long, long, long, long, long)]