generic INDArray scale function, scalar innerProduct
AbstractArray innerProduct with scalar