APM:Libraries
Functions | Variables
matrix_alg.cpp File Reference
#include <AP_HAL/AP_HAL.h>
#include <stdio.h>
#include <fenv.h>
#include <AP_Math/AP_Math.h>
Include dependency graph for matrix_alg.cpp:

Go to the source code of this file.

Functions

float * mat_mul (float *A, float *B, uint8_t n)
 
static void swap (float &a, float &b)
 
static void mat_pivot (float *A, float *pivot, uint8_t n)
 
static void mat_forward_sub (float *L, float *out, uint8_t n)
 
static void mat_back_sub (float *U, float *out, uint8_t n)
 
static void mat_LU_decompose (float *A, float *L, float *U, float *P, uint8_t n)
 
static bool mat_inverse (float *A, float *inv, uint8_t n)
 
bool inverse3x3 (float m[], float invOut[])
 
bool inverse4x4 (float m[], float invOut[])
 
bool inverse (float x[], float y[], uint16_t dim)
 

Variables

const AP_HAL::HALhal
 -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- More...
 

Function Documentation

◆ inverse()

bool inverse ( float  x[],
float  y[],
uint16_t  dim 
)

Definition at line 433 of file matrix_alg.cpp.

Referenced by Matrix3< float >::invert(), is_negative(), CompassCalibrator::run_ellipsoid_fit(), AccelCalibrator::run_fit(), CompassCalibrator::run_sphere_fit(), and test_matrix_inverse().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ inverse3x3()

bool inverse3x3 ( float  m[],
float  invOut[] 
)

Definition at line 243 of file matrix_alg.cpp.

Referenced by inverse(), and is_negative().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ inverse4x4()

bool inverse4x4 ( float  m[],
float  invOut[] 
)

Definition at line 282 of file matrix_alg.cpp.

Referenced by inverse(), and is_negative().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mat_back_sub()

static void mat_back_sub ( float *  U,
float *  out,
uint8_t  n 
)
static

Definition at line 128 of file matrix_alg.cpp.

Referenced by mat_inverse().

Here is the caller graph for this function:

◆ mat_forward_sub()

static void mat_forward_sub ( float *  L,
float *  out,
uint8_t  n 
)
static

Definition at line 106 of file matrix_alg.cpp.

Referenced by mat_inverse().

Here is the caller graph for this function:

◆ mat_inverse()

static bool mat_inverse ( float *  A,
float *  inv,
uint8_t  n 
)
static

Definition at line 191 of file matrix_alg.cpp.

Referenced by inverse().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mat_LU_decompose()

static void mat_LU_decompose ( float *  A,
float *  L,
float *  U,
float *  P,
uint8_t  n 
)
static

Definition at line 151 of file matrix_alg.cpp.

Referenced by mat_inverse().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mat_mul()

float* mat_mul ( float *  A,
float *  B,
uint8_t  n 
)

Definition at line 42 of file matrix_alg.cpp.

Referenced by is_negative(), mat_inverse(), mat_LU_decompose(), and test_matrix_inverse().

Here is the caller graph for this function:

◆ mat_pivot()

static void mat_pivot ( float *  A,
float *  pivot,
uint8_t  n 
)
static

Definition at line 74 of file matrix_alg.cpp.

Referenced by mat_LU_decompose().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ swap()

static void swap ( float &  a,
float &  b 
)
inlinestatic

Definition at line 57 of file matrix_alg.cpp.

Referenced by Linux::Thread::_poison_stack(), mat_pivot(), and AP_RSSI::scale_and_constrain_float_rssi().

Here is the caller graph for this function:

Variable Documentation

◆ hal

const AP_HAL::HAL& hal

-*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-

Definition at line 14 of file AC_PID_test.cpp.