ILNumerics Ultimate VSILMatharrayT Method (InArrayInt64, IEnumerableT, StorageOrders)ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Creates an ILNumerics array from IEnumerableT.

[ILNumerics Computing Engine]

Namespace: ILNumerics
Assembly: ILNumerics.Computing (in ILNumerics.Computing.dll) Version: 5.3.0.0 (5.3.7131.2749)
Syntax

public static RetArray<T> array<T>(
	InArray<long> size = null,
	IEnumerable<T> values = null,
	StorageOrders order = StorageOrders.ColumnMajor
)

Parameters

size (Optional)
Type: ILNumericsInArrayInt64
[Optional] size for the new array. Default: (null) creates a vector according to the number of given values.
values (Optional)
Type: System.Collections.GenericIEnumerableT
Enumerable with values for the new array.
order (Optional)
Type: ILNumericsStorageOrders
[Optional] Storage order for the new cell. Default: ColumnMajor.

Type Parameters

T
Element type.

Return Value

Type: RetArrayT
ILNumerics array with shallow copy of the values taken from values.
Remarks

If size is provided the number of elements as determined by the number and lengths of dimensions in size must match the actual number of elements found in values.

values is iterated exactly once.

If T is a reference type and/or IDisposable a shallow copy of the reference value is made only. No interface methods are called on the elements of values.

If both, size and values are null, an empty array is returned.

[ILNumerics Computing Engine]

See Also

Reference