Linear Algebra  arduino
Accessible implementations of linear algebra algorithms
MatrixStorage.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <vector>
4 
5 #ifdef MATRIX_COUNT_ALLOCATIONS
6 
7 #include "CountingAllocator.hpp"
8 
9 namespace util {
10 template <class T>
11 using storage_t = std::vector<T, CountingAllocator<T>>;
12 } // namespace util
13 
14 #else
15 
16 namespace util {
18 template <class T>
19 using storage_t = std::vector<T>;
20 } // namespace util
21 
22 #endif
std::vector< T > storage_t
Container to store the elements of a matrix internally.