# File nmatrix.rb, line 234 def coerce_rev(other,id) case id when :* if other.instance_of?(NArray) return NVector.mul( other.newdim(0), self ) end if other.instance_of?(NArrayScalar) return NVector.mul( other, self ) end end raise TypeError,"Illegal operation: %s %s NVector" % [other.class, id.id2name] end