comnum-mimo 0.2.0

MIMO detection (linear, SIC, ML, sphere decoder, K-best, message passing), space-time block codes, precoding and capacity of comnum
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
//! Orthogonal space-time block codes (OSTBC).
//!
//! A block code sends $K$ symbols over $T$ channel uses from $n_{t}$ antennas: the
//! $T \times n_{t}$ codeword $X(s)$ is linear in the real and imaginary parts of the
//! symbols,
//!
//! $$
//! X(s) = c \sum_{k=1}^{K} \left(\Re(s_{k})\\, A_{k} + \Im(s_{k})\\, B_{k}\right),
//! $$
//!
//! with the dispersion matrices $A_{k} = X(e_{k})$ and $B_{k} = X(j e_{k})$ and the scale
//! $c$ that makes the average transmitted energy one per channel use (each antenna
//! sends $1/n_{t}$ of it on average). The code is *orthogonal* when
//! $X^{H} X \propto \lVert s \rVert^{2} I$: then, whatever the channel, the received block
//! $Y = H X^{T} + W$ ($n_{r} \times T$) decouples into one scalar channel per symbol, and
//! linear combining is maximum likelihood. Each estimate is
//! $\hat s_{k} = s_{k} + n_{k}$ with the noise variance
//! $\sigma^{2} / (c^{2} \lVert H \rVert_{F}^{2})$ for the codes of unit-norm columns, a
//! diversity of $n_{t} n_{r}$.
//!
//! | Code | $n_{t}$ | $T$ | $K$ | Rate |
//! |---|---|---|---|---|
//! | [`Ostbc::alamouti`] | 2 | 2 | 2 | 1 |
//! | [`Ostbc::rate_3_4`]`(3)` | 3 | 4 | 3 | 3/4 |
//! | [`Ostbc::rate_3_4`]`(4)` | 4 | 4 | 3 | 3/4 |
//!
//! The rows of a codeword are the channel uses, its columns the antennas:
//!
//! $$
//! X_{\mathrm{Alamouti}} = \begin{pmatrix} s_{1} & s_{2} \\\\ -s_{2}^{*} & s_{1}^{*} \end{pmatrix},
//! \qquad
//! X_{3/4} = \begin{pmatrix}
//!   s_{1} & s_{2} & s_{3} & 0 \\\\
//!   -s_{2}^{*} & s_{1}^{*} & 0 & s_{3} \\\\
//!   -s_{3}^{*} & 0 & s_{1}^{*} & -s_{2} \\\\
//!   0 & -s_{3}^{*} & s_{2}^{*} & s_{1}
//! \end{pmatrix}
//! $$
//!
//! (the three-antenna code keeps the first three columns).
//!
//! # Examples
//! ```
//! use comnum_mimo::detection::Estimates;
//! use comnum_mimo::stbc::Ostbc;
//! use comnum_math::C64;
//! use ndarray::array;
//! let code = Ostbc::alamouti();
//! let s = [C64::new(1.0, 1.0), C64::new(-1.0, 1.0)];
//! let x = code.encode(&s)?;                                  // 2 antennas × 2 uses
//! let h = array![[C64::new(0.8, -0.3), C64::new(-0.2, 1.1)]]; // one receive antenna
//! let Estimates { symbols: est, noise_var: var } = code.decode(&h.view(), &h.dot(&x).view(), 0.01)?;
//! assert!(est.iter().zip(&s).all(|(a, b)| (a - b).norm() < 1e-12));
//! // the noise variance of every estimate is σ²/(c² ‖H‖²), with c² = 1/2 for Alamouti
//! let h2: f64 = h.iter().map(|v| v.norm_sqr()).sum();
//! assert!((var[0] - 0.01 / (0.5 * h2)).abs() < 1e-15);
//! # Ok::<(), comnum_core::Error>(())
//! ```
//!
//! # References
//!
//! 1. S. M. Alamouti, "A simple transmit diversity technique for wireless
//!    communications," *IEEE J. Sel. Areas Commun.*, 16(8), 1998.
//! 2. V. Tarokh, H. Jafarkhani and A. R. Calderbank, "Space-time block codes from
//!    orthogonal designs," *IEEE Trans. Inf. Theory*, 45(5), 1999.
//! 3. O. Tirkkonen and A. Hottinen, "Square-matrix embeddable space-time block codes
//!    for complex signal constellations," *IEEE Trans. Inf. Theory*, 48(2), 2002.

