public static DoubleVector immutable(DoubleVector vector) {
        if (vector == null)
            throw new NullPointerException("Cannot create an immutable " +
                                           "null vector");
        return new DoubleVectorView(vector, true);
    }
public static DoubleVector immutable ( DoubleVector vector ) { if ( vector == null ) throw new NullPointerException ( "Cannot create an immutable " + "null vector" ) ; return new DoubleVectorView ( vector , true ) ; }
Returns an immutable view of the given {@code DoubleVector}.

@param vector The {@code DoubleVector} to decorate as immutable.
@return An immutable version of {@code vector}.