itpp_sci  1.0.0
it++ based simulation framework for scicoslab, scilab and scipy
sim_circbuff_x.hpp
1 /*xxx
2 * \brief - SIM::circbuff_x - - derived from itpp::Circular_Buffer<complex>
3 * \author maki
4 */
5 
6 #ifndef SIM_CIRCBUFF_X_HPP
7 #define SIM_CIRCBUFF_X_HPP
8 
9 #include <itpp/itbase.h>
10 #include <itpp/itcomm.h>
11 #include "sim\_sim_extension.hpp"
12 
13 using namespace itpp;
14 using namespace std;
15 
16 namespace SIM
17 {
18 
25 class circbuff_x : public itpp::Circular_Buffer<complexd>
26 {
27 private:
28  complexd y0;
29 public:
31  {
32  y0 = complexd(0.0, 0.0);
33  };
34 
36  {
37  };
38 
42  void set_size(int m);
43 
47  void set_output(complexd yout);
48 
52  int get_size();
53 
57  complexd get_output();
58 
64  cvec generate(const bvec &ce);
65 
66 
75  cvec process(const bmat &ceio, const cvec &x);
76 
77 };
78 
79 
80 }
81 #endif // SIM_CIRCBUFF_X_HPP
SIM layer implements low level simulation models with itpp base classes as operational types...
Definition: sim_amp.hpp:15
Definition: _sci_assert.cpp:35
circbuff_x()
Definition: sim_circbuff_x.hpp:30
~circbuff_x()
Definition: sim_circbuff_x.hpp:35
complex circular buffer Core functions SIM::circbuff_x.process() SIM::circbuff_x.generate()
Definition: sim_circbuff_x.hpp:25