Matrix.From Rows Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Overload List
From | Constructs a new matrix from the specified vectors. |
From | Constructs a new matrix from the specified vectors. |
FromRows<T>(ReadOnlySpan<Vector<T>>)
Constructs a new matrix from the specified vectors.
public static Matrix<T> FromRows<T>(
ReadOnlySpan<Vector<T>> rows
)
Parameters
- rows ReadOnlySpan<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
Argument | rows is null. |
Argument | One of the elements of rows is null. |
Dimension | Not all of the vectors in rows have the same length. |
FromRows<T>(Vector<T>[])
Constructs a new matrix from the specified vectors.
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
Argument | rows is null. |
Argument | One of the elements of rows is null. |
Dimension | Not all of the vectors in rows have the same length. |