public class Matrix extends AbstractRectangularDataStructure implements SplusObject, java.io.Serializable
Matrix
object.Constructor and Description |
---|
Matrix()
The default constructor.
|
Matrix(java.lang.Object items,
int rowCount,
int colCount)
Constructor that accepts the array of items as well as matrix dimensions.
|
Matrix(java.lang.Object items,
int rowCount,
int colCount,
java.lang.String[] rowNames,
java.lang.String[] colNames)
Constructs a matrix given the items array, dimensions, and dimension
names
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getType()
Retrieves the type of the current instance.
|
void |
setType(java.lang.String type)
Sets the matrix type.
|
getAttrs, getColumnAt, getColumns, getDimAttribute, getDimnamesAttribute, getName, getNumCols, getNumRows, getRowNames, setAttrs, setColumns, setName, setNumCols, setNumRows, setRowNames
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, setName
public Matrix(java.lang.Object items, int rowCount, int colCount)
items
- An array representing the whole contents, both rows and columns, in the column based order.rowCount
- The number of rows in the matrix.colCount
- The number of columns in the matrix.public Matrix(java.lang.Object items, int rowCount, int colCount, java.lang.String[] rowNames, java.lang.String[] colNames) throws java.lang.IllegalArgumentException
items
- An array of items to add to the column content.rowCount
- The number of rows in the matrix.colCount
- The number of columns in the matrix.rowNames
- The names of the rows.colNames
- The names of the columns.java.lang.IllegalArgumentException
- if the items object passed is not an array, or is not of
supported typepublic Matrix()