Commit Graph

209 Commits

Author SHA1 Message Date
Biljana Bojovic
b68ebc98a7 core: (fixes #866) Adjust testing of default ValArray move constructor and assignment 2023-03-09 14:33:54 -08:00
Biljana Bojovic
a811d8c593 core: (fixes #867) Remove noexcept from ValArray/MatrixArray move constructor/assignment 2023-03-09 14:33:48 -08:00
Stefano Avallone
86d90acc3f core: Fix bound callback type in callback test suite 2023-03-07 21:54:20 +00:00
Eduardo Almeida
ce82692a21 antenna, core: Fix coding style, formatting and typos 2023-03-07 17:56:19 +00:00
Biljana Bojovic
b7c3ba83fb core: Add MatrixArray and MatrixArrayTestSuite
MatrixArray class is introduced for efficient operations on arrays of matrices
core: Allow using GetPagePtr as public function of MatrixArray
core: Remove Eigen include from matrix-array.h
core: Fix MatrixArray Doxygen
core: Fix MatrixArrayTestSuite Doxygen
core: Make HermitianTranspose member of MatrixArray
fix matrix-array spell check
core: Improve constructor Doxygen description
core: Move out MatrixArray inline function implementation from the class declaration (Thanks to Peter Barnes)
Use auto in MatrixArrayTestCase to be consistent
2023-03-03 21:15:50 +01:00
Biljana Bojovic
abcee41e3d core: Add ValArray and ValArrayTestSuite
core: Improve operator<< implementation, to not represent all numbers with the real and the imaginary parts, instead
use the operator<< of each of the types (Thanks to Peter Barnes)
core: Improve operator<< to remove unnecessary "\t" and remove "std::endl" flush from each row of the matrix (Thanks to Peter Barnes)
core: Improve constructor that accepts std::vector and copies it into the std::valarray, use std::copy operator (Thanks to Peter Barnes)
core: Move out inline implementations from ValArray class outside from the class declaration (Thanks to Peter Barnes)
core: Move implementations from val-array.cc file into val-array.h file to have achieve truely template ValArray (Thanks to Peter Barnes)
core: Use stl library and std::equal for the operator == (Thanks to Peter Barnes)
core: Use stl library and std::equal and lambda expression in IsAlmostEqual (Thanks to Peter Barnes)
core: Use size_t for the index in the ValArray instead of uint16_t (Thanks to Peter Barnes)
Use auto in ValArrayTestCase to be more consistent
Improve Doxygen
Remove cast to (uint16_t)
core: Remove definition of ValArray for int, double, complex,they are not needed any more after moving all implementation to the header file
Remove accidentally added new lines in core/CMakeLists.
2023-03-03 21:15:26 +01:00
Gabriel Ferreira
6f076416e7 Fix typos 2023-02-21 22:29:29 -03:00
Peter D. Barnes, Jr
ce4026523a core: enable environment variable for Windows 2023-02-11 17:18:04 +00:00
Eduardo Almeida
971e5c15fa Fix clang-tidy readability-container-size-empty warnings 2023-02-02 17:41:31 +00:00
Peter Barnes
d547cf4a02 util: SplitString function to split a string on a delimiter 2023-01-06 02:00:19 +00:00
Peter D. Barnes, Jr
0951dbc128 core: cache parsing of environment variables 2023-01-05 15:49:31 -08:00
Eduardo Almeida
e3c5c9831a Remove unnecessary casts to double for hard-coded numbers 2022-12-07 17:40:15 +00:00
Eduardo Almeida
4e3a97e1fa core: Fix implicit bool conversion in attribute-test-suite.cc 2022-12-05 23:11:31 +00:00
Eduardo Almeida
4930479af4 Remove enum / struct specifiers when declaring the variable's type 2022-12-05 19:05:45 +00:00
Eduardo Almeida
b9562ba520 Fix formatting of braced-init-lists by adding trailing comma 2022-11-24 16:13:09 +00:00
Peter D. Barnes, Jr
0157675e40 core: command-line: char* buffers fixups 2022-10-29 05:42:54 +00:00
Eduardo Almeida
f8516626df core, config-store, stats: Fix clang-tidy modernize-use-override warnings 2022-10-28 21:47:54 +01:00
Eduardo Almeida
1884baab7d Fix clang-tidy modernize-use-nullptr errors 2022-10-28 21:47:54 +01:00
Eduardo Almeida
7c182618ed Fix clang-tidy readability-redundant-string-cstr warnings 2022-10-28 16:05:20 +00:00
Gabriel Ferreira
0d6916f431 core: fix leak in CommandLineCharStarTestCase 2022-10-26 16:39:23 -03:00
Peter D. Barnes, Jr
dd6579213c core: command-line: handle char* buffers
This is needed to interface with cppy
2022-10-25 23:17:55 -03:00
Peter D. Barnes, Jr
3ee7fde2c6 core: command-line: better test args 2022-10-26 00:04:43 +00:00
Peter D. Barnes, Jr
9174178cc2 core: refactor example to show initial and final as a table 2022-10-26 00:04:43 +00:00
Eduardo Almeida
bfb737a0d9 Remove unnecessary [[maybe_unused]] specifiers 2022-10-24 11:58:49 +00:00
Eduardo Almeida
b048f70912 Fix the [[maybe_unused]] specifier placement to always come after the variable name 2022-10-24 11:58:49 +00:00
Eduardo Almeida
95e95f8904 Fix clang-tidy warnings in brite, click, mpi, openflow, p2p, visualizer 2022-10-14 16:58:17 +00:00
Eduardo Almeida
dfc6fb9d2d Remove emacs comment from C++ files 2022-10-14 14:13:12 +00:00
Eduardo Almeida
453dd70612 core, internet, sixlowpan: Declare unused variables as [[maybe_unused]] 2022-10-14 13:51:50 +00:00
Gabriel Ferreira
19433392de core: rework RUNNING_ON_VALGRIND to support Windows in int64x64 tests 2022-10-10 20:09:59 -03:00
Eduardo Almeida
e25ff966fe Apply clang-format to codebase 2022-10-07 20:08:35 +00:00
Eduardo Almeida
ebb596910c Fix remaining clang-tidy warnings 2022-10-07 11:48:11 +00:00
Eduardo Almeida
1b78ecc117 Fix clang-tidy readability-braces-around-statements warnings 2022-10-07 11:48:11 +00:00
Eduardo Almeida
f87b53bbc5 Fix clang-tidy modernize-use-emplace warnings 2022-10-07 11:48:11 +00:00
Eduardo Almeida
4af0fe4b85 Fix clang-tidy modernize-use-nullptr warnings 2022-10-07 11:48:10 +00:00
Eduardo Almeida
be07b6487a Fix clang-tidy modernize-use-override warnings 2022-10-07 11:48:10 +00:00
Eduardo Almeida
6bb6383562 Fix clang-tidy modernize-redundant-void-arg warnings 2022-10-07 11:48:10 +00:00
Eduardo Almeida
b34e5426a5 Add clang-tidy guards 2022-10-06 21:12:15 +00:00
Eduardo Almeida
3e39cb0724 Fix formatting of some files before clang-format application 2022-10-06 20:41:07 +00:00
Eduardo Almeida
fcb90b1ef6 Add clang-format guards to protect code formatting 2022-10-06 20:38:36 +00:00
Eduardo Almeida
bdf80a8f85 Fix clang-tidy bugprone-too-small-loop-variable warnings (fixes #758) 2022-10-06 10:56:47 +00:00
Stefano Avallone
3e20515664 core: Use std::function to implement callbacks 2022-09-02 19:04:38 +00:00
Peter D. Barnes, Jr
e461e54d5a Update Ptr validity checks to new Ptr<>::operator bool 2022-08-18 08:59:30 -07:00
Tommaso Pecorella
5e551a2180 core: (fixes #416) remove librt checks 2022-08-05 01:42:12 +00:00
Tommaso Pecorella
1dfc512dba doc: fix doxygen warnings 2022-07-16 21:47:32 -05:00
Tom Henderson
b6a5ee8151 Run utils/trim-trailing-whitespace.py on codebase 2022-06-05 21:01:11 -07:00
Stefano Avallone
ceb714e175 core: Make all usual accessors available to AttributeContainerValue 2022-05-30 16:13:05 +00:00
Eduardo Almeida
201676fca7 Remove "using namespace std;" from codebase 2022-05-26 17:14:03 -07:00
Stefano Avallone
ca59097075 core: Use std::optional to return an optional value 2022-05-14 08:48:00 -07:00
Eduardo Almeida
85ad3961fc core: Replace SystemThread class with STL 2022-05-04 19:04:09 +01:00
Peter D. Barnes, Jr
5be17e1f21 core: (fixes #487) Refactor double to int64x64 conversion test for platforms with less than 64 bit mantissa 2022-04-03 12:12:32 -07:00