ILNumerics Ultimate VSExtensionMethodsresizeT1, LocalT, InT, OutT, RetT, StorageT Method ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
[numpy API] Resize this array. This may allocates new memory if the new size is larger than the current size.

[ILNumerics numpy Module]

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

public static void resize<T1, LocalT, InT, OutT, RetT, StorageT>(
	this Mutable<T1, LocalT, InT, OutT, RetT, StorageT> A,
	InArray<long> size
)
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
size
Type: ILNumericsInArrayInt64
The new size. Vector of non-negative elements.

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
ArgumentExceptionIf size is null.
InvalidOperationException if the elements are not stored in a contiguous storage layout.
Remarks

The storage order of this array is retained after resize. By providign an empty array for size a scalar arrays is produced. The result respects the current setting of MinNumberOfArrayDimensions.

[ILNumerics numpy Module]

See Also

Reference