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