use crate::detection::{Estimates, FLOOR};
use comnum_core::rng::Rng;
use comnum_core::signal::Symbols;
use comnum_core::traits::Precode;
use comnum_core::{Error, Result, ensure};
use comnum_math::C64;
use comnum_math::linalg::CMat;
use ndarray::{Array2, ArrayView2};

/// An orthogonal space-time block code.
#[derive(Clone, Debug, PartialEq)]
pub struct Ostbc {
    name: String,
    n_tx: usize,
    n_slots: usize,
    a: Vec<CMat>,
    b: Vec<CMat>,
    scale: f64,
}

impl Ostbc {
    /// The code whose codeword is `generator(s)` ($T \times n_{t}$, linear in the real
    /// and imaginary parts of the $K$ symbols).
    ///
    /// # Errors
    /// [`Error::Config`] if the generator does not return `n_slots × n_tx` matrices or
    /// the code is not orthogonal.
    pub fn from_generator(
        name: &str,
        n_tx: usize,
        n_slots: usize,
        n_symbols: usize,
        generator: impl Fn(&[C64]) -> CMat,
    ) -> Result<Ostbc> {
        ensure(n_tx >= 1 && n_slots >= 1 && n_symbols >= 1, || "empty code".into())?;
        let basis = |k: usize, v: C64| {
            let mut s = vec![C64::new(0.0, 0.0); n_symbols];
            s[k] = v;
            generator(&s)
        };
        let a: Vec<CMat> = (0..n_symbols).map(|k| basis(k, C64::new(1.0, 0.0))).collect();
        let b: Vec<CMat> = (0..n_symbols).map(|k| basis(k, C64::new(0.0, 1.0))).collect();
        ensure(a.iter().chain(&b).all(|m| m.dim() == (n_slots, n_tx)), || {
            format!("the codewords must be {n_slots}×{n_tx}")
        })?;
        let energy: f64 = a.iter().chain(&b).map(|m| m.iter().map(C64::norm_sqr).sum::<f64>()).sum::<f64>() / 2.0;
        ensure(energy > 0.0, || "the code sends nothing".into())?;
        let code = Ostbc { name: name.into(), n_tx, n_slots, a, b, scale: (n_slots as f64 / energy).sqrt() };
        // orthogonality: the real equivalent channel has orthogonal columns for any H
        let mut rng = Rng::new(0x0057_bc00);
        for _ in 0..3 {
            let h = Array2::from_shape_fn((2, n_tx), |_| rng.complex_gaussian());
            let cols = code.equivalent(&h.view());
            let norms: Vec<f64> = cols.iter().map(|u| u.iter().map(|x| x * x).sum()).collect();
            for i in 0..cols.len() {
                for j in 0..i {
                    let dot: f64 = cols[i].iter().zip(&cols[j]).map(|(x, y)| x * y).sum();
                    ensure(dot.abs() <= 1e-9 * (norms[i] * norms[j]).sqrt(), || {
                        format!("the code {name} is not orthogonal")
                    })?;
                }
            }
        }
        Ok(code)
    }

    /// Alamouti's code: two antennas, rate one.
    pub fn alamouti() -> Ostbc {
        Ostbc::from_generator("Alamouti", 2, 2, 2, |s| ndarray::array![[s[0], s[1]], [-s[1].conj(), s[0].conj()]])
            .unwrap_or_else(|_| unreachable!("Alamouti's code is orthogonal"))
    }

