naruse
3e92b635fb
Add frozen_string_literal: false for all files
...
When you change this to true, you may need to add more tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-16 05:07:31 +00:00
marcandre
b81950f480
* lib/matrix.rb: Add Vector#round. Patch by Jordan Stephens.
...
[Fixes GH-802]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-05 23:45:42 +00:00
nobu
1bfee27795
test_vector.rb: fix exception class
...
* test/matrix/test_vector.rb (test_independent): fix exception
class path, Vector does not have its own TypeError. [#10451 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-19 23:57:56 +00:00
marcandre
387e0dbe3f
* lib/matrix.rb: Vector#independent? and associated class method
...
patch by gogo tanaka [#10451 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-19 17:44:46 +00:00
marcandre
4da89e192a
* lib/matrix.rb: Add Vector#angle_with
...
Patch by Egunov Dmitriy [#10442 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-19 17:32:58 +00:00
marcandre
aa87ea9915
* lib/matrix.rb: Generalize Vector#cross_product to arbitrary dimensions
...
based on a patch by gogo tanaka [#10074 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-29 02:43:52 +00:00
marcandre
dc38c87779
* lib/matrix.rb: Add aliases for Vector#cross & dot
...
patch by gogo tanaka [#10352 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-29 02:42:56 +00:00
marcandre
a2ae7bccf8
* lib/matrix.rb: Add @- and @+ for Matrix and Vector.
...
patch by gogo tanaka [#10068 ] [#10069 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-07 20:18:35 +00:00
marcandre
eb9c3e7120
* lib/matrix.rb: Add Vector.basis.
...
Based on patch by gogo tanaka [#10072 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-07 19:29:53 +00:00
marcandre
72d0536606
* lib/matrix.rb: Fix sign for cross_product [ #9499 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-11 05:19:33 +00:00
nobu
7c2230bd8c
matrix.rb: complex vector
...
* lib/matrix.rb (Vector#magnitude): accumulate squares of absolute
values to fix for complex vector. [ruby-dev:46100] [Bug #6966 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-09-03 05:49:06 +00:00
marcandre
521f4a4beb
* lib/matrix.rb: Deprecate Vector#elements_to{i/f/r}
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-11 18:50:51 +00:00
marcandre
634616d7f3
* test/matrix/test_vector.rb: Oups, removed another obsolete test
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-05 15:30:18 +00:00
mame
5f7f5098a6
* test/matrix/test_matrix.rb, test/matrix/test_vector.rb: add some
...
tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-27 14:34:03 +00:00
yugui
1cda105886
* test/matrix/test_matrix.rb (setup): typo.
...
(test_equality): misdefinition of the expected working.
Reported by an anonymous user.
(test_hash): added.
* test/matrix/test_vector.rb: ditto.
Mon Sep 15 03:33:10 2008 Tanaka Akira <akr@fsij.org>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-15 01:33:43 +00:00
yugui
406500cc8b
* lib/matrix.rb (Vector#eql?): typo of the method name as "eqn?".
...
(Vector#eqn?): removed. Defined by mistake.
Fixes [ruby-dev:36294]. Reported by weda <weda AT
issp.u-tokyo.ac.jp> and an anonymous user.
* test/matrix/test_matrix.rb: added.
* test/matrix/test_vector.rb: added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-14 07:15:55 +00:00