Array1D<T> Constructor

DefinitionPermalink

Namespace: Numerics.NET.Collections
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.1.0

Overload ListPermalink

Array1D<T>(Int32) Constructs a new array of the specified length with offset zero.
Array1D<T>(T[], Int32) Constructs a new array.
Array1D<T>(Int32, Boolean) Constructs a new array of the specified length with offset zero.

Array1D<T>(Int32)Permalink

Constructs a new array of the specified length with offset zero.
C#
public Array1D(
	int length
)

Parameters

length  Int32
The number of elements in the new array.

RemarksPermalink

The storage array also has length elements.

Array1D<T>(T[], Int32)Permalink

Constructs a new array.
C#
public Array1D(
	T[] values,
	int offset
)

Parameters

values  T[]
The .NET array containing the elements.
offset  Int32
The offset into values of the first element.

Array1D<T>(Int32, Boolean)Permalink

Constructs a new array of the specified length with offset zero.
C#
public Array1D(
	int length,
	bool initializeToZero
)

Parameters

length  Int32
The number of elements in the new array.
initializeToZero  Boolean
Indicates whether the elements should be explicitly set to zero.

RemarksPermalink

The storage array also has length elements.

See AlsoPermalink