    /// The rate-3/4 code for three or four antennas (three symbols over four channel
    /// uses).
    ///
    /// # Errors
    /// [`Error::Config`] for another number of antennas.
    pub fn rate_3_4(n_tx: usize) -> Result<Ostbc> {
        ensure(n_tx == 3 || n_tx == 4, || format!("the rate-3/4 code has 3 or 4 antennas, not {n_tx}"))?;
        Ostbc::from_generator(&format!("rate 3/4, {n_tx} antennas"), n_tx, 4, 3, move |s| {
            let z = C64::new(0.0, 0.0);
            let full = ndarray::array![
                [s[0], s[1], s[2], z],
                [-s[1].conj(), s[0].conj(), z, s[2]],
                [-s[2].conj(), z, s[0].conj(), -s[1]],
                [z, -s[2].conj(), s[1].conj(), s[0]],
            ];
            full.slice_axis(ndarray::Axis(1), ndarray::Slice::from(0..n_tx)).to_owned()
        })
    }

    /// Name of the code.
    pub fn name(&self) -> &str {
        &self.name
    }

    /// Transmit antennas $n_{t}$.
    pub fn n_tx(&self) -> usize {
        self.n_tx
    }

    /// Channel uses per block $T$.
    pub fn n_slots(&self) -> usize {
        self.n_slots
    }

    /// Symbols per block $K$.
    pub fn n_symbols(&self) -> usize {
        self.a.len()
    }

    /// Symbols per channel use $K/T$.
    pub fn rate(&self) -> f64 {
        self.n_symbols() as f64 / self.n_slots as f64
    }

    /// The codeword of one block, $T \times n_{t}$.
    fn codeword(&self, s: &[C64]) -> CMat {
        let mut x = Array2::<C64>::zeros((self.n_slots, self.n_tx));
        for (k, sk) in s.iter().enumerate() {
            x = x + self.a[k].mapv(|v| v * sk.re * self.scale) + self.b[k].mapv(|v| v * sk.im * self.scale);
        }
        x
    }

    /// Encode symbols (a multiple of $K$) into the signal of the antennas,
    /// $n_{t} \times T \cdot$ blocks (antennas along the rows, channel uses along the
    /// columns).
    ///
    /// # Errors
    /// [`Error::Shape`] if the number of symbols is not a multiple of $K$.
    pub fn encode(&self, s: &[C64]) -> Result<CMat> {
        let k = self.n_symbols();
        if s.len() % k != 0 {
            return Err(Error::Shape(format!("{} symbols is not a multiple of {k} per block", s.len())));
        }
        let blocks = s.len() / k;
        let mut out = Array2::<C64>::zeros((self.n_tx, blocks * self.n_slots));
        for (b, chunk) in s.chunks(k).enumerate() {
            let x = self.codeword(chunk);
            for t in 0..self.n_slots {
                for a in 0..self.n_tx {
                    out[[a, b * self.n_slots + t]] = x[[t, a]];
                }
            }
        }
        Ok(out)
    }

    /// The columns of the real equivalent channel: $\mathrm{rv}(H A_{k}^{T})$ then
    /// $\mathrm{rv}(H B_{k}^{T})$, scaled ($\mathrm{rv}$ stacks real and imaginary parts).
    fn equivalent(&self, h: &ArrayView2<'_, C64>) -> Vec<Vec<f64>> {
        self.a
            .iter()
            .chain(&self.b)
            .map(|m| {
                let v = h.dot(&m.t());
                v.iter().map(|x| x.re * self.scale).chain(v.iter().map(|x| x.im * self.scale)).collect()
            })
            .collect()
    }

