Vector<T> Constructor
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
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.
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
Argument | length is less than zero. |
Vector<T>(SerializationInfo, StreamingContext)
Constructs a new vector from serialization values.
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.