code: @Override
      public INDArray scalar(double value) {
          if (Nd4j.dataType() == DataType.DOUBLE)
              return create(new double[] {value}, new int[0], new int[0], 0);
          else
              return scalar((float) value);
      }
docs: Create a scalar nd array with the specified value and offset
  
  @param value the value of the scalar
  @return the scalar nd array