summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/solver/nld_ms_w.h
diff options
context:
space:
mode:
author couriersud <couriersud@gmx.org>2019-09-28 21:45:59 +0200
committer couriersud <couriersud@gmx.org>2019-09-28 21:45:59 +0200
commit545ebe832d1f78ad9379922711e383fcb2fdeea4 (patch)
treed33abcf0c7afac1f18d81d3443c54833ef8572e0 /src/lib/netlist/solver/nld_ms_w.h
parent8e31f22bcd1e69b1b50bfdc3d615a98e61ac1c4b (diff)
netlist: more lint corrections. (nw)
- fixed lint corrections - added NOLINT where needed
Diffstat (limited to 'src/lib/netlist/solver/nld_ms_w.h')
-rw-r--r--src/lib/netlist/solver/nld_ms_w.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/lib/netlist/solver/nld_ms_w.h b/src/lib/netlist/solver/nld_ms_w.h
index a01fc239938..fea8f2c2a34 100644
--- a/src/lib/netlist/solver/nld_ms_w.h
+++ b/src/lib/netlist/solver/nld_ms_w.h
@@ -97,18 +97,20 @@ protected:
private:
+ template <typename T, std::size_t N, std::size_t M>
+ using array2D = std::array<std::array<T, M>, N>;
static constexpr std::size_t m_pitch = ((( storage_N) + 7) / 8) * 8;
- float_ext_type m_A[storage_N][m_pitch];
- float_ext_type m_Ainv[storage_N][m_pitch];
- float_ext_type m_W[storage_N][m_pitch];
+ array2D<float_ext_type, storage_N, m_pitch> m_A;
+ array2D<float_ext_type, storage_N, m_pitch> m_Ainv;
+ array2D<float_ext_type, storage_N, m_pitch> m_W;
std::array<float_ext_type, storage_N> m_RHS; // right hand side - contains currents
- float_ext_type m_lA[storage_N][m_pitch];
+ array2D<float_ext_type, storage_N, m_pitch> m_lA;
/* temporary */
- float_type H[storage_N][m_pitch] ;
+ array2D<float_ext_type, storage_N, m_pitch> H;
std::array<unsigned, storage_N> rows;
- unsigned cols[storage_N][m_pitch];
+ array2D<unsigned, storage_N, m_pitch> cols;
std::array<unsigned, storage_N> colcount;
unsigned m_cnt;