# File nmatrix.rb, line 207 def /(other) case other when NMatrix other.lu.solve(self) when NVector raise TypeError,"Illegal operation: NVector / %s" % other.class when NArray if other.instance_of?(NArray) NVector.div( NArray.refer(self), other.newdim(0) ) else other.coerce_rev( self, :/ ) end when Numeric NVector.div( NArray.refer(self), other ) else raise TypeError,"Illegal operation: NVector / %s" % other.class end end