Click or drag to resize

CreateVectorSameAsT(VectorT, VectorT, Int32) Method

Create a new vector with a type that can represent and is closest to both provided samples.

Namespace: Altaxo.Calc.LinearAlgebra
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public static Vector<T> SameAs<T>(
	Vector<T> example,
	Vector<T> otherExample,
	int length
)
where T : struct, new(), IEquatable<T>, IFormattable

Parameters

example  VectorT
The first example vector.
otherExample  VectorT
The second example vector.
length  Int32
The length of the vector to create.

Type Parameters

T
The element type of the vector.

Return Value

VectorT
The created vector.
See Also