aboutsummaryrefslogtreecommitdiffstats
path: root/test/matrix
Commit message (Collapse)AuthorAgeFilesLines
* Add frozen_string_literal: false for all filesnaruse2015-12-162-0/+2
| | | | | | 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
* * remove trailing spaces.svn2015-10-231-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix/eigenvalue_decomposition.rb (tridiagonalize): fixshugo2015-10-231-0/+26
| | | | | | | | | | | indentation to avoid a warning when the command line option -w of ruby is specified. * lib/matrix/eigenvalue_decomposition.rb (hessenberg_to_real_schur): change the name of a block parameter to avoid a warning when the command line option -w of ruby is specified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_matrix.rb: Refactor on Matrix#determinantnobu2015-05-081-4/+4
| | | | | | | | * test/matrix/test_matrix.rb (test_determinant): refactor test on Matrix#determinant, by merging with test_det for an alias method det. [Fix GH-897] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix.rb: Add Vector#round. Patch by Jordan Stephens.marcandre2015-03-052-0/+10
| | | | | | [Fixes GH-802] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_vector.rb: fix exception classnobu2014-11-191-1/+1
| | | | | | | * 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
* * lib/matrix.rb: Vector#independent? and associated class methodmarcandre2014-11-191-0/+19
| | | | | | patch by gogo tanaka [#10451] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix.rb: Add Vector#angle_withmarcandre2014-11-191-0/+11
| | | | | | Patch by Egunov Dmitriy [#10442] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix.rb: Generalize Vector#cross_product to arbitrary dimensionsmarcandre2014-10-291-2/+12
| | | | | | 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
* * lib/matrix.rb: Add Matrix#adjucatemarcandre2014-10-291-0/+15
| | | | | | patch by gogo tanaka [#10056] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix.rb: Add aliases for Vector#cross & dotmarcandre2014-10-291-0/+3
| | | | | | patch by gogo tanaka [#10352] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix.rb: Add @- and @+ for Matrix and Vector.marcandre2014-10-072-0/+18
| | | | | | patch by gogo tanaka [#10068] [#10069] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix.rb: Add Matrix#laplace_expansion.marcandre2014-10-071-0/+18
| | | | | | patch by gogo tanaka [#10073] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix.rb: Add Vector.basis.marcandre2014-10-071-0/+9
| | | | | | Based on patch by gogo tanaka [#10072] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix.rb: Add hstack & vstack methods.marcandre2014-10-031-0/+35
| | | | | | Based on a patch by creasywuqiong. [Fix GH-344] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix.rb: Fix Matrix.rows copy bug.marcandre2014-10-031-0/+14
| | | | | | Patch by Arron Mabrey. [Fix GH-707] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/matrix/test_matrix.rb: Add tests for Matrix class.hsbt2014-07-181-0/+35
| | | | | | [Feature #10057][ruby-core:63809] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix.rb: Fix sign for cross_product [#9499]marcandre2014-07-111-0/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix.rb: Add Matrix#cofactor [fix GH-568]marcandre2014-04-061-0/+11
| | | | | | Patch by gogotanaka git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix.rb: Add first_minor [fix GH-568]marcandre2014-04-061-0/+12
| | | | | | Patch by gogotanaka git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/matrix/test_matrix: Add tests for trivial cases [fix GH-576]marcandre2014-04-061-0/+3
| | | | | | Patch by gogotanaka git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix: Handle empty diagonal matrix case [fix GH-576]marcandre2014-04-061-0/+1
| | | | | | Patch by gogotanaka git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* matrix.rb: complex vectornobu2012-09-031-0/+15
| | | | | | | * 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
* * test/matrix/test_matrix.rb: remove obsolete test [ruby-core:37714]marcandre2011-07-011-1/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix.rb: Improve algorithm for Matrix#determinant and Matrix#rankmarcandre2010-04-291-18/+5
| | | | | | | {determinant,det,rank}_e are now deprecated. [ruby-core:28273] Also fixes a bug in Determinant#rank (e.g. [[0,1][0,1][0,1]]) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix.rb: Deprecate Vector#elements_to{i/f/r}marcandre2010-04-112-24/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/matrix/test_vector.rb: Oups, removed another obsolete testmarcandre2010-04-051-5/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/matrix/test_matrix.rb (class): Cleanup testsmarcandre2010-04-041-6/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/matrix/test_matrix.rb, test/matrix/test_vector.rb: add somemame2010-01-272-0/+404
| | | | | | tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix.rb (Matrix#inverse_from): use #quo. backported r9490.nobu2010-01-091-0/+9
| | | | | | | | | | | * lib/matrix.rb (Matrix#determinant): ditto. [ruby-core:27507] * lib/matrix.rb (Matrix#rank): ditto. * lib/matrix.rb (Matrix::Scalar#initialize): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/matrix/test_matrix.rb (TestMatrix#test_rank):yugui2009-11-101-0/+98
| | | | | | added a test method for r24969. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/matrix/test_matrix.rb (setup): typo.yugui2008-09-152-4/+16
| | | | | | | | | | | (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
* * lib/matrix.rb (Vector#eql?): typo of the method name as "eqn?".yugui2008-09-142-0/+86
(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