lib/compsci/simplex.rb in compsci-0.3.0.1 vs lib/compsci/simplex.rb in compsci-0.3.1.1
- old
+ new
@@ -1,11 +1,11 @@
-require 'compsci'
-
# note, this work is based on https://github.com/rickhull/simplex
# which was forked in 2017 from https://github.com/danlucraft/simplex
# which had its last commit in 2013
+module CompSci; end
+
class CompSci::Simplex
DEFAULT_MAX_PIVOTS = 10_000
class Error < RuntimeError; end
class UnboundedProblem < Error; end
@@ -166,8 +166,6 @@
lines = result.map { |ary| ary.join(" ") }
max_line_length = lines.map(&:length).max
lines.insert(1, "-"*max_line_length)
lines.join("\n")
end
-
-
end