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
//! Module with types and traits for [`nalgebra_linsys`]
use Matrix;
/// The type representing a [linear system], i.e. a system of simultaneous linear equations
///
/// # Example
///
/// ```
/// use nalgebra::{matrix, Const};
/// use nalgebra_latex::{
/// lin_sys::{
/// LinSys,
/// unknowns::SingleLetterBoldfaceVecOfUnknowns,
/// numbering::Numbering,
/// fmt::CasesLinSysFormatter,
/// },
/// fmt::LatexFormatter,
/// };
///
/// let mut s = String::new();
/// let m = matrix!(
/// 1,2,3;
/// 4,5,6;
/// 7,8,9;
/// );
/// let vec_of_unknowns = SingleLetterBoldfaceVecOfUnknowns::<_,{Numbering::OneBased}>::new('x', Const::<3>);
/// let ls = LinSys::new(m, vec_of_unknowns);
/// CasesLinSysFormatter::write_latex(&mut s, &ls).unwrap();
/// assert_eq!(s, r"\begin{cases}$1x_{1}+2x_{2}+3x_{3}$\\$4x_{1}+5x_{2}+6x_{3}$\\$7x_{1}+8x_{2}+9x_{3}$\end{cases}");
/// ```
///
/// [linear system]: https://en.wikipedia.org/wiki/System_of_linear_equations