34 #include <itpp/itexports.h>
59 LFSR(
const bvec &connections);
61 LFSR(
const ivec &connections);
63 void set_connections(
const bvec &connections);
65 void set_connections(
const ivec &connections);
67 void set_state(
const bvec &state);
69 void set_state(
const ivec &state);
73 bvec shift(
int no_shifts);
79 bvec memory, Connections;
98 Gold(
const bvec &mseq1_connections,
const bvec &mseq2_connections);
100 Gold(
const ivec &mseq1_connections,
const ivec &mseq2_connections);
102 void set_state(
const bvec &state1,
const bvec &state2);
104 void set_state(
const ivec &state1,
const ivec &state2);
108 bvec shift(
int no_shifts);
110 int get_sequence_length(
void);
118 bmat get_family(
void);
125 inline bin LFSR::shift(
void) {
bin temp = memory * Connections;memory.shift_right(temp);
return temp;}
146 #endif // #ifndef SEQUENCE_H