marcandre
f59098d118
* lib/matrix.rb: Fix Matrix.rows copy bug.
...
Patch by Arron Mabrey. [Fix GH-707]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-03 03:38:06 +00:00
ayumin
1ddf81134b
* lib/matrix.rb: Fix docs. Patched by Ben Woodall. [GH-726]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-24 22:54:10 +00:00
marcandre
b0eda56826
* lib/matrix.rb: Avoid using `and`.
...
Patch by gogo tanaka [#10058 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-18 10:04:15 +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
marcandre
d11d87c362
* lib/matrix.rb: Add Matrix#cofactor [fix GH-568]
...
Patch by gogotanaka
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-06 17:46:16 +00:00
marcandre
b8ba202301
* lib/matrix.rb: Add first_minor [fix GH-568]
...
Patch by gogotanaka
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-06 17:45:54 +00:00
marcandre
bcf8dd1096
* lib/matrix: Handle empty diagonal matrix case [fix GH-576]
...
Patch by gogotanaka
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-06 17:45:07 +00:00
marcandre
2ea4ed6395
* lib/matrix.rb: Fix typo in rdoc
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-19 16:36:42 +00:00
marcandre
2106aa1990
* lib/matrix.rb: Add Vector#cross_product, patch by Luis Ezcurdia
...
[fix GH-276] [rubyspec:81eec89a124]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-13 03:08:28 +00:00
marcandre
9a912c66d4
* lib/matrix.rb: Fix error message, patch by pypypy [Bug #7777 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-05 05:43:36 +00:00
marcandre
ddea0c8232
* lib/matrix.rb: Take conjugate for inner product
...
[rubyspec:5a01ad5719f2] [ruby-dev:46101]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-30 04:53:58 +00:00
zzak
f2a997d858
* lib/matrix.rb (#dup): typo in example [ruby-core:50946][Bug #7582 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-17 17:36:56 +00:00
marcandre
8aac5f48fc
* lib/matrix: alias {row|column}_size to {row|column}_count and use the latter.
...
[Bug #7369 ] [ruby-core:49409]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-10 16:53:57 +00:00
marcandre
23798cd67b
* lib/matrix.rb: Fix determinant_e [ruby-dev:46305] [Bug #7228 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-10-28 18:21:17 +00:00
nobu
e6c5b9f308
revert r37326 "remove string literal concatenation"
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-10-25 14:06:31 +00:00
nobu
db1f7079b6
remove string literal concatenation
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-10-25 10:07:22 +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
b62792e540
* lib/matrix.rb (hermitian?): Bug fix, patch by George Koehler
...
[Bug #6290 ] [rubyspec:4b9573d7613]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-16 03:17:45 +00:00
drbrain
68bf801c39
* lib/matrix.rb: Clean up extra whitespace in output documentation.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-26 03:04:11 +00:00
marcandre
b906a46edd
* lib/matrix.rb (symmetric?): Trivial optimization
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-12-30 06:04:04 +00:00
marcandre
506b253856
* lib/matrix.rb: Deal with subclasses of Matrix [redmine #5307 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-10 20:23:36 +00:00
naruse
53e667a9eb
Remove duplicated definition.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-09 19:11:06 +00:00
marcandre
1e696acc7e
* lib/matrix.rb: Add Vector#normalize [ruby-dev:43829]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-09 02:41:14 +00:00
marcandre
c8e2388257
* lib/matrix: Add LUP decomposition
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-01 06:23:12 +00:00
marcandre
59a3d59496
* lib/matrix.rb: Allow non integer exponents for Matrix#**
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-01 06:21:24 +00:00
marcandre
004c34f9de
* lib/matrix: Add Eigenvalue Decomposition
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-01 06:13:35 +00:00
marcandre
376b825127
* lib/matrix: Add Matrix#round
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-01 06:10:40 +00:00
marcandre
54bbc098fa
* lib/matrix.rb: Matrix.zero can build rectangular matrices.
...
Vector#r should be called #magnitude
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-29 01:13:22 +00:00
marcandre
de97e946f0
* lib/matrix.rb: Add Matrix#diagonal?, hermitian?, normal?, orthogonal?
...
permutation?, symmetric?, {lower|upper}triangular?, unitary?, zero?
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-29 01:11:19 +00:00
marcandre
22ffae4009
* lib/matrix.rb: Specialize Matrix#find_index to return [row, col]
...
and accept the same optional argument as #each
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-29 01:09:46 +00:00
marcandre
dfc6bf9da8
* lib/matrix.rb: Matrix#each{_with_index} can iterate over a subset of the Matrix
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-29 01:08:02 +00:00
naruse
0de2d84af8
Clean warnings: unused variables.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-23 05:32:46 +00:00
marcandre
159fd9ee6c
* lib/matrix.rb (eql?, ==, minor): Fix bugs when comparing/returning
...
some empty matrices.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-05 04:18:08 +00:00
marcandre
87c1da091c
* lib/matrix.rb: trivial optimizations
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-05 04:17:44 +00:00
marcandre
ef83d7a928
* lib/matrix.rb (determinant): Trivial optimization (thanks to Benoit Daloze)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-17 21:09:31 +00:00
marcandre
ec8b5d0625
* NEWS: List all changes to lib/matrix
...
* lib/matrix.rb: Improve doc and style. Trivial optimizations.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-02 05:43:29 +00:00
marcandre
0a3c78face
* lib/matrix.rb: Improve algorithm for Matrix#determinant and Matrix#rank
...
{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
2010-04-29 18:19:12 +00:00
marcandre
a3a4542fb4
* lib/matrix.rb (Matrix#singular?, Matrix#regular?): raise on rectangular
...
matrices, and use determinant instead of rank.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-29 18:18:58 +00:00
marcandre
17fa2ce73a
* lib/matrix.rb: New method Matrix.build [ruby-core:28272]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-11 20:10:43 +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
3f64c83eb1
* lib/matrix.rb: Deprecate elements_to_{f/i/r}
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-11 18:45:58 +00:00
marcandre
e0cfb13c32
* lib/matrix.rb: Handle coercion errors by raising TypeErrors [ruby-core:26736]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-11 18:30:58 +00:00
kazu
4900daa4a3
fix rdoc. see r27156
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-07 08:50:36 +00:00
marcandre
5ef335319e
* lib/matrix.rb: Matrix.determinant: raise on rectangular matrices
...
[ruby-core:28271]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-01 18:06:08 +00:00
marcandre
729941da39
* lib/matrix.rb: New Complex instance methods:
...
conjugate, conj, imaginary, imag, real, real?, rectangular, rect
[ruby-core:26285]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-01 18:05:11 +00:00
marcandre
277cb36b21
* lib/matrix.rb: New methods Matrix#each, #each_with_index, and
...
include Enumerable [ruby-core:28400]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-01 18:04:14 +00:00
marcandre
af6e31b344
* lib/matrix.rb (empty): Reject negative sizes
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-01 18:03:15 +00:00
marcandre
fac245828b
* lib/matrix.rb: New method #empty? [ruby-core:26284]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-01 18:02:27 +00:00
marcandre
39aad8fa83
* lib/matrix.rb: removed compare_by*, inspect_org, cf [ruby-core:26268]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-01 18:01:45 +00:00
keiju
cd492563f8
* lib/matrix.rb(Vector#each2, Vector#collect2): add type check for
...
Integer[Bug #2495 ].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-29 11:27:03 +00:00
marcandre
b81e045712
* lib/matrix.rb (Vector#each): Return self and optimization [ruby-core:28405]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-03 14:07:53 +00:00
matz
800dda6c28
* lib/matrix.rb (Vector#each2, collect2): small refactoring.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-03 07:21:21 +00:00
matz
2cfb894d2a
* lib/matrix.rb (Vector#each): make Vector enumerable.
...
[ruby-core:28405]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-03 07:19:21 +00:00
mame
9f714e35ec
* lib/matrix.rb (Vector#each2): returns a self. [ruby-dev:40241]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-01 12:27:46 +00:00
keiju
afc9fce01f
* lib/matrix.rb: add exception Matrix::ErrOperationNotImplemented
...
[ruby-dev:40149].
* lib/matrix.rb: change message of exception
Matrix::ErrOperationNotDefined [ruby-dev:40150], [ruby-dev:40176].
* lib/matrix.rb: add method Vector#/ [ruby-dev:40151].
* lib/matrix.rb(Matrix::Scalar#+,-,/): delete meaningless when
switch. [ruby-dev:40149]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-27 14:28:47 +00:00
mame
a817c0b089
* lib/matrix.rb (determinant): fix name error.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-27 13:49:58 +00:00
akr
a967f738c8
* lib/matrix.rb: suppress warnings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-25 22:08:29 +00:00
nobu
655cb34f17
* lib/matrix.rb (Matrix#inverse_from): use #quo. backported r9490.
...
* 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
2010-01-09 20:35:28 +00:00
marcandre
fad1e8c761
* lib/matrix.rb (each2,collect2,map2): Fix enumerator [ruby-core:27225]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-19 02:07:00 +00:00
marcandre
c038e9003c
* lib/matrix.rb (**): Optimization (up to 45% faster)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-24 20:55:40 +00:00
marcandre
66ed25f633
* lib/matrix (transpose): bug fix for Matrix.empty(0,42).t
...
cf [ruby-core:23598]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-24 06:05:10 +00:00
marcandre
90d244aded
* lib/matrix (column): handle negative arguments. cf [ruby-core:23598]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-24 06:04:56 +00:00
marcandre
e5af8e940b
* lib/matrix (minor): Also handle negative arguments like Array#[]
...
cf [ruby-core:23598]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-24 06:04:41 +00:00
marcandre
86a81951b1
* lib/matrix.rb (transpose, inspect): Bug fix
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-20 19:01:44 +00:00
marcandre
439a1e64d1
* lib/matrix.rb (empty): Improved rdoc
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-20 19:01:31 +00:00
keiju
9eebf6bf48
* lib/matrix.rb: Bug fix. See detail [ruby-core:23598].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-20 13:35:15 +00:00
marcandre
6023a79deb
* lib/matrix.rb (Matrix#rank): Two bug fixes. One made Matrix[[0,0],[0,0],[1,0]].rank raise a NoMethodError while the other one had Matrix[[0,1],[0,0],[1,0]].rank raise a TypeError.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-16 21:04:07 +00:00
marcandre
d09cde1861
* lib/matrix.rb: Optimizations
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-16 21:02:54 +00:00
marcandre
405cfda0d2
* lib/matrix.rb (Matrix#/): Fix obvious bug
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-16 08:24:15 +00:00
marcandre
193a7db4e2
* lib/matrix.rb: fix previous optimization
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-16 07:17:22 +00:00
marcandre
52c3721af3
* lib/matrix.rb (determinant): Bug fix where determinant failed on some matrices [ruby-core:23597]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-16 04:39:51 +00:00
marcandre
c3db24a4dc
* lib/matrix.rb: Fix typos in doc and indent
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-16 04:39:37 +00:00
marcandre
9d3638448e
* lib/matrix.rb: trivial optimizations
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-16 04:36:37 +00:00
wanabe
abc20ed0f4
* lib/matrix.rb (Matrix#rank): revert a part of r20859 to avoid
...
infinite loop. [Bug #1020 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-20 03:53:19 +00:00
nobu
f378f10473
* lib/**/*.rb: removed unnecessary shbang lines.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-06 04:23:05 +00:00
nobu
287a34ae0d
* {ext,lib,test}/**/*.rb: removed trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-06 03:56:38 +00:00
matz
85bae86cb6
* lib/optparse/version.rb: remove variable shadowing to stop
...
warning. [ruby-core:20612]
* lib/irb/completion.rb, lib/net/imap.rb, lib/prime.rb,
lib/rinda/ring.rb, lib/racc/parser.rb,
lib/shell/command-processor.rb, lib/yaml/yamlnode.rb: ditto.
* lib/racc/parser.rb: remove space before parentheses.
* lib/shell/command-processor.rb, lib/shell/process-controller.rb:
use parentheses around arguments.
* lib/irb/ext/change-ws.rb, lib/rexml/validation/relaxng.rb,
lib/yaml/baseemitter.rb: indentation fix.
* lib/matrix.rb: small cosmetic change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-18 07:54:50 +00:00
keiju
67d18f7ff7
* lib/matrix.rb: shut up warning. [ruby-dev:37481] [Bug #899 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-17 10:25:29 +00:00
yugui
db14bfe4ea
* lib/matrix.rb (Matrix#eql?): fixed [ruby-dev:36298].
...
Reported by an anonymous user.
* lib/matrix.rb (Vector#eql?): ditto.
* (Matrix#compare_by_row_vectors): takes comparison
strategy as an optional parameter.
* (Vector#compare_by): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-15 12:02:39 +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
akr
6cdef2dc7e
* $Date$ keyword removed to avoid inclusion of locale dependent
...
string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-06 15:49:38 +00:00
matz
1eee78b876
* eval.c (rb_f_send): allow send/__send__ to call methods of all
...
visibility again. we no longer provide __send, __send!.
* eval.c (rb_invoke_method): new method to honor private
visibility. if it's invoked in a function call style, it calls
private methods as well (previous 1.9 send behavior).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-04 20:36:20 +00:00
keiju
ee9e5a6ea8
* lib/matrix.rb: fix a coerce bug of Vector. [ruby-core: 12190]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-18 13:12:47 +00:00
matz
99ab1fed49
* eval.c (rb_f_send_bang): abandon the name funcall for private
...
aware method call.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-24 08:15:37 +00:00
matz
de3770d158
* lib/matrix.rb (Matrix::inverse_from): adding partial pivoting to
...
the Gauss-Jordan algorithm, making it stable. a patch from
Peter Vanbroekhoven. [ruby-core:10641]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-19 05:39:07 +00:00
matz
cd3a5e2bb2
* misc/ruby-mode.el (ruby-parse-partial): need to parse "/=" as
...
self assignment operator, not regex. [ruby-talk:227324]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-05 09:56:18 +00:00
keiju
937731e7f8
* lib/matrix.rb: add Matrix#determinant_e, Matrix#rank_e.
...
[ruby-dev:27820] and related thread.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-12-09 16:10:45 +00:00
matz
9974cb96d3
* eval.c (rb_call_super): should call method_missing if super is
...
called from Kernel method.
* eval.c (exec_under): frame during eval should preserve external
information.
* configure.in: use proper option for Sun linker. A patch from
Shinya Kuwamura <kuwa@labs.fujitsu.com>. [ruby-dev:27603]
* numeric.c (fix_rshift): RDoc fix. [ruby-core:6351]
* util.h (strtod): add #undef for platforms defines strtod()
macro. [ruby-dev:27563]
* ext/etc/etc.c: document update from mathew <meta@pobox.com>.
[ruby-core:06473]
* ext/fcntl/fcntl.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-01 13:04:35 +00:00
matz
c6b9f16231
* string.c (scan_once): wrong condition to use mbclen2().
...
[ruby-dev:27535]
* time.c (time_sunday): added predicate methods for the days of the
week. [ruby-list:41340]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-27 08:18:38 +00:00
nobu
92f0be2037
* dln.c, io.c, pack.c, lib/benchmark.rb, lib/cgi.rb, lib/csv.rb,
...
lib/date.rb, lib/ftools.rb, lib/getoptlong.rb, lib/logger.rb,
lib/matrix.rb, lib/monitor.rb, lib/set.rb, lib/thwait.rb,
lib/timeout.rb, lib/yaml.rb, lib/drb/drb.rb, lib/irb/workspace.rb,
lib/net/ftp.rb, lib/net/http.rb, lib/net/imap.rb, lib/net/pop.rb,
lib/net/telnet.rb, lib/racc/parser.rb, lib/rinda/rinda.rb,
lib/rinda/tuplespace.rb, lib/shell/command-processor.rb,
lib/soap/rpc/soaplet.rb, lib/test/unit/testcase.rb,
lib/test/unit/testsuite.rb: typo fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-18 23:19:47 +00:00
gsinclair
9670d71ba9
From ruby_1_8 branch:
...
* lib/test/unit.rb: rearranged documentation for RDoc's sake.
* lib/matrix.rb: improved documentation.
* lib/net/http.rb: slight documentation formatting improvement.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-01 09:27:17 +00:00
matz
9ef8a2a5db
* lib/matrix.rb: remove elements conversion to_f, to_i, to_r.
...
* lib/cgi/session/pstore.rb: add new file.
* process.c (proc_getgroups, proc_setmaxgroups): fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-15 07:35:14 +00:00
dave
dd8c129624
Matrix used range.size, which no longer exists
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-24 22:51:46 +00:00
dave
033ea1c464
Fix method name typo in Matrix.row_vector
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-24 20:10:02 +00:00
gsinclair
181edd12a0
Added RDoc comments.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-20 07:16:01 +00:00
nobu
29cef5f795
use Object#class instead of deprecated Object#type.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-02 16:45:35 +00:00
keiju
68ed743d99
* matrix.rb: Vector#* bug. reported from Massimiliano Mirra
...
<info@chromatic-harp.com>.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-12-09 14:11:30 +00:00
keiju
edaf0477a5
* matrix.rb (Matrix#column_vectors, Matrix#row_vectors): ditto bug.
...
this bug report and fix by tsutomu@nucba.ac.jp .
* forwardable.rb: change raise to Kernel::raise
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-11-03 13:41:57 +00:00
keiju
cc13bb43bc
* lib/matrix.rb: resolve 'ruby -w' warnings.
...
* lib/irb/locale.rb: resolve 'ruby -w' warnings.
* lib/irb/multi-irb.rb: resolve 'ruby -w' warnings.
* lib/irb/ruby-lex.rb: fix problem for "\\M-\\..." and "\\C-\\..."
and resolve 'ruby -w' warnings.
* lib/irb/ruby-token.rb: fix typo
* lib/shell/command-processor.rb: resolve 'ruby -w' warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-06-27 15:35:04 +00:00
matz
2252d4ce02
matz
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-01 03:31:05 +00:00