module Algebra::MIndex::Grlex

Public Instance Methods

<=>(other) click to toggle source
# File lib/algebra/m-index.rb, line 18
def <=>(other)
  s = (totdeg <=> other.totdeg)
  return s unless s.zero?
  @body <=> other.to_a
end