Package mikera.arrayz

Examples of mikera.arrayz.INDArray.scale()


  }
 
  @Override
  public INDArray innerProduct(double a) {
    INDArray result=clone();
    result.scale(a);
    return result;
  }
 
  @Override
  public INDArray innerProduct(INDArray a) {
View Full Code Here


      if (s instanceof INDArray) {
        al.add(((INDArray)s).outerProduct(a));
      } else {
        double x=Tools.toDouble(s);
        INDArray sa=a.clone();
        sa.scale(x);
        al.add(sa);
      }
    }
    return Arrayz.create(al);
  }
View Full Code Here

  }
 
  @Override
  public INDArray scaleCopy(double d) {
    INDArray r=clone();
    r.scale(d);
    return r;
  }
 
  @Override
  public INDArray negateCopy() {
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.