    /// Decode received blocks that share the channel `h` ($n_{r} \times n_{t}$): `y` is
    /// $n_{r} \times T \cdot$ blocks. Returns the estimate of every symbol and its noise
    /// variance (the receiver noise has the variance `noise_var` per antenna); the
    /// equivalent channel is computed once for all the blocks.
    ///
    /// # Errors
    /// [`Error::Shape`] for inconsistent dimensions, [`Error::Numerical`] for a zero
    /// channel.
    pub fn decode(&self, h: &ArrayView2<'_, C64>, y: &ArrayView2<'_, C64>, noise_var: f64) -> Result<Estimates> {
        if y.ncols() % self.n_slots != 0 {
            return Err(Error::Shape(format!("{} channel uses is not a multiple of {}", y.ncols(), self.n_slots)));
        }
        self.check_channel(h, y.nrows())?;
        let blocks = y.ncols() / self.n_slots;
        let cols = self.equivalent(h);
        let mut out = Estimates::default();
        for blk in 0..blocks {
            self.decode_block(&cols, y, blk, noise_var, &mut out)?;
        }
        Ok(out)
    }

    /// [`Ostbc::decode`] with one channel matrix per block.
    ///
    /// # Errors
    /// As [`Ostbc::decode`].
    pub fn decode_blocks(&self, hs: &[CMat], y: &ArrayView2<'_, C64>, noise_var: f64) -> Result<Estimates> {
        let t = self.n_slots;
        if y.ncols() != hs.len() * t {
            return Err(Error::Shape(format!("{} channel uses for {} blocks of {t}", y.ncols(), hs.len())));
        }
        let mut out = Estimates::default();
        for (blk, h) in hs.iter().enumerate() {
            self.check_channel(&h.view(), y.nrows())?;
            self.decode_block(&self.equivalent(&h.view()), y, blk, noise_var, &mut out)?;
        }
        Ok(out)
    }

    /// [`Error::Shape`] unless `h` is $n_{r} \times n_{t}$.
    fn check_channel(&self, h: &ArrayView2<'_, C64>, n_rx: usize) -> Result<()> {
        if h.dim() != (n_rx, self.n_tx) {
            return Err(Error::Shape(format!(
                "a {}×{} channel for {n_rx} receive and {} transmit antennas",
                h.nrows(),
                h.ncols(),
                self.n_tx
            )));
        }
        Ok(())
    }

    /// The estimates of block `blk` of `y` by the projections on the columns `cols` of
    /// its real equivalent channel, appended to `out`.
    fn decode_block(
        &self,
        cols: &[Vec<f64>],
        y: &ArrayView2<'_, C64>,
        blk: usize,
        noise_var: f64,
        out: &mut Estimates,
    ) -> Result<()> {
        let (t, k) = (self.n_slots, self.n_symbols());
        let block: Vec<C64> =
            (0..y.nrows()).flat_map(|r| (0..t).map(move |c| (r, c))).map(|(r, c)| y[[r, blk * t + c]]).collect();
        let yr: Vec<f64> = block.iter().map(|x| x.re).chain(block.iter().map(|x| x.im)).collect();
        let project = |u: &[f64]| -> Result<(f64, f64)> {
            let n2: f64 = u.iter().map(|x| x * x).sum();
            if n2.is_nan() || n2 <= FLOOR {
                return Err(Error::Numerical("zero channel".into()));
            }
            Ok((u.iter().zip(&yr).map(|(a, b)| a * b).sum::<f64>() / n2, n2))
        };
        for i in 0..k {
            let (re, nu) = project(&cols[i])?;
            let (im, nw) = project(&cols[k + i])?;
            out.symbols.push(C64::new(re, im));
            out.noise_var.push(noise_var / 2.0 * (1.0 / nu + 1.0 / nw));
        }
        Ok(())
    }
}

/// The code as a precoder: the first stream of `x` (a multiple of $K$ symbols) becomes
/// the $n_{t}$ streams of the antennas.
impl Precode for Ostbc {
    fn precode_into(&self, x: &Symbols, out: &mut Symbols) -> Result<()> {
        ensure(x.n_streams() == 1, || format!("a space-time code encodes one stream, not {}", x.n_streams()))?;
        out.assign(&self.encode(x.stream(0))?);
        Ok(())
    }
}

