Matrix.Align Columns Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Overload List
Align | Aligns two matrices along their column indexes using the default join type. |
Align | Aligns two matrices along their column indexes. |
AlignColumns<T, U>(Matrix<T>, Matrix<U>)
Aligns two matrices along their column indexes using the default join type.
public static IIndex? AlignColumns<T, U>(
ref Matrix<T> matrix1,
ref Matrix<U> matrix2
)
Parameters
- matrix1 Matrix<T>
- The first matrix to align. On return the matrix with columns aligned to the combined index.
- matrix2 Matrix<U>
- The second matrix to align. On return the matrix with columns aligned to the combined index.
Type Parameters
- T
- The element type of the first matrix.
- U
- The element type of the second matrix.
Return Value
IIndexThe combined index.
Remarks
The type specified by AutoAlignJoinType is used to join the indexes.
AlignColumns<T, U>(Matrix<T>, Matrix<U>, JoinType)
Aligns two matrices along their column indexes.
public static IIndex? AlignColumns<T, U>(
ref Matrix<T> matrix1,
ref Matrix<U> matrix2,
JoinType joinType
)
Parameters
- matrix1 Matrix<T>
- The first matrix to align. On return the matrix with columns aligned to the combined index.
- matrix2 Matrix<U>
- The second matrix to align. On return the matrix with columns aligned to the combined index.
- joinType JoinType
- The type of join to use to join the indexes.
Type Parameters
- T
- The element type of the first matrix.
- U
- The element type of the second matrix.
Return Value
IIndexThe combined index.