Image Component Library (ICL)
Public Member Functions | Private Member Functions | Friends | List of all members
icl::geom::Posit::Result Struct Reference

result type (basically a 4x4 homogeneous transformation matrix) More...

#include <Posit.h>

Inheritance diagram for icl::geom::Posit::Result:
icl::math::FixedMatrix< icl32f, 4, 4 > icl::utils::FixedArray< icl32f, COLS *ROWS > icl::math::FixedMatrixBase

Public Member Functions

math::FixedColVector< float, 3 > getAngles () const
 extracts the objects euler angles from the internal matrix More...
 
math::FixedColVector< float, 3 > getTranslation () const
 extracts the objects translation vector (last column) form the internal matrix More...
 
- Public Member Functions inherited from icl::math::FixedMatrix< icl32f, 4, 4 >
DynMatrix< icl32fdyn ()
 creates a shallow copied DynMatrix instance wrapping this' data More...
 
const DynMatrix< icl32fdyn () const
 creates a shallow copied DynMatrix instance wrapping this' data (const) More...
 
 FixedMatrix ()
 Default constructor. More...
 
 FixedMatrix (const icl32f &initValue)
 Create Matrix and initialize elements with given value. More...
 
 FixedMatrix (const icl32f *srcdata)
 Create matrix with given data pointer (const version) More...
 
 FixedMatrix (const icl32f &v0, const icl32f &v1, const icl32f &v2=0, const icl32f &v3=0, const icl32f &v4=0, const icl32f &v5=0, const icl32f &v6=0, const icl32f &v7=0, const icl32f &v8=0, const icl32f &v9=0, const icl32f &v10=0, const icl32f &v11=0, const icl32f &v12=0, const icl32f &v13=0, const icl32f &v14=0, const icl32f &v15=0)
 Create matrix with given initializer elements (16 values max) More...
 
 FixedMatrix (OtherIterator begin, OtherIterator end)
 Range based constructor for STL compatiblitiy. More...
 
 FixedMatrix (const FixedMatrix &other)
 
 FixedMatrix (const FixedMatrix< otherT, COLS, ROWS > &other)
 
 FixedMatrix (const FixedMatrixPart< icl32f, DIM, Iterator > &r)
 Create matrix of a sub-part of another matrix (identical types) More...
 
 FixedMatrix (const FixedMatrixPart< otherT, DIM, Iterator > &r)
 Create matrix of a sub-part of another matrix (compatible types) More...
 
FixedMatrixoperator= (const FixedMatrix &other)
 Assignment operator (with compatible data type) (deep copy) More...
 
FixedMatrixoperator= (const FixedMatrix< otherT, COLS, ROWS > &other)
 Assignment operator (with compatible data type) (deep copy) More...
 
FixedMatrixoperator= (const icl32f &t)
 Assign all elements with given value. More...
 
FixedMatrixoperator= (const FixedMatrixPart< icl32f, DIM, Iterator > &r)
 Assign matrix elements with sup-part of another matrix (identical types) More...
 
FixedMatrixoperator= (const FixedMatrixPart< otherT, DIM, Iterator > &r)
 Assign matrix elements with sup-part of another matrix (compatible types) More...
 
FixedMatrix operator/ (const FixedMatrix &m) const
 Matrix devision. More...
 
FixedMatrix operator/ (icl32f f) const
 Divide all elements by a scalar. More...
 
FixedMatrixoperator/= (const FixedMatrix &m)
 Matrix devision (inplace) More...
 
FixedMatrixoperator/= (icl32f f)
 Divide all elements by a scalar. More...
 
FixedMatrix operator * (icl32f f) const
 Multiply all elements by a scalar. More...
 
FixedMatrix< icl32f, MCOLS, ROWS > operator * (const FixedMatrix< icl32f, MCOLS, COLS > &m) const
 Matrix multiplication (essential) More...
 
FixedMatrixoperator *= (icl32f f)
 moved outside the class Multiply all elements by a scalar (inplace) More...
 
FixedMatrix operator+ (const icl32f &t) const
 Add a scalar to each element. More...
 
FixedMatrix operator+ (const FixedMatrix &m) const
 Element-wise matrix addition. More...
 
FixedMatrixoperator+= (const icl32f &t)
 Add a scalar to each element (inplace) More...
 
FixedMatrixoperator+= (const FixedMatrix &m)
 Element-wise matrix addition (inplace) More...
 
FixedMatrix operator- (const icl32f &t) const
 Substract a scalar from each element. More...
 
FixedMatrix operator- (const FixedMatrix &m) const
 Element-wise matrix subtraction. More...
 
FixedMatrix operator- () const
 Prefix - operator. More...
 
