Vector<T> Constructor

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4

Overload List

Vector<T>(Int32, ArrayAttributes) Constructs a new vector with the specified number of elements.
Vector<T>(SerializationInfo, StreamingContext) Constructs a new vector from serialization values.

Vector<T>(Int32, ArrayAttributes)

Constructs a new vector with the specified number of elements.
C#
protected Vector(
	int length,
	ArrayAttributes attributes
)

Parameters

length  Int32
The number of elements in the new vector.
attributes  ArrayAttributes
The attributes of the new vector.

Exceptions

ArgumentOutOfRangeException

length is less than zero.

Vector<T>(SerializationInfo, StreamingContext)

Constructs a new vector from serialization values.
C#
protected Vector(
	SerializationInfo info,
	StreamingContext context
)

Parameters

info  SerializationInfo
The values needed to serialize or deserialize the Vector<T>.
context  StreamingContext
The source and destination of a given serialized stream.

Remarks

This constructor is called internally by the .NET framework when a Vector<T> is deserialized.

See Also