32 Commits

Author SHA1 Message Date
kritz
38e966cea1 Add min, max, constrain function for Matrix (#105)
* Add min, max, constrain function for Matrix

* Set individual elements to nan in constrain

* Deal with NANs
2019-11-12 18:57:12 +01:00
Julian Kent
92d1c8761e
More features: longerThan, norm, copyTo and slice on a Slice (#97)
* Allow slices of slices, add longerThan to Vector/Slice
2019-10-03 13:47:36 +02:00
Matthias Grob
33a629105c Matrix: add proper print function testing
Before the print function was just implicitly called somewhere
and that's why we had 100% line coverage. With this we have actual
testing of the functions.
2019-09-18 09:59:50 +02:00
Matthias Grob
1e80807e8e test: Add uncovered equality checks with NAN and INFINITE 2019-09-18 09:59:50 +02:00
Julian Kent
51d2f9f0dc Remove direct access to internal data 2019-09-16 21:58:32 -04:00
Martina Rivizzigno
cc084e0791 matrix: add method to check all values are nan (#82) 2019-08-26 19:27:58 +02:00
TSC21
ec436d5aee define FLT_EPSILON; be descriptive about upper_right_triangle() method 2019-02-24 17:14:05 +00:00
TSC21
7355a29a2a tests: use __FLT_EPSILON__ in comparisons 2019-02-24 17:14:05 +00:00
TSC21
210c76c04b add test to setNaN() 2019-02-24 17:14:05 +00:00
Daniel Agar
f1bee775a0 use default constructors and skip unnecessary initialization 2018-08-31 08:11:02 +02:00
Pavel Kirienko
e09cf12e2e Removed all uses of C library from tests 2017-03-17 12:18:39 -04:00
Daniel Agar
cfa68c2196 clang-tidy trivial cleanup 2017-02-24 20:47:41 -05:00
James Goppert
63aea23f9e Add cholesky decomp, Closes #30, and dynamic print buf 2017-02-03 17:54:16 -05:00
James Goppert
4653626d92 Format. 2016-08-16 19:04:23 -04:00
James Goppert
0eb8aa0c0b Support more of mathlib function for easier swap in px4. 2016-08-16 19:03:54 -04:00
James Goppert
4f13809420 Added axis angle accessors, removed == operator. 2016-08-16 11:05:01 -04:00
James Goppert
0f41af271a Added axis angle attitude representation. (#25) 2016-07-05 20:59:42 -04:00
James Goppert
155202f6b0 Found a few coverage gaps with local coverage testing. 2016-05-09 11:49:45 -04:00
MaEtUgR
b2eb4d13d8 Matrix.setCol off by one bug fixed
The Column Vector you are copying from, only has one Column and it is indexed by 0 not 1.
I also completed the unit test stub that would have found this bug.
2016-05-05 13:18:51 +02:00
James Goppert
0e14e11183 Added support for attitude_estimator_q functions. 2016-03-15 06:35:13 -04:00
James Goppert
2d27cd79d3 Added scalar to matrix conversion. 2016-02-26 05:56:21 -05:00
James Goppert
38211e1aff Fix testing mechanism. 2016-01-23 23:26:26 -05:00
jgoppert
42f2e60b24 Added runge kutta integration. 2015-11-11 23:31:43 -05:00
jgoppert
1fb0f33eb4 Removed old references to matrix.hpp. 2015-11-07 11:08:17 -05:00
jgoppert
c70994e6a5 Formatting. 2015-11-05 18:10:06 -05:00
jgoppert
4a6369cee5 More coverage testing. 2015-11-05 18:07:05 -05:00
jgoppert
550108cf1d More testing. 2015-11-05 17:29:57 -05:00
jgoppert
537c683d58 More cleanup. 2015-11-05 12:34:14 -05:00
jgoppert
18f80462b7 Got coverage working for templates. 2015-11-04 12:11:32 -05:00
jgoppert
49035ed6a9 Added mode lines for vi. 2015-11-03 20:26:42 -05:00
jgoppert
a36ff9f1e5 Formatting and added Scalar. 2015-11-03 19:38:31 -05:00
jgoppert
76e86cf937 Initial commit. 2015-11-03 14:46:54 -05:00