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 ;)

Phil

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: dev-unsubscr...@commons.apache.org
> For additional commands, e-mail: dev-h...@commons.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to