/* * call-seq: * dvector.div(number) -> a_dvector * dvector.div(other) -> a_dvector * dvector - number -> a_dvector * number - dvector -> a_dvector * dvector - other -> a_dvector * * When argument is a number, this operation returns a copy of _dvector_ with each entry x replaced by x / _number_. * When argument is a vector, this operation returns a copy of _dvector_ with each entry x replaced * by x / the corresponding entry in the _other_ vector. * * a = Dvector[ 1.1, -5.7, 2.5 ] * a.div(3.8) -> Dvector[ 1.1/3.8, -5.7/3.8, 2.5/3.8 ] * a / 3.8 -> Dvector[ 1.1/3.8, -5.7/3.8, 2.5/3.8 ] * 3 / a -> Dvector[ 3.8/1.1, -3.8/5.7, 3.8/2.5 ] * b = Dvector[ 7.1, 4.9, -10.1 ] * a.div(b) -> Dvector[ 1.1/7.1, -5.7/4.9, 2.5/10.1 ] * a / b -> Dvector[ 1.1/7.1, -5.7/4.9, 2.5/10.1 ] */ VALUE dvector_div(VALUE ary, VALUE arg) {