commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebastien Brisard" <sebastien.bris...@m4x.org>
Subject Re: [math] Implementation of Conjugate Gradient (MATH-581)
Date Thu, 04 Aug 2011 11:13:42 GMT
Hi Gilles,
I'm OK to define a new exception. From your PS, I understand that I should
wait until what I've already submitted (MATH-581-06.zip) has been committed
until I submit a patch containing the new exception. Is that right?
I don't think it's necessary to open a new JIRA ticket for this, do you?

Finally, a design issue. I would like the
NonSquareLinearOperatorException to have an accessor to the actual
LinearOperator which was the cause of this exception. It seems to me that
NonSquareMatrixException does not offer this opportunity, so having the latter
inherit from the former might be difficult. Should I give up this accessor,
then? I think it would be a pity. As an example: the constructor of a
preconditioned iterative solver requires TWO LinearOperators, both of which
must be square. If an exception is raised, it would be nice (although not
absolutely essential, since I can always test a posteriori the size of each
operator) to know which operator was faulty.

Thanks for your advice!
Sebastien

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


Mime
View raw message