@Override
    public IComplexNDArray scalar(IComplexNumber value, long offset) {
        if (Nd4j.dataType() == DataBuffer.Type.DOUBLE)
            return scalar(value.asDouble(), offset);
        if (Nd4j.dataType() == DataBuffer.Type.FLOAT || Nd4j.dataType() == DataBuffer.Type.HALF)
            return scalar(value.asFloat(), offset);
        throw new IllegalStateException("Illegal data opType " + Nd4j.dataType());
    }
@Override
    public IComplexNDArray scalar(IComplexNumber value, long offset) {
        if (Nd4j.dataType() == DataBuffer.Type.DOUBLE)
            return scalar(value.asDouble(), offset);
        if (Nd4j.dataType() == DataBuffer.Type.FLOAT || Nd4j.dataType() == DataBuffer.Type.HALF)
            return scalar(value.asFloat(), offset);
        throw new IllegalStateException("Illegal data opType " + Nd4j.dataType());
    }
@ Override public IComplexNDArray scalar ( IComplexNumber value , long offset ) { if ( Nd4j . dataType ( ) == DataBuffer . Type . DOUBLE ) return scalar ( value . asDouble ( ) , offset ) ; if ( Nd4j . dataType ( ) == DataBuffer . Type . FLOAT || Nd4j . dataType ( ) == DataBuffer . Type . HALF ) return scalar ( value . asFloat ( ) , offset ) ; throw new IllegalStateException ( "Illegal data opType " + Nd4j . dataType ( ) ) ; }
Create a scalar ndarray with the specified offset

@param value  the value to initialize the scalar with
@param offset the offset of the ndarray
@return the created ndarray
Create a scalar ndarray with the specified offset