Matrix.AlignColumns Method

Definition

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

Overload List

AlignColumns<T, U>(Matrix<T>, Matrix<U>) Aligns two matrices along their column indexes using the default join type.
AlignColumns<T, U>(Matrix<T>, Matrix<U>, JoinType) 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.
C#
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

IIndex
The 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.
C#
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

IIndex
The combined index.

See Also