Illustrated C/C++ source sheets, symbol index, API relationship graph, compiler console and debug trace

LIVE AI / FLEXIBLE SENSING / FLIGHT CONTEXT

Sensoraia API

Live AI and sensing, connected to the flight.
See, listen, inspect and return supported results while airborne.

Loading...
Searching...
No Matches
Aigen::Matrix Class Reference

aigenlib storage with the planner's signed dimensions and finite predicate. More...

#include <compat.hpp>

Inheritance diagram for Aigen::Matrix:
dipla::aigenlib::Matrix

Public Member Functions

 Matrix (dipla::aigenlib::Matrix value)
 Accept an owning kernel result.
int rows () const noexcept
 Signed row count.
int cols () const noexcept
 Signed column count.
int size () const noexcept
 Signed scalar count.
bool allFinite () const noexcept
 Test every scalar.
 Matrix ()=default
 Construct an empty matrix.
 Matrix (std::size_t rows, std::size_t columns, double value=0.0)
 Allocate initialized storage.
 Matrix (const Matrix &other)=default
 Deep copy.
 Matrix (Matrix &&other) noexcept
 Transfer storage.
Public Member Functions inherited from dipla::aigenlib::Matrix
 Matrix ()=default
 Construct an empty matrix.
 Matrix (std::size_t rows, std::size_t columns, double value=0.0)
 Allocate initialized storage.
 Matrix (const Matrix &other)=default
 Deep copy.
Matrix & operator= (const Matrix &other)
 Deep assignment with strong exception guarantee.
 Matrix (Matrix &&other) noexcept
 Transfer storage.
Matrix & operator= (Matrix &&other) noexcept
 Transfer storage.
std::size_t rows () const noexcept
 Row count.
std::size_t cols () const noexcept
 Column count.
std::size_t size () const noexcept
 Allocated scalar count.
double & operator() (std::size_t row, std::size_t column)
 Checked access.
double operator() (std::size_t row, std::size_t column) const
 Checked access.
double * row_data (std::size_t row)
 Borrow a row.
const double * row_data (std::size_t row) const
 Borrow a row.
bool finite () const noexcept
 Validate all stored scalars.
double trace () const
 Sum a square matrix's diagonal.

Static Public Member Functions

static Matrix Zero (std::size_t rows, std::size_t columns)
 Allocate zero storage.

Detailed Description

aigenlib storage with the planner's signed dimensions and finite predicate.

Public inheritance permits zero-copy calls into aigenlib kernels.

Constructor & Destructor Documentation

◆ Matrix() [1/5]

Aigen::Matrix::Matrix ( dipla::aigenlib::Matrix value)
inline

Accept an owning kernel result.

Parameters
valueMatrix storage.

◆ Matrix() [2/5]

Construct an empty matrix.

◆ Matrix() [3/5]

dipla::aigenlib::Matrix::Matrix ( std::size_t rows,
std::size_t columns,
double value = 0.0 )

Allocate initialized storage.

Parameters
rowsRow count.
columnsColumn count.
valueInitial scalar.

◆ Matrix() [4/5]

dipla::aigenlib::Matrix::Matrix ( const Matrix & other)
default

Deep copy.

Parameters
otherSource.

◆ Matrix() [5/5]

dipla::aigenlib::Matrix::Matrix ( Matrix && other)
noexcept

Transfer storage.

Parameters
otherSource, emptied afterwards.

Member Function Documentation

◆ allFinite()

bool Aigen::Matrix::allFinite ( ) const
inlinenoexcept

Test every scalar.

Returns
Whether finite.

◆ cols()

int Aigen::Matrix::cols ( ) const
inlinenoexcept

Signed column count.

Returns
Bounded columns.

◆ rows()

int Aigen::Matrix::rows ( ) const
inlinenoexcept

Signed row count.

Returns
Bounded rows.

◆ size()

int Aigen::Matrix::size ( ) const
inlinenoexcept

Signed scalar count.

Returns
Bounded scalar count.

◆ Zero()

Matrix Aigen::Matrix::Zero ( std::size_t rows,
std::size_t columns )
inlinestatic

Allocate zero storage.

Parameters
rowsRows.
columnsColumns.
Returns
Zero matrix.

The documentation for this class was generated from the following file: