/* * call-seq: * dvector.max -> number or nil * dvector.max(dvector2, ...) -> number or nil * * First form returns the entry with the maximum value in _dvector_, <code>nil</code> if * _dvector_ is empty. Second form returns maximum of all the vectors (or <code>nil</code> if all are empty). * * a = Dvector[ 1, 2, 3, 4, 5, 4, 3, 5, 2 ] * a.max -> 5 * Dvector[].max -> nil * b = Dvector[ 8, 3, 0, 7 ] * a.max(b) -> 8 */ VALUE dvector_max(int argc, VALUE *argv, VALUE self) {