Matrix.FromRows<T> Method

Constructs a new matrix from the specified vectors.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static Matrix<T> FromRows<T>(
	params Vector<T>[] rows
)

Parameters

rows  Vector<T>[]
A parameter array of vectors of T.

Type Parameters

T
The element type of the matrix.

Return Value

Matrix<T>
A matrix constructed by joining the vectors in rows.

Remarks

All vectors must have the same length.

Exceptions

ArgumentNullException

rows is null.

ArgumentException

One of the elements of rows is null.

DimensionMismatchException

Not all of the vectors in rows have the same length.

See Also