diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-13 13:51:53 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-13 13:51:53 +0000 |
commit | b359d20352163558d4e7550714844f24b568297e (patch) | |
tree | b5932236ea53fb4dc0e1ec1c283566157170c263 /test/matrix | |
parent | c25853518665c71a79704ca50d40bf2fc4bc6aaa (diff) | |
download | ruby-b359d20352163558d4e7550714844f24b568297e.tar.gz |
* array.c (rb_ary_sum): Array#sum is implemented.
Kahan's compensated summation algorithm for precise sum of float
numbers is moved from ary_inject_op in enum.c.
* enum.c (ary_inject_op): Don't specialize for float numbers.
[ruby-core:74569] [Feature#12217] proposed by mrkn.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/matrix')
0 files changed, 0 insertions, 0 deletions