FixedMatrixoperator-= (const icl32f &t)
 Substract a scalar from each element (inplace) More...
 
FixedMatrixoperator-= (const FixedMatrix &m)
 Element-wise matrix subtraction (inplace) More...
 
icl32foperator() (unsigned int col, unsigned int row)
 Element access operator. More...
 
const icl32foperator() (unsigned int col, unsigned int row) const
 Element access operator (const) More...
 
icl32fat (unsigned int col, unsigned int row)
 Element access index save (with exception if index is invalid) More...
 
const icl32fat (unsigned int col, unsigned int row) const
 Element access index save (with exception if index is invalid) (const) More...
 
icl32foperator[] (unsigned int idx)
 linear data view element access More...
 
const icl32foperator[] (unsigned int idx) const
 linear data view element access (const) More...
 
icl32fdata ()
 return internal data pointer More...
 
const icl32fdata () const
 return internal data pointer (const) More...
 
iterator begin ()
 returns an iterator to first element iterating over each element (row-major order) More...
 
const_iterator begin () const
 returns an iterator to first element iterating over each element (row-major order) (const) More...
 
iterator end ()
 returns an iterator after the last element More...
 
const_iterator end () const
 returns an iterator after the last element (const) More...
 
col_iterator col_begin (unsigned int col)
 returns an iterator iterating over a certain column More...
 
const_col_iterator col_begin (unsigned int col) const
 returns an iterator iterating over a certain column (const) More...
 
col_iterator col_end (unsigned int col)
 row end iterator More...
 
const_col_iterator col_end (unsigned int col) const
 row end iterator const More...
 
row_iterator row_begin (unsigned int row)
 returns an iterator iterating over a certain row More...
 
const_row_iterator row_begin (unsigned int row) const
 returns an iterator iterating over a certain row (const) More...
 
row_iterator row_end (unsigned int row)
 row end iterator More...
 
const_row_iterator row_end (unsigned int row) const
 row end iterator (const) More...
 
void mult (const FixedMatrix< icl32f, MCOLS, COLS > &m, FixedMatrix< icl32f, MCOLS, ROWS > &dst) const
 inplace matrix multiplication (dst = (*this)*m) More...
 
FixedMatrix inv () const
 invert the matrix (only implemented with IPP_OPTIMIZATION and only for icl32f and icl64f) More...
 
icl32f det () const
 calculate matrix determinant (only implemented with IPP_OPTIMIZATION and only for icl32f and icl64f) More...
 
FixedMatrix< icl32f, ROWS, COLS > transp () const
 returns matrix's transposed More...
 
icl32f element_wise_inner_product (const FixedMatrix< icl32f, OTHER_COLS, DIM/OTHER_COLS > &other) const
 inner product of data pointers (not matrix-mulitiplication) More...
 
FixedMatrix< icl32f, OTHER_COLS, COLS > dot (const FixedMatrix< icl32f, OTHER_COLS, ROWS > &M) const
 returns the inner product of two matrices (i.e. dot-product) More...
 
double cond (const double p=2) const
 computes the condition of a fixed matrix More...
 
icl32f trace () const
 computes the sum of all diagonal elements More...
 
FixedMatrixPart< icl32f, COLS, row_iteratorrow (unsigned int idx)
 returns a matrix row-reference iterator pair More...
 
FixedMatrixPart< icl32f, COLS, const_row_iteratorrow (unsigned int idx) const
 returns a matrix row-reference iterator pair (const) More...
 
FixedMatrixPart< icl32f, ROWS, col_iterator > col (unsigned int idx)
 returns a matrix col-reference iterator pair More...
 
FixedMatrixPart< icl32f, ROWS, const_col_iteratorcol (unsigned int idx) const
 returns a matrix col-reference iterator pair (const) More...
 
FixedMatrixPart< icl32f, WIDTH *HEIGHT, MatrixSubRectIterator< icl32f > > part ()
 extracts a rectangular matrix sub region More...
 
const FixedMatrixPart< icl32f, WIDTH *HEIGHT, MatrixSubRectIterator< icl32f > > part () const
 extracts a rectangular matrix sub region (const) More...
 
FixedMatrix< icl32f, NEW_WIDTH, NEW_HEIGHT > resize (const icl32f &init=icl32f(0)) const
 extends/shrinks matrix dimensions while preserving content on remaining elements (without scaling) More...
 
double length (icl32f norm=2) const
 Calculates the length of the matrix data vector. More...
 
void normalize (icl32f norm=2)
 inplace normalization More...
 
FixedMatrix< icl32f, COLS, ROWS > normalized (icl32f norm=2) const
 create a normalized version of this matrix More...
 
