Package org.apache.mahout.math.matrix.impl

Examples of org.apache.mahout.math.matrix.impl.SparseDoubleMatrix3D


   * @throws IllegalArgumentException if <tt>for any 0 &lt;= column &lt; columns(): values[slice][row].length !=
   *                                  columns()</tt>.
   */
  public DoubleMatrix3D make(double[][][] values) {
    if (this == sparse) {
      return new SparseDoubleMatrix3D(values);
    }
    return new DenseDoubleMatrix3D(values);
  }
View Full Code Here


  }

  /** Constructs a matrix with the given shape, each cell initialized with zero. */
  public DoubleMatrix3D make(int slices, int rows, int columns) {
    if (this == sparse) {
      return new SparseDoubleMatrix3D(slices, rows, columns);
    }
    return new DenseDoubleMatrix3D(slices, rows, columns);
  }
View Full Code Here

TOP

Related Classes of org.apache.mahout.math.matrix.impl.SparseDoubleMatrix3D

Copyright © 2018 www.massapicom. 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.