MUQ  0.4.3
AnyVec.h
Go to the documentation of this file.
1 #ifndef ANYMAT_H_
2 #define ANYMAT_H_
3 
4 #include <boost/any.hpp>
5 
6 #include <typeinfo>
7 #include <typeindex>
8 #include <unordered_map>
9 
10 namespace muq {
11  namespace Modeling {
12 
13 
14  class AnyVec{
15 
16  public:
17  AnyVec(boost::any& objIn) : obj(objIn){};
18 
19  unsigned Size(const int dim=-1);
20  double Norm();
21 
22  /* AnyMat operator*(AnyMat const& otherMat) const; */
23 
24  /* // Access operators */
25  double operator()(int i) const;
26  double& operator()(int i);
27 
28  boost::any operator+(boost::any const& otherMat) const;
29  boost::any operator+(AnyVec const& otherMat) const;
30 
31  boost::any operator-(boost::any const& otherMat) const;
32  boost::any operator-(AnyVec const& otherMat) const;
33 
34  /* AnyMat& operator+=(AnyMat const& otherMat); */
35  /* AnyMat& operator-=(AnyMat const& otherMat); */
36 
37  //boost::any& operator=(boost::any& otherMat);
38  //boost::any& operator=(AnyMat otherMat);
39 
40 
41  /* AnyMat Solve(AnyMat const& rhs); */
42 
43  /* AnyMat Cholesky(); */
44 
45  /* AnyMat Zero(int rows, int cols=-1) const; */
46  /* AnyMat Ones(int rows, int cols=-1) const; */
47 
48  /* bool IsZero() const; */
49 
50  /* AnyMat Identity(int rows, int cols) const; */
51 
52  /* double LogDeterminant() const; */
53 
54  /* AnyMat Concatenate(AnyMat const& otherMat, int axis=-1) const; */
55 
56 
57  private:
58  boost::any& obj;
59 
60  };
61  }
62 }
63 #endif
boost::any operator-(AnyVec const &otherMat) const
double & operator()(int i)
AnyVec(boost::any &objIn)
Definition: AnyVec.h:17
boost::any operator+(boost::any const &otherMat) const
double operator()(int i) const
boost::any operator+(AnyVec const &otherMat) const
unsigned Size(const int dim=-1)
boost::any & obj
Definition: AnyVec.h:58
boost::any operator-(boost::any const &otherMat) const