aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-02 17:52:05 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-02 17:52:05 +0000
commita1f22c4f1cfe9549ccc7a4573f453d73e9a168be (patch)
treebfd5c71e7dbe9a4e60ef571402e01f4862e3ecf2
parent5a5bf993325993cae4b7a857e40cce1aeebf865d (diff)
downloadruby-a1f22c4f1cfe9549ccc7a4573f453d73e9a168be.tar.gz
lib/matrix.rb: Alias antisymmetric? with skew_symmetric?
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--NEWS2
-rw-r--r--lib/matrix.rb1
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 42b304dcf8..3ea63f92d4 100644
--- a/NEWS
+++ b/NEWS
@@ -311,7 +311,7 @@ sufficient information, see the ChangeLog file or Redmine
[New methods]
- * Matrix#antisymmetric?
+ * Matrix#antisymmetric? / #skew_symmetric?
[Net]
diff --git a/lib/matrix.rb b/lib/matrix.rb
index 7639b1de6d..1742847d3b 100644
--- a/lib/matrix.rb
+++ b/lib/matrix.rb
@@ -812,6 +812,7 @@ class Matrix
end
true
end
+ alias_method :skew_symmetric?, :antisymmetric?
#
# Returns +true+ if this is a unitary matrix