Dense Vector<T> Constructor
Definition
Namespace: Numerics.NET.LinearAlgebra
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Overload List
Dense | Constructs a new vector with the specified number of elements. |
Dense | Constructs a new vector from serialization values. |
DenseVector<T>(Int32, ArrayAttributes)
Constructs a new vector with the specified
number of elements.
protected DenseVector(
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. |
DenseVector<T>(SerializationInfo, StreamingContext)
Constructs a new vector from serialization values.
protected DenseVector(
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.