Vector.Align Method

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

Align<T, U>(Vector<T>, Vector<U>) Aligns two vectors along their indexes using the default join type.
Align<T, U>(Vector<T>, Vector<U>, JoinType) Aligns two vectors along their indexes.

Align<T, U>(Vector<T>, Vector<U>)

Aligns two vectors along their indexes using the default join type.
C#
public static IIndex Align<T, U>(
	ref Vector<T> first,
	ref Vector<U> second
)

Parameters

first  Vector<T>
The first vector to align. On return the vector aligned to the combined index.
second  Vector<U>
The second vector to align. On return the vector aligned to the combined index.

Type Parameters

T
The element type of the first vector.
U
The element type of the second vector.

Return Value

IIndex
The combined index.

Remarks

The type specified by AutoAlignJoinType is used to join the indexes.

Align<T, U>(Vector<T>, Vector<U>, JoinType)

Aligns two vectors along their indexes.
C#
public static IIndex Align<T, U>(
	ref Vector<T> first,
	ref Vector<U> second,
	JoinType joinType
)

Parameters

first  Vector<T>
The first vector to align. On return the vector aligned to the combined index.
second  Vector<U>
The first vector to align. On return the vector aligned to the combined index.
joinType  JoinType
The type of join to use when joining the indexes.

Type Parameters

T
The element type of the first vector.
U
The element type of the second vector.

Return Value

IIndex
The combined index.

See Also