ch.javasoft.jsmat.variable
Class MatCharMatrix
java.lang.Object
ch.javasoft.jsmat.variable.MatVariable
ch.javasoft.jsmat.variable.MatAllocated
ch.javasoft.jsmat.variable.MatMatrix<char[]>
ch.javasoft.jsmat.variable.MatCharMatrix
public class MatCharMatrix
- extends MatMatrix<char[]>
|
Method Summary |
protected int |
getMatrixSize()
Returns the matrix size, typically the overall array length of the
underlying data |
int |
getRawDataSize()
|
void |
writeRawData(DataOutput out)
Write the raw data to the given output, excluding type, size, name etc. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MatCharMatrix
public MatCharMatrix(String str)
MatCharMatrix
public MatCharMatrix(String str,
int rows,
int cols)
MatCharMatrix
public MatCharMatrix(char[] chars,
int[] dims)
MatCharMatrix
public MatCharMatrix(String str,
int[] dims)
getMatrixSize
protected int getMatrixSize()
- Description copied from class:
MatMatrix
- Returns the matrix size, typically the overall array length of the
underlying data
- Specified by:
getMatrixSize in class MatMatrix<char[]>
getRawDataSize
public int getRawDataSize()
- Overrides:
getRawDataSize in class MatMatrix<char[]>
- Returns:
- size of raw data excluding type(4) and size(4) and name
writeRawData
public void writeRawData(DataOutput out)
throws IOException
- Description copied from class:
MatMatrix
- Write the raw data to the given output, excluding type, size, name etc.
This method is implemented by the type specific subclasses.
- Specified by:
writeRawData in class MatMatrix<char[]>
- Parameters:
out - the data output to write to
- Throws:
IOException - if any io exception occurs