pathfinder-for-autonomous-navigation / psim

Six DOF flight simulator and related GNC implementations.
MIT License
4 stars 6 forks source link

Update the lin Library Submodule #174

Closed kylekrol closed 4 years ago

kylekrol commented 4 years ago

Update the lin Library Submodule

Sorry to do this twice in one day; I was on a roll.

Summary of changes

Essentially, I've added element wise operations for these operators: ==, <, <=, >, >=, !=, !, &&, etc. In addition many functions from cmath can be used on tensor objects like the following: lin::sin, lin::cos, lin::tan, lin::acos, lin::asin, lin::atan, lin::atan2, lin::isfinite, ... (see lin/math/operations.hpp for the full list).

Most useful out of this will be better nan checking. We can now do something like this:

#include <lin/core.hpp>
#include <lin/math.hpp>
#include <lin/queries.hpp>

lin::Vector4d a = { ... };
if (!lin::all(lin::isfinite(a))) { ... }

Ptest Effects

NA

Testing

Existing unit tests should be sufficient.

Constants

NA

Documentation Evidence

Same as the last PR.