bool operator== (const FixedMatrix< otherT, COLS, ROWS > &m) const
 Element-wise comparison with other matrix. More...
 
bool operator!= (const FixedMatrix< otherT, COLS, ROWS > &m) const
 Element-wise comparison with other matrix. More...
 
FixedMatrix< icl32f, 1, ROWS > diag () const
 returns a vector of the diagonal elements (only for squared matrices) More...
 
void decompose_QR (FixedMatrix< icl32f, COLS, ROWS > &Q, FixedMatrix< icl32f, COLS, COLS > &R) const
 computes the QR decomposition of a matrix More...
 
void decompose_RQ (FixedMatrix< icl32f, ROWS, ROWS > &R, FixedMatrix< icl32f, ROWS, ROWS > &Q) const
 computes the RQ decomposition of a matrix More...
 
void svd (FixedMatrix< icl32f, COLS, ROWS > &U, FixedMatrix< icl32f, 1, COLS > &s, FixedMatrix< icl32f, COLS, COLS > &V) const
 computes Singular Value Decomposition of this Matrix A = U diag(s) V' More...
 
FixedMatrix< icl32f, ROWS, COLS > pinv (bool useSVD=0, float zeroThreshold=0.00000000000000001) const
 Computes the Matrix's pseudo-inverse. More...
 
void eigen (FixedMatrix &eigenvectors, FixedMatrix< icl32f, 1, COLS > &eigenvalues) const
 Extracts the matrix's eigenvalues and eigenvectors. More...
 
- Public Member Functions inherited from icl::utils::FixedArray< icl32f, COLS *ROWS >
icl32foperator[] (unsigned int idx)
 index access operator More...
 
const icl32foperator[] (unsigned int idx) const
 index access operator (const) More...
 

Private Member Functions

 Result ()
 private Konstructor More...
 
 Result (float r00, float r10, float r20, float tx, float r01, float r11, float r21, float ty, float r02, float r12, float r22, float tz)
 private Konstructor More...
 

Friends

struct Posit::Data
 

Additional Inherited Members

- Public Types inherited from icl::math::FixedMatrix< icl32f, 4, 4 >
typedef icl32fiterator
 iterator type More...
 
typedef const icl32fconst_iterator
 const iterator type More...
 
typedef icl32frow_iterator
 row_iterator More...
 
typedef const icl32fconst_row_iterator
 const row_iterator More...
 
typedef const col_iterator const_col_iterator
 
- Static Public Member Functions inherited from icl::math::FixedMatrix< icl32f, 4, 4 >
static const FixedMatrixnull ()
 returning a reference to a null matrix More...
 
static unsigned int rows ()
 compatibility-function returns template parameter ROWS More...
 
static unsigned int cols ()
 compatibility-function returns template parameter COLS More...
 
static unsigned int dim ()
 return static member variable DIM (COLS*ROWS) More...
 
static FixedMatrix< icl32f, ROWS, COLS > id ()
 create identity matrix More...
 
- Static Public Member Functions inherited from icl::math::FixedMatrixBase
template<class SrcIterator , class DstIterator , unsigned int N>
static void optimized_copy (SrcIterator srcBegin, SrcIterator srcEnd, DstIterator dstBegin)
 Optimized copy function template (for N>30 using std::copy, otherwise a simple loop is used) More...
 
- Public Attributes inherited from icl::utils::FixedArray< icl32f, COLS *ROWS >
icl32f m_data [DIM]
 
- Static Public Attributes inherited from icl::math::FixedMatrix< icl32f, 4, 4 >
static const unsigned int DIM
 count of matrix elements (COLS x ROWS) More...
 

Detailed Description

result type (basically a 4x4 homogeneous transformation matrix)

Constructor & Destructor Documentation

◆ Result() [1/2]

icl::geom::Posit::Result::Result ( )
inlineprivate

private Konstructor

◆ Result() [2/2]

icl::geom::Posit::Result::Result ( float  r00,
float  r10,
float  r20,
float  tx,
float  r01,
float  r11,
float  r21,
float  ty,
float  r02,
float  r12,
float  r22,
float  tz 
)
inlineprivate

private Konstructor

Member Function Documentation

◆ getAngles()

math::FixedColVector<float,3> icl::geom::Posit::Result::getAngles ( ) const

extracts the objects euler angles from the internal matrix

◆ getTranslation()

math::FixedColVector<float,3> icl::geom::Posit::Result::getTranslation ( ) const

extracts the objects translation vector (last column) form the internal matrix

Friends And Related Function Documentation

◆ Posit::Data

friend struct Posit::Data
friend

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