Constructs a new data frame from a matrix.
Namespace: Extreme.DataAnalysisAssembly: Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.16312.0)
public static DataFrame<R, C> FromMatrix<R, C, T>(
Matrix<T> values,
Index<R> rowIndex,
Index<C> columnIndex
)
Public Shared Function FromMatrix(Of R, C, T) (
values As Matrix(Of T),
rowIndex As Index(Of R),
columnIndex As Index(Of C)
) As DataFrame(Of R, C)
public:
generic<typename R, typename C, typename T>
static DataFrame<R, C>^ FromMatrix(
Matrix<T>^ values,
Index<R>^ rowIndex,
Index<C>^ columnIndex
)
static member FromMatrix :
values : Matrix<'T> *
rowIndex : Index<'R> *
columnIndex : Index<'C> -> DataFrame<'R, 'C>
Parameters
- values
- Type: Extreme.MathematicsMatrixT
A matrix. - rowIndex
- Type: Extreme.DataAnalysisIndexR
The row index of the new data frame. - columnIndex
- Type: Extreme.DataAnalysisIndexC
The column index of the new data frame.
Type Parameters
- R
- The element type of rowIndex.
- C
- The element type of columnIndex.
- T
- The element type of the matrix.
Return Value
Type:
DataFrameR,
CA data frame containing the columns of
values
as its columns.
Exception | Condition |
---|
ArgumentNullException | values is . -or- rowIndex is . -or- columnIndex is . |
DimensionMismatchException | The length of rowIndex does not equal
the number of rows in values. -or- The length of columnIndex does not equal
the number of columns in values. |
Numerical Libraries
Supported in: 6.0
Reference