Vector.Align Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
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.
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
IIndexThe 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.
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
IIndexThe combined index.