| Constructor and Description |
|---|
PMMLRealMatrix() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Number> |
dense(Class<?> type)
Creates a new dense matrix
|
static <T extends Number> |
diagonal(Class<?> type)
Creates a new diagonal matrix.
|
abstract PMMLRealMatrix<T> |
ensureSize(int numRows,
int numCols)
Sizes the matrix to the given number of rows and columns
|
abstract T |
get(int row,
int col)
Returns the value of the given matrix element
|
static Class<?> |
getFieldClass(Class<?> clazz,
String name) |
abstract int |
getNumColumns()
Returns the number of columns in the matrix
|
abstract int |
getNumRows()
Returns the number of rows in the matrix
|
abstract Class<?> |
getType()
Gets the numeric datatype of this matrix.
|
static <T extends Number> |
parse(Element e)
Parses the given matrix element
|
abstract void |
set(int row,
int col,
T value)
Sets the value of the given matrix element.
|
static <T extends Number> |
sparse(T diagDefault,
T offDiagDefault)
Creates a new sparse matrix
|
static <T extends Number> |
symmetric(Class<?> type)
Creates a new symmetric matrix.
|
abstract void |
toPMML(Element parent)
Adds this matrix element as a child of the given element
|
public abstract T get(int row, int col)
row - the row of the elementcol - the column of the elementpublic abstract void set(int row,
int col,
T value)
row - the row of the elementcol - the column of the elementvalue - the value of the elementpublic abstract PMMLRealMatrix<T> ensureSize(int numRows, int numCols)
numRows - the number of rows.numCols - the number of columnspublic abstract int getNumRows()
public abstract int getNumColumns()
public static <T extends Number> PMMLRealMatrix<T> parse(Element e)
e - the elementpublic abstract void toPMML(Element parent)
parent - the parent elementpublic abstract Class<?> getType()
public static <T extends Number> PMMLRealMatrix<T> symmetric(Class<?> type)
public static <T extends Number> PMMLRealMatrix<T> diagonal(Class<?> type)
public static <T extends Number> PMMLRealMatrix<T> dense(Class<?> type)
public static <T extends Number> PMMLRealMatrix<T> sparse(T diagDefault, T offDiagDefault)
diagDefault - the default value for values on the diagonaloffDiagDefault - the default value for values not on the diagonalCopyright © 2024 Actian Corporation. All rights reserved.