This is the mail archive of the kawa@sourceware.cygnus.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gnu.math.Numeric


"Daniel Bonniot" <bonniot@cma.ensmp.fr> writes:

> Is there a reason for gnu.math.Numeric.mul_ident() not to be static, or is
> this an typo ?

I had a vague idea that if you extended Numeric to some other Ring,
it still makes sense to define the power method by repeated squaring.
Than x**0 would be the mutliplicative identity of whatever
algebra x is in;  it would not necessary be the number zero.

That's probably not the right way to do it, though.  The right way
probably involves using parameterized types, which will hopefully
be available in Java one of these days.
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/~per/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]