SR-UKF 1.0
Square-Root Unscented Kalman Filter Library
Loading...
Searching...
No Matches
srukf_mat Struct Reference

Matrix structure. More...

#include <srukf.h>

Public Attributes

srukf_index n_cols
 
srukf_index n_rows
 
srukf_index inc_row
 
srukf_index inc_col
 
srukf_valuedata
 
srukf_mat_type type
 

Detailed Description

Matrix structure.

Represents a 2D matrix in column-major storage. The inc_row and inc_col fields allow representing submatrices and column views without copying data.

Memory layout (column-major): For a 3x2 matrix, elements are stored as:

data[0] = A(0,0) data[3] = A(0,1)
data[1] = A(1,0) data[4] = A(1,1)
data[2] = A(2,0) data[5] = A(2,1)
srukf_value * data
Definition srukf.h:280

Access element (i,j) as: data[i * inc_row + j * inc_col]

Definition at line 275 of file srukf.h.

Member Data Documentation

◆ data

◆ inc_col

srukf_index srukf_mat::inc_col

Column stride (typically n_rows for column-major)

Definition at line 279 of file srukf.h.

Referenced by srukf_mat_alloc(), and srukf_mat_column_view().

◆ inc_row

srukf_index srukf_mat::inc_row

Row stride (typically 1 for column-major)

Definition at line 278 of file srukf.h.

Referenced by srukf_mat_alloc(), and srukf_mat_column_view().

◆ n_cols

◆ n_rows

◆ type

srukf_mat_type srukf_mat::type

Type flags (see srukf_mat_type)

Definition at line 281 of file srukf.h.

Referenced by srukf_mat_alloc(), and srukf_mat_column_view().


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