Bug #1531: Matrix#determinant fails on some matrices
http://redmine.ruby-lang.org/issues/show/1531

Author: Marc-Andre Lafortune
Status: Open, Priority: Normal
Category: lib, Target version: 1.9.2
ruby -v: ruby 1.9.2dev (2009-05-24 trunk 23554) [i386-darwin9.7.0]

ruby1.9 -r matrix -e 'Matrix[[0,1],[1,0]].determinant'
/usr/local/ruby191/lib/ruby/1.9.1/matrix.rb:685:in `block (2 levels) in determinant': undefined method `+' for nil:NilClass (NoMethodError)
	from /usr/local/ruby191/lib/ruby/1.9.1/matrix.rb:684:in `loop'
	from /usr/local/ruby191/lib/ruby/1.9.1/matrix.rb:684:in `block in determinant'
	from /usr/local/ruby191/lib/ruby/1.9.1/matrix.rb:681:in `loop'
	from /usr/local/ruby191/lib/ruby/1.9.1/matrix.rb:681:in `determinant'
	from -e:1:in `<main>'

Same with determinant_e.

To fix: gsub('ii','i') in matrix.rb


----------------------------------------
http://redmine.ruby-lang.org