Flowdock
-(other) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/matrix.rb, line 983
    def -(other)
      case other
      when Numeric
        Scalar.new(@value - other)
      when Vector, Matrix
        Scalar.Raise WrongArgType, other.class, "Numeric or Scalar"
      when Scalar
        Scalar.new(@value - other.value)
      else
        x, y = other.coerce(self)
        x - y
      end
    end
Register or log in to add new notes.