@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);
    }
@ 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 ) ; }
Create a scalar nd array with the specified value and offset

@param value the value of the scalar
@return the scalar nd array