/* * call-seq: * dvector.remainder(number) -> a_dvector * dvector.remainder(other) -> a_dvector * * When the argument is a number, this operation returns a copy of _dvector_ with each entry x replaced by the remainder of x divided by _number_. * When the argument is a vector, this operation returns a copy of _dvector_ with each entry x replaced * by the remainder of x divided by the corresponding entry in the _other_ vector. * * a = Dvector[ 11, -5, 2 ] * a.remainder(3) -> Dvector[ 2, -2, 2 ] * b = Dvector[ 2, 3, 5 ] * a.remainder(b) -> Dvector[ 1, -2, 2 ] */ VALUE dvector_remainder(VALUE ary, VALUE arg) {