Vector.Join Method

Definition

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

Overload List

Join<T>(Vector<T>[]) Joins vectors together to form one large vector.
Join<T>(Vector<T>, Vector<T>) Joins two vectors.

Join<T>(Vector<T>[])

Joins vectors together to form one large vector.
C#
public static Vector<T> Join<T>(
	params Vector<T>[] vectors
)

Parameters

vectors  Vector<T>[]
An array Vector<T> objects.

Type Parameters

T

Return Value

Vector<T>
A Vector<T> that contains the components of each element in the vectors array.

Exceptions

ArgumentNullException

vectors is null.

Join<T>(Vector<T>, Vector<T>)

Joins two vectors.
C#
public static Vector<T> Join<T>(
	this Vector<T> first,
	Vector<T> second
)

Parameters

first  Vector<T>
A Vector<T> that contains the lower index components.
second  Vector<T>
A Vector<T> that contains the higher index components.

Type Parameters

T

Return Value

Vector<T>
A Vector<T> that contains the components of first followed by the components of second.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Vector<T>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Remarks

If a vector is null, it is treated as a vector of length zero.

See Also