public class MataMatrix
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.List<java.lang.Long> |
colindex
List of column indices
|
java.lang.String |
matName
Name of the Mata matrix
|
java.util.Map<java.lang.Long,java.util.Map<java.lang.Long,java.lang.Object>> |
matrix
POJO representation of the Mata matrix
|
long |
ncols
Number of columns in the matrix
|
long |
nrows
Number of rows in the matrix
|
java.util.List<java.lang.Long> |
rowindex
List of row indices
|
Constructor and Description |
---|
MataMatrix()
Constructor method used to build the MataMatrix object
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Long> |
getColIndex()
Getter method to access the column indices
|
java.lang.String |
getMatName()
Getter method to access the name of the matrix
|
java.lang.Object |
getMatrix()
Getter method to access the POJO representation of the Mata Matrix
|
java.lang.Object |
getMatrixData(java.lang.Long colid,
java.lang.Long rowid)
Generic method to return data from a Mata Matrix
|
java.lang.Long |
getNcols()
Getter method to access the total number of columns
|
java.lang.Long |
getNrows()
Getter method to access the total number of rows
|
java.util.List<java.lang.Long> |
getRowIndex()
Getter method to access the row indices
|
void |
setColIndex(java.lang.Long ncol)
Setter method for the colindex member variable
|
void |
setMatName()
Setter method for the name of the matrix accessed from a local macro
defined during prior to calling the javacall function from Stata.
|
void |
setMatrix(java.util.List<java.lang.Long> observations,
java.util.List<java.lang.Long> variables)
Method used to construct a POJO representation of the Mata matrix
|
void |
setNcols(java.lang.String matrixName)
Setter method for the number of columns in the named Mata Matrix
|
void |
setNrows(java.lang.String matrixName)
Setter method for the number of rows in the named Mata Matrix
|
void |
setRowIndex(java.lang.Long nrow)
Setter method for the rowindex member variable
|
public long ncols
public long nrows
public java.lang.String matName
public java.util.List<java.lang.Long> colindex
public java.util.List<java.lang.Long> rowindex
public java.util.Map<java.lang.Long,java.util.Map<java.lang.Long,java.lang.Object>> matrix
public void setMatName()
public java.lang.String getMatName()
public void setNcols(java.lang.String matrixName)
matrixName
- The name of the Mata Matrix stored in the matName
variable.public java.lang.Long getNcols()
public void setNrows(java.lang.String matrixName)
matrixName
- The name of the Mata Matrix stored in the matName
variable.public java.lang.Long getNrows()
public void setColIndex(java.lang.Long ncol)
ncol
- The number of columns in the Matrix previously namedpublic java.util.List<java.lang.Long> getColIndex()
public void setRowIndex(java.lang.Long nrow)
nrow
- The number of rows in the Matrix previously namedpublic java.util.List<java.lang.Long> getRowIndex()
public void setMatrix(java.util.List<java.lang.Long> observations, java.util.List<java.lang.Long> variables)
observations
- A List of row indicesvariables
- A List of column indicespublic java.lang.Object getMatrix()
public java.lang.Object getMatrixData(java.lang.Long colid, java.lang.Long rowid)
colid
- The value of the matrix column from which to obtain a valuerowid
- The value of the matrix row from which to obtain a value