Package mikera.arrayz

Examples of mikera.arrayz.INDArray


  @Override
  public double[] toDoubleArray() {
    double[] result=Array.createStorage(this.getShape());
    int skip=(int)slice(0).elementCount();
    for (int i=0; i<slices.length; i++) {
      INDArray s=slices[i];
      if (s.isSparse()) {
        s.addToArray(result,skip*i);       
      } else {
        s.getElements(result,skip*i);
      }
    }
    return result;
  }
View Full Code Here

TOP

Related Classes of mikera.arrayz.INDArray

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.