PX4 Firmware
PX4 Autopilot Software http://px4.io
Matrix.hpp File Reference

A simple matrix template library. More...

#include <cstdio>
#include <cstring>
#include "math.hpp"
Include dependency graph for Matrix.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  matrix::Vector< Type, M >
 
class  matrix::Matrix< Type, M, N >
 
class  matrix::Slice< Type, P, Q, M, N >
 
class  matrix::Matrix< Type, M, N >
 

Namespaces

 matrix
 
 matrix::typeFunction
 

Macros

#define MATRIX_GCC_4_8_WORKAROUND   0
 

Functions

template<typename Type , size_t M, size_t N>
Matrix< Type, M, N > matrix::zeros ()
 
template<typename Type , size_t M, size_t N>
Matrix< Type, M, N > matrix::ones ()
 
template<size_t M, size_t N>
Matrix< float, M, N > matrix::nans ()
 
template<typename Type , size_t M, size_t N>
Matrix< Type, M, N > matrix::operator* (Type scalar, const Matrix< Type, M, N > &other)
 
template<typename Type , size_t M, size_t N>
bool matrix::isEqual (const Matrix< Type, M, N > &x, const Matrix< Type, M, N > &y, const Type eps=1e-4f)
 
template<typename Type >
Type matrix::typeFunction::min (const Type x, const Type y)
 
template<typename Type >
Type matrix::typeFunction::max (const Type x, const Type y)
 
template<typename Type >
Type matrix::typeFunction::constrain (const Type x, const Type lower_bound, const Type upper_bound)
 
template<typename Type , size_t M, size_t N>
Matrix< Type, M, N > matrix::min (const Matrix< Type, M, N > &x, const Type scalar_upper_bound)
 
template<typename Type , size_t M, size_t N>
Matrix< Type, M, N > matrix::min (const Type scalar_upper_bound, const Matrix< Type, M, N > &x)
 
template<typename Type , size_t M, size_t N>
Matrix< Type, M, N > matrix::min (const Matrix< Type, M, N > &x1, const Matrix< Type, M, N > &x2)
 
template<typename Type , size_t M, size_t N>
Matrix< Type, M, N > matrix::max (const Matrix< Type, M, N > &x, const Type scalar_lower_bound)
 
template<typename Type , size_t M, size_t N>
Matrix< Type, M, N > matrix::max (const Type scalar_lower_bound, const Matrix< Type, M, N > &x)
 
template<typename Type , size_t M, size_t N>
Matrix< Type, M, N > matrix::max (const Matrix< Type, M, N > &x1, const Matrix< Type, M, N > &x2)
 
template<typename Type , size_t M, size_t N>
Matrix< Type, M, N > matrix::constrain (const Matrix< Type, M, N > &x, const Type scalar_lower_bound, const Type scalar_upper_bound)
 
template<typename Type , size_t M, size_t N>
Matrix< Type, M, N > matrix::constrain (const Matrix< Type, M, N > &x, const Matrix< Type, M, N > &x_lower_bound, const Matrix< Type, M, N > &x_upper_bound)
 

Detailed Description

A simple matrix template library.

Author
James Goppert james.nosp@m..gop.nosp@m.pert@.nosp@m.gmai.nosp@m.l.com

Definition in file Matrix.hpp.

Macro Definition Documentation

◆ MATRIX_GCC_4_8_WORKAROUND

#define MATRIX_GCC_4_8_WORKAROUND   0

Definition at line 26 of file Matrix.hpp.