public Object readMatrix(Element node) throws Exception {
  weka.core.matrix.Matrix matrix;
  Vector<Element> children;
  Element child;
  int i;
  String name;
  Object o;
  if (DEBUG) {
    trace(new Throwable(),node.getAttribute(ATT_NAME));
  }
  m_CurrentNode=node;
  matrix=null;
  children=XMLDocument.getChildTags(node);
  for (i=0; i < children.size(); i++) {
    child=children.get(i);
    name=child.getAttribute(ATT_NAME);
    if (name.equals(VAL_CELLS)) {
      o=invokeReadFromXML(child);
      matrix=new weka.core.matrix.Matrix((double[][])o);
    }
  }
  return matrix;
}

public Object readMatrix ( Element node ) throws Exception { weka . core . matrix . Matrix matrix ; Vector < Element > children ; Element child ; int i ; String name ; Object o ; if ( DEBUG ) { trace ( new Throwable ( ) , node . getAttribute ( ATT_NAME ) ) ; } m_CurrentNode = node ; matrix = null ; children = XMLDocument . getChildTags ( node ) ; for ( i = 0 ; i < children . size ( ) ; i ++ ) { child = children . get ( i ) ; name = child . getAttribute ( ATT_NAME ) ; if ( name . equals ( VAL_CELLS ) ) { o = invokeReadFromXML ( child ) ; matrix = new weka . core . matrix . Matrix ( ( double [ ] [ ] ) o ) ; } } return matrix ; }
builds the matrix from the given dom node .
