commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luc Maisonobe <...@spaceroots.org>
Subject Re: [math] RealMatrixPreservingVisitor and RealMatrixChangingVisitor the same?
Date Wed, 30 Dec 2015 09:55:44 GMT
Le 30/12/2015 06:18, Ole Ersoy a écrit :
> Hi,

Hi Ole,

> 
> RealMatrixPreservingVisitor and RealMatrixChangingVisitor files look
> identical with the exception of a single @see Default... annotation
> (Which I think is redundant...same as > All known implementing
> classes...?).  Would it make sense to remove the annotation and have one
> RealMatrixChangingVisitor extend RealMatrixPreservingVisitor?

No. They are different and used for different things.
The visit method returns void in one case and double in another
case. When it returns double, this double is used to update
the matrix that is visited, hence the "Changing" nature of the
visitor.

best regards,
Luc

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


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


Mime
View raw message