KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
g_transformable.h
Go to the documentation of this file.
1 
34 /* =========================================================================== *
35 |
36 | Copyright (c) 1994-2008 by Kobus Barnard (author).
37 |
38 | Personal and educational use of this code is granted, provided that this
39 | header is kept intact, and that the authorship is not misrepresented, that
40 | its use is acknowledged in publications, and relevant papers are cited.
41 |
42 | For other use contact the author (kobus AT cs DOT arizona DOT edu).
43 |
44 | Please note that the code in this file has not necessarily been adequately
45 | tested. Naturally, there is no guarantee of performance, support, or fitness
46 | for any particular task. Nonetheless, I am interested in hearing about
47 | problems that you encounter.
48 |
49 | Authors:
50 | Joseph Schlecht, Luca Del Pero
51 |
52 * =========================================================================== */
53 
54 
64 #ifndef KJB_TRANSFORMABLE_H
65 #define KJB_TRANSFORMABLE_H
66 
67 #include <m_cpp/m_matrix.h>
68 
69 #include <l_cpp/l_exception.h>
70 
71 
72 namespace kjb {
73 
80 {
81  public:
82 
84  virtual ~Transformable() { }
85 
86 
88  virtual void transform(const kjb::Matrix & M)
89  throw (kjb::Illegal_argument) = 0;
90 };
91 
92 
93 }
94 
95 
96 #endif
Definition for the Matrix class, a thin wrapper on the KJB Matrix struct and its related functionalit...
virtual ~Transformable()
Deletes this Transformable.
Definition: g_transformable.h:84
virtual void transform(const kjb::Matrix &M)=0
Transforms this object with a linear operator.
Abstract class to apply a linear transformation to this object.
Definition: g_transformable.h:79
Object thrown when an argument to a function is not acceptable.
Definition: l_exception.h:377
This class implements matrices, in the linear-algebra sense, with real-valued elements.
Definition: m_matrix.h:94
Support for error handling exception classes in libKJB.