10#ifndef ANASAZI_OPERATOR_TRAITS_HPP
11#define ANASAZI_OPERATOR_TRAITS_HPP
25 class OperatorError :
public AnasaziError
26 {
public: OperatorError(
const std::string& what_arg) : AnasaziError(what_arg) {}};
32 template<
class ScalarType,
class MV,
class OP >
40 static inline void notDefined() {
return OP::this_type_is_missing_a_specialization(); };
51 template <
class ScalarType,
class MV,
class OP>
60 static void Apply (
const OP& Op,
Anasazi header file which uses auto-configuration information to include necessary C++ headers.
Types and exceptions used within Anasazi solvers and interfaces.
Virtual base class which defines basic traits for the operator type.
static void Apply(const OP &Op, const MV &x, MV &y)
Application method which performs operation y = Op*x. An OperatorError exception is thrown if there i...
Namespace Anasazi contains the classes, structs, enums and utilities used by the Anasazi package.
This is the default struct used by OperatorTraits<ScalarType, MV, OP> class to produce a compile time...
static void notDefined()
This function should not compile if there is an attempt to instantiate!