summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--lib/matrix.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 68faef86eb..5f8928991f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon Apr 16 12:17:12 2012 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * lib/matrix.rb (hermitian?): Bug fix, patch by George Koehler
+ [Bug #6290] [rubyspec:4b9573d7613]
+
Mon Apr 16 12:13:42 2012 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
* hash.c: Alias ENV.to_h to ENV.to_hash [ref #6276]
diff --git a/lib/matrix.rb b/lib/matrix.rb
index 6853be8286..8f57c73904 100644
--- a/lib/matrix.rb
+++ b/lib/matrix.rb
@@ -614,7 +614,7 @@ class Matrix
#
def hermitian?
Matrix.Raise ErrDimensionMismatch unless square?
- each_with_index(:strict_upper).all? do |e, row, col|
+ each_with_index(:upper).all? do |e, row, col|
e == rows[col][row].conj
end
end