ch.javasoft.jsmat.variable
Class MatCell

java.lang.Object
  extended by ch.javasoft.jsmat.variable.MatVariable
      extended by ch.javasoft.jsmat.variable.MatAllocated
          extended by ch.javasoft.jsmat.variable.MatCell

public class MatCell
extends MatAllocated


Field Summary
 
Fields inherited from class ch.javasoft.jsmat.variable.MatVariable
DEFAULT_NAME, mDims, mMatClass
 
Constructor Summary
MatCell(Collection<? extends MatAllocated> elements)
           
MatCell(Collection<? extends MatAllocated> elements, int[] dims)
           
MatCell(String[] elements)
           
MatCell(String[] elements, int[] dims)
           
 
Method Summary
protected  int getRawDataSize()
           
protected  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.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

MatCell

public MatCell(String[] elements)

MatCell

public MatCell(String[] elements,
               int[] dims)

MatCell

public MatCell(Collection<? extends MatAllocated> elements)

MatCell

public MatCell(Collection<? extends MatAllocated> elements,
               int[] dims)
Method Detail

getRawDataSize

protected int getRawDataSize()
Specified by:
getRawDataSize in class MatVariable
Returns:
size of raw data excluding type(4) and size(4) and name

writeRawData

protected void writeRawData(DataOutput out)
                     throws IOException
Description copied from class: MatAllocated
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 MatAllocated
Parameters:
out - the data output to write to
Throws:
IOException - if any io exception occurs