commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phil Steitz <>
Subject Re: [math] RealMatrix.set(double)
Date Mon, 22 Aug 2011 20:27:21 GMT
I think it would be good to add this, but it would probably be
better to give it a different name.  What name, I am not sure. 
Maybe setAll or fill.  Might also be useful to have versions that
fill submatrics.  

Here is a little joke to lighten things up a bit.  What if we just
allow people to specify negative indices to mean "everything."  So
for example, setEntry(-1, -1, 0) sets all entries to 0, setEntry(1,
-1, 0) sets the first row to 0.  Just kidding ;)


On 8/22/11 12:00 PM, S├ębastien Brisard wrote:
> Hi,
> I believe that in o.a.c.m.linear.RealMatrix, there is no method
> set(double) which would set *all* entries to the same value. Such a
> method exists (and is useful) in o.a.c.m.linear.RealVector. I propose
> (if you think that could be useful) to open a JIRA issue.
> Thanks for your comments!
> S├ębastien
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message