signals-cpp
Loading...
Searching...
No Matches
VectorSignalSpec< T, d > Struct Template Reference

Type specification for vector-valued signals. More...

#include <Signal.h>

Public Types

using Type = Matrix<T, d, 1>
 

Static Public Member Functions

static Type ZeroType ()
 Returns zero vector.
 
static Type NansType ()
 Returns vector filled with NaN values.
 
static T Norm (const Type &a)
 Compute the Euclidean norm of a vector.
 

Detailed Description

template<typename T, size_t d>
struct VectorSignalSpec< T, d >

Type specification for vector-valued signals.

Template Parameters
TScalar element type (e.g., double, float).
dDimension of the vector.

Member Typedef Documentation

◆ Type

template<typename T, size_t d>
using VectorSignalSpec< T, d >::Type = Matrix<T, d, 1>

Member Function Documentation

◆ NansType()

template<typename T, size_t d>
static Type VectorSignalSpec< T, d >::NansType ( )
inlinestatic

Returns vector filled with NaN values.

◆ Norm()

template<typename T, size_t d>
static T VectorSignalSpec< T, d >::Norm ( const Type & a)
inlinestatic

Compute the Euclidean norm of a vector.

Parameters
aThe vector.
Returns
The Euclidean norm.

◆ ZeroType()

template<typename T, size_t d>
static Type VectorSignalSpec< T, d >::ZeroType ( )
inlinestatic

Returns zero vector.


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