Created
July 3, 2015 10:25
-
-
Save ftalbrecht/895c0eff8b080104ac3d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template< class GridViewImp, class RangeImp, class SourceImp = RangeImp, class FieldImp = typename RangeImp::RangeFieldType > | |
class LocalizableProductInterface | |
: public Stuff::Grid::Walker< GridViewImp > | |
{ | |
// not all methods an types shown ... | |
public: | |
LocalizableProductInterface(GridViewType grd_vw) | |
: BaseType(grd_vw) | |
{} | |
virtual ~LocalizableProductInterface() = default; | |
/// \name Have to be implemented by any derived class | |
/// \{ | |
virtual const RangeType& range() const = 0; | |
virtual const SourceType& source() const = 0; | |
virtual FieldType apply2() = 0; | |
virtual FieldType induced_norm() | |
{ | |
return std::sqrt(apply2()); | |
} | |
/// \} | |
}; // class LocalizableProductInterface |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment