ch.javasoft.jsmat.variable
Class MatCharMatrix

java.lang.Object
  extended by ch.javasoft.jsmat.variable.MatVariable
      extended by ch.javasoft.jsmat.variable.MatAllocated
          extended by ch.javasoft.jsmat.variable.MatMatrix<char[]>
              extended by ch.javasoft.jsmat.variable.MatCharMatrix

public class MatCharMatrix
extends MatMatrix<char[]>


Nested Class Summary
 
Nested classes/interfaces inherited from class ch.javasoft.jsmat.variable.MatMatrix
MatMatrix.MatGenericMatrix<A>
 
Field Summary
 
Fields inherited from class ch.javasoft.jsmat.variable.MatMatrix
mMatType
 
Fields inherited from class ch.javasoft.jsmat.variable.MatVariable
DEFAULT_NAME, mDims, mMatClass
 
Constructor Summary
MatCharMatrix(char[] chars, int[] dims)
           
MatCharMatrix(String str)
           
MatCharMatrix(String str, int[] dims)
           
MatCharMatrix(String str, int rows, int cols)
           
 
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 ch.javasoft.jsmat.variable.MatMatrix
createDoubleMatrix, createDoubleMatrix, createIntMatrix, createIntMatrix, createUtf8Matrix, createUtf8Matrix
 
Methods inherited from class ch.javasoft.jsmat.variable.MatAllocated
write
 
Methods inherited from class ch.javasoft.jsmat.variable.MatVariable
checkRawDataSizeOverflow, checkValueLength, getDimLength, getFlags, getSize, writeStart
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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