W
Wolfgang Nádasi-Donner
Hi!
I didn't find there a discussion about this here, so first a description of this
(very) minor change proposal.
I miss the "Sign function" in class "Numeric".
It can simply be added by something like...
class Numeric
def sign
self<0?-1:self>0?1:0
end
end
....but it should be much faster if be defined in the original class.
This method will be used in several algorithms, so it should be available from
my point of view.
Wolfgang Nádasi-Donner
I didn't find there a discussion about this here, so first a description of this
(very) minor change proposal.
I miss the "Sign function" in class "Numeric".
It can simply be added by something like...
class Numeric
def sign
self<0?-1:self>0?1:0
end
end
....but it should be much faster if be defined in the original class.
This method will be used in several algorithms, so it should be available from
my point of view.
Wolfgang Nádasi-Donner