#[cfg(test)]
mod tests {
    use super::*;
    use comnum_math::linalg::gram;

    fn random_symbols(n: usize, rng: &mut Rng) -> Vec<C64> {
        (0..n).map(|_| rng.complex_gaussian()).collect()
    }

    #[test]
    fn codewords_are_orthogonal_with_unit_average_energy() {
        let mut rng = Rng::new(1);
        for code in [Ostbc::alamouti(), Ostbc::rate_3_4(3).unwrap(), Ostbc::rate_3_4(4).unwrap()] {
            let s = random_symbols(code.n_symbols(), &mut rng);
            let x = code.codeword(&s);
            let g = gram(&x.view());
            let e: f64 = s.iter().map(C64::norm_sqr).sum();
            for i in 0..code.n_tx() {
                for j in 0..code.n_tx() {
                    let want = if i == j { code.scale * code.scale * e } else { 0.0 };
                    assert!((g[[i, j]] - want).norm() < 1e-12, "{}", code.name());
                }
            }
            // E‖X‖²/T = 1 for unit-energy symbols
            let n = 20_000;
            let p: f64 = (0..n)
                .map(|_| {
                    code.codeword(&random_symbols(code.n_symbols(), &mut rng)).iter().map(C64::norm_sqr).sum::<f64>()
                })
                .sum::<f64>()
                / (f64::from(n) * code.n_slots() as f64);
            assert!((p - 1.0).abs() < 0.03, "{}: {p}", code.name());
        }
        assert!(Ostbc::rate_3_4(2).is_err());
        // a non-orthogonal design is rejected
        assert!(Ostbc::from_generator("bad", 2, 1, 2, |s| ndarray::array![[s[0], s[1]]]).is_err());
    }

    #[test]
    fn noiseless_decoding_recovers_the_symbols_over_any_channel() {
        let mut rng = Rng::new(2);
        for code in [Ostbc::alamouti(), Ostbc::rate_3_4(3).unwrap(), Ostbc::rate_3_4(4).unwrap()] {
            for nr in [1, 2, 3] {
                let s = random_symbols(code.n_symbols() * 5, &mut rng);
                let x = code.encode(&s).unwrap();
                let hs: Vec<CMat> =
                    (0..5).map(|_| Array2::from_shape_fn((nr, code.n_tx()), |_| rng.complex_gaussian())).collect();
                let t = code.n_slots();
                let mut y = Array2::<C64>::zeros((nr, x.ncols()));
                for (b, h) in hs.iter().enumerate() {
                    for c in 0..t {
                        y.column_mut(b * t + c).assign(&h.dot(&x.column(b * t + c)));
                    }
                }
                let Estimates { symbols: est, noise_var: var } = code.decode_blocks(&hs, &y.view(), 0.1).unwrap();
                assert!(est.iter().zip(&s).all(|(a, b)| (a - b).norm() < 1e-10), "{} nr={nr}", code.name());
                // the noise variance is σ²/(c² ‖H‖²) for every symbol of a block
                let h0: f64 = hs[0].iter().map(C64::norm_sqr).sum();
                assert!((var[0] - 0.1 / (code.scale * code.scale * h0)).abs() < 1e-12);
            }
        }
    }

    #[test]
    fn a_constant_channel_decodes_as_one_channel_per_block() {
        let mut rng = Rng::new(4);
        for code in [Ostbc::alamouti(), Ostbc::rate_3_4(4).unwrap()] {
            let h = Array2::from_shape_fn((3, code.n_tx()), |_| rng.complex_gaussian());
            let y = Array2::from_shape_fn((3, 6 * code.n_slots()), |_| rng.complex_gaussian());
            let once = code.decode(&h.view(), &y.view(), 0.2).unwrap();
            // the former decode: the channel cloned for every block
            let per_block = code.decode_blocks(&vec![h.clone(); 6], &y.view(), 0.2).unwrap();
            let bits = |e: &Estimates| -> Vec<u64> {
                e.symbols
                    .iter()
                    .flat_map(|z| [z.re.to_bits(), z.im.to_bits()])
                    .chain(e.noise_var.iter().map(|v| v.to_bits()))
                    .collect()
            };
            assert_eq!(bits(&once), bits(&per_block));
        }
    }

