commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From S├ębastien Brisard <sebastien.bris...@m4x.org>
Subject [math] rename o.a.c.m.linear.SingularMatrixException to SingularLinearOperatorException
Date Sat, 01 Oct 2011 08:21:00 GMT
Hello,
I need to be able to throw an exception when an iterative linear
solver detects that a RealLinearOperator is singular. I would propose
to implement a SingularLinearOperatorException. Then, since RealMatrix
is derived from RealLinearOperator, it would be logical to have
SingularMatrixException inherit from SingularLinearOperatorException.
However, looking at the present impl of SingularMatrixException, this
exception does nothing fancy. So having two different exceptions might
be too much, I don't know.
So here are two proposals
1. Rename SingularMatrixException to SingularLinearOperatorException
2. Create SingularLinearOperatorException, and have
SingularMatrixException extend SingularLinearOperatorException.

Which option (or any other) do you favor?
S├ębastien

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


Mime
View raw message