@@ -147,8 +147,8 @@ bvec lte_pn(
147
147
}
148
148
149
149
// Instantiate the static members
150
- vector <cvec> PSS_fd::table (3 );
151
- vector <cvec> PSS_td::table (3 );
150
+ // vector <cvec> PSS_fd::table(3);
151
+ // vector <cvec> PSS_td::table(3);
152
152
153
153
// PSS
154
154
// Return the PSS in the frequency domain.
@@ -162,6 +162,7 @@ cvec pss_fd_calc(const uint8 & t) {
162
162
163
163
// Initialize table
164
164
PSS_fd::PSS_fd (void ) {
165
+ table.resize (3 );
165
166
for (uint8 t=0 ;t<3 ;t++) {
166
167
table[t]=pss_fd_calc (t);
167
168
}
@@ -177,6 +178,7 @@ PSS_td::PSS_td(void) {
177
178
cvec fd;
178
179
cvec td;
179
180
cvec idft_in;
181
+ table.resize (3 );
180
182
for (uint8 t=0 ;t<3 ;t++) {
181
183
fd=pss_fd_calc (t);
182
184
idft_in=concat (zeros_c (1 ),fd (31 ,61 ),zeros_c (65 ),fd (0 ,30 ));
@@ -191,7 +193,7 @@ const cvec & PSS_td::operator[](const uint8 & idx) const {
191
193
}
192
194
193
195
// Instantiate the static members
194
- vector < vector < vector <ivec> > > SSS_fd::table;
196
+ // vector < vector < vector <ivec> > > SSS_fd::table;
195
197
196
198
// Calculate the SSS in the frequency domain.
197
199
ivec sss_fd_calc (
@@ -549,7 +551,7 @@ bvec lte_conv_decode(
549
551
}
550
552
551
553
// Instantiate static member
552
- Array <cvec> Mod_map::table (3 );
554
+ // Array <cvec> Mod_map::table(3);
553
555
554
556
// Constructor
555
557
// This was implemented as a class so that the (slow) initialization only
@@ -561,6 +563,7 @@ Mod_map::Mod_map(void) {
561
563
ivec map_qam16_imag (" 1 3 1 3 -1 -3 -1 -3 1 3 1 3 -1 -3 -1 -3" );
562
564
ivec map_qam64_real (" 3 3 1 1 3 3 1 1 5 5 7 7 5 5 7 7 3 3 1 1 3 3 1 1 5 5 7 7 5 5 7 7 -3 -3 -1 -1 -3 -3 -1 -1 -5 -5 -7 -7 -5 -5 -7 -7 -3 -3 -1 -1 -3 -3 -1 -1 -5 -5 -7 -7 -5 -5 -7 -7" );
563
565
ivec map_qam64_imag (" 3 1 3 1 5 7 5 7 3 1 3 1 5 7 5 7 -3 -1 -3 -1 -5 -7 -5 -7 -3 -1 -3 -1 -5 -7 -5 -7 3 1 3 1 5 7 5 7 3 1 3 1 5 7 5 7 -3 -1 -3 -1 -5 -7 -5 -7 -3 -1 -3 -1 -5 -7 -5 -7" );
566
+ table.set_size (3 );
564
567
table (0 )=to_cvec (map_qam_real,map_qam_imag)/sqrt (2 );
565
568
table (1 )=to_cvec (map_qam16_real,map_qam16_imag)/sqrt (10 );
566
569
table (2 )=to_cvec (map_qam64_real,map_qam64_imag)/sqrt (42 );
0 commit comments