Click or drag to resize

Vector Constructor

Constructs vector from array of arguments

Namespace: Altaxo.Calc.Ode.Obsolete
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public Vector(
	params double[] elts
)

Parameters

elts  Double
Elements of array
Example
This creates vector with three elements -1,0,1. New array is allocated for this vector:
C#
Vector v = new Vector(-1,0,1)
Next example creates vector that wraps specified array. Please note that no array copying is made thus changing of source array with change vector elements.
C#
double[] arr = new double[] { -1,0,1 };
Vector v = new Vector(arr);
See Also