Examples of MatrixWritable


Examples of org.apache.mahout.math.MatrixWritable

    T ret = null;
    ByteArrayInputStream bis = new ByteArrayInputStream(buf);
    try {
      ObjectInputStream ois = new ObjectInputStream(bis);
      if (isMatrix) {
        MatrixWritable w = new MatrixWritable();
        w.readFields(ois);
        ret = (T) w.get();
      } else {
        VectorWritable w = new VectorWritable();
        w.readFields(ois);
        ret = (T) w.get();
      }
    } catch (java.io.IOException e) {
      System.out.println("Caught exception: " + e);
    }
    return ret;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.