xiaotaiye / cusp-library

Automatically exported from code.google.com/p/cusp-library
Apache License 2.0
0 stars 0 forks source link

enable polymorphism in monitors and linear_operators #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Based on the comments by Florian in this thread [1] on cusp-users it seems we 
should allow polymorphic usage of Cusp monitors and linear_operators.

[1] 
http://groups.google.com/group/cusp-users/browse_thread/thread/73dbba85ee83efb9

Original issue reported on code.google.com by wnbell on 26 Jul 2010 at 10:12

GoogleCodeExporter commented 8 years ago
This isn't possible because .finished() is actually a template member function 
(so it can accept arbitrary array-like structures) and there's no way to make 
.finished() a virtual function.

linear_operator is now an interface much like std::unary_function or 
std::binary_function.

Original comment by wnbell on 14 Feb 2011 at 7:21