/** * in place addition of two matrices * * @param other the second ndarray to add * @return the result of the addition */ @Override public INDArray addi(INDArray other) { return addi(other, this); }
@Override public INDArray addi(Number n) { return addi(n, this); }
@Override public INDArray add(Number n, INDArray result) { return addi(n, result); }
@Override public INDArray add(Number n) { //return dup().addi(n); return addi(n, Nd4j.createUninitialized(this.shape(), this.ordering())); }
@Override public INDArray add(Number n, INDArray result) { return addi(n, result); }
/** * in place addition of two matrices * * @param other the second ndarray to add * @return the result of the addition */ @Override public INDArray addi(INDArray other) { return addi(other, this); }
@Override public INDArray addi(Number n) { return addi(n, this); }
@Override public IComplexNDArray addi(IComplexNumber n) { return addi(n, Nd4j.createComplex(shape())); }
@Override public INDArray add(Number n) { //return dup().addi(n); return addi(n, Nd4j.createUninitialized(this.shape(), this.ordering())); }
switch (operation) { case 'a': addi(columnVector); break; case 'p':
switch (operation) { case 'a': addi(rowVector); break; case 'p':