TR-mbed 1.0
Loading...
Searching...
No Matches
Typedefs | Functions | Variables
Tutorial_Map_using.cpp File Reference

Typedefs

typedef Matrix< float, 1, Dynamic > MatrixType
 
typedef Map< MatrixTypeMapType
 
typedef Map< const MatrixTypeMapTypeConst
 

Functions

MatrixType m1 (n_dims)
 
MatrixType m2 (n_dims)
 
m1 setRandom ()
 
MapType m2map (p, m2.size())
 
MapTypeConst m2mapconst (p, m2.size())
 

Variables

const int n_dims = 5
 
float * p = &m2(0)
 

Typedef Documentation

◆ MapType

typedef Map<MatrixType> MapType

◆ MapTypeConst

typedef Map<const MatrixType> MapTypeConst

◆ MatrixType

typedef Matrix<float,1,Dynamic> MatrixType

Function Documentation

◆ m1()

MatrixType m1 ( n_dims  )

◆ m2()

MatrixType m2 ( n_dims  )

◆ m2map()

MapType m2map ( p  ,
m2.  size() 
)

◆ m2mapconst()

MapTypeConst m2mapconst ( p  ,
m2.  size() 
)

◆ setRandom()

m1 setRandom ( )

Variable Documentation

◆ n_dims

const int n_dims = 5

◆ p

float* p = &m2(0)