    #[test]
    fn alamouti_noise_matches_its_prediction() {
        let code = Ostbc::alamouti();
        let mut rng = Rng::new(3);
        let h = Array2::from_shape_fn((2, 2), |_| rng.complex_gaussian());
        let n = 20_000;
        let s = random_symbols(2 * n, &mut rng);
        let x = code.encode(&s).unwrap();
        let s2: f64 = 0.3;
        let y = h.dot(&x).mapv(|v| v + rng.complex_gaussian() * s2.sqrt());
        let Estimates { symbols: est, noise_var: var } = code.decode(&h.view(), &y.view(), s2).unwrap();
        let mse: f64 = est.iter().zip(&s).map(|(a, b)| (a - b).norm_sqr()).sum::<f64>() / s.len() as f64;
        assert!((mse / var[0] - 1.0).abs() < 0.03, "{mse} vs {}", var[0]);
    }
}

/// Checks against the published designs (`references/`).
#[cfg(test)]
mod literature {
    use super::*;
    use comnum_core::rng::Rng;

    /// V. Tarokh, H. Jafarkhani and A. R. Calderbank, "Space-time block codes from
    /// orthogonal designs," IEEE Trans. Inf. Theory 45(5), 1999, eqs. (39) and (40)
    /// (pp. 1464-1465, checked term by term against the paper): the rate-3/4 designs for
    /// three and four antennas, (39) being the first three columns of (40). The library's
    /// rate-3/4 code is another (sporadic) design; the paper's are accepted by the
    /// orthogonality check of `from_generator` and decoded exactly without noise.
    #[test]
    fn tarokh_1999_rate_3_4_designs_are_orthogonal() {
        let r2 = std::f64::consts::SQRT_2;
        let eq40 = |s: &[C64]| {
            let (x1, x2, x3) = (s[0], s[1], s[2]);
            let (c1, c2, c3) = (x1.conj(), x2.conj(), x3.conj());
            ndarray::array![
                [x1, x2, x3 / r2, x3 / r2],
                [-c2, c1, x3 / r2, -x3 / r2],
                [c3 / r2, c3 / r2, (-x1 - c1 + x2 - c2) / 2.0, (-x2 - c2 + x1 - c1) / 2.0],
                [c3 / r2, -c3 / r2, (x2 + c2 + x1 - c1) / 2.0, -(x1 + c1 + x2 - c2) / 2.0],
            ]
        };
        let eq39 = move |s: &[C64]| eq40(s).slice_axis(ndarray::Axis(1), ndarray::Slice::from(0..3)).to_owned();
        let mut rng = Rng::new(1999);
        for (n_tx, g) in [(4, Box::new(eq40) as Box<dyn Fn(&[C64]) -> CMat>), (3, Box::new(eq39))] {
            let code = Ostbc::from_generator("Tarokh 1999", n_tx, 4, 3, g).unwrap();
            assert!((code.rate() - 0.75).abs() < 1e-12);
            let s: Vec<C64> = (0..12).map(|_| rng.complex_gaussian()).collect();
            let x = code.encode(&s).unwrap();
            let h = Array2::from_shape_fn((2, n_tx), |_| rng.complex_gaussian());
            let y = h.dot(&x);
            let decoded = code.decode(&h.view(), &y.view(), 1e-12).unwrap().symbols;
            assert!(decoded.iter().zip(&s).all(|(a, b)| (a - b).norm() < 1e-9), "{n_tx} antennas");
        }
    }
}