ILNumerics Ultimate VS

ExtensionMethodsSetValueT1, LocalT, InT, OutT, RetT, StorageT Method (MutableT1, LocalT, InT, OutT, RetT, StorageT, T1, Int64, Int64, Int64)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Sets the value of the element addressed by d0...d2.

[ILNumerics Core Module]

Namespace:  ILNumerics
Assembly:  ILNumerics.Core (in ILNumerics.Core.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax

public static void SetValue<T1, LocalT, InT, OutT, RetT, StorageT>(
	this Mutable<T1, LocalT, InT, OutT, RetT, StorageT> A,
	T1 value,
	long d0,
	long d1,
	long d2
)
where LocalT : Mutable<T1, LocalT, InT, OutT, RetT, StorageT>
where InT : Immutable<T1, LocalT, InT, OutT, RetT, StorageT>
where OutT : Mutable<T1, LocalT, InT, OutT, RetT, StorageT>
where RetT : ConcreteRetArray<T1, LocalT, InT, OutT, RetT, StorageT>
where StorageT : new(), BaseStorage<T1, LocalT, InT, OutT, RetT, StorageT>

Parameters

A
Type: ILNumerics.Core.ArraysMutableT1, LocalT, InT, OutT, RetT, StorageT
This mutable array.
value
Type: T1
The new value.
d0
Type: SystemInt64
Index into dimension #0.
d1
Type: SystemInt64
Index into dimension #1.
d2
Type: SystemInt64
Index into dimension #2.

Type Parameters

T1
LocalT
InT
OutT
RetT
StorageT

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type MutableT1, LocalT, InT, OutT, RetT, StorageT. 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

ExceptionCondition
OutOfMemoryException if the expanded size as determined by the given indices is too large to be allocated.
InvalidOperationExceptionif this array is currently in use by other arrays and locked against modifications. This should not happen during 'regular' use and may indicate a bad design.
Remarks

This function replaces a single value of A at the position as specified by the dimensional indices d0...d2.

d2 is considered a sequential index into its own and into subsequent, merged dimensions (Matlab/ILNumericsV4 indexing style).

The function supports automatic expansion when addressing elements outside of the current dimension range. However, removal of parts of the array is not supported. Use the indexers defined on MutableT1, LocalT, InT, OutT, RetT, StorageT for removal operations in array style ILNumericsV4. It is recommended to initialize your arrays with a fixed size and to prevent from array size changing operations for best performance, though.

[ILNumerics Core Module]

See Also

Reference

Other Resources