signals-cpp
Loading...
Searching...
No Matches
ScalarSignalSpec< T > Struct Template Reference

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

#include <Signal.h>

Public Types

using Type = T
 

Static Public Member Functions

static Type ZeroType ()
 Returns zero value for the scalar type.
 
static Type NansType ()
 Returns NaN value for the scalar type.
 
static T Norm (const Type &a)
 Compute the norm (absolute value) of a scalar.
 

Detailed Description

template<typename T>
struct ScalarSignalSpec< T >

Type specification for scalar-valued signals.

Template Parameters
TScalar type (e.g., double, float).

Member Typedef Documentation

◆ Type

template<typename T>
using ScalarSignalSpec< T >::Type = T

Member Function Documentation

◆ NansType()

template<typename T>
static Type ScalarSignalSpec< T >::NansType ( )
inlinestatic

Returns NaN value for the scalar type.

◆ Norm()

template<typename T>
static T ScalarSignalSpec< T >::Norm ( const Type & a)
inlinestatic

Compute the norm (absolute value) of a scalar.

Parameters
aThe scalar value.
Returns
The absolute value.

◆ ZeroType()

template<typename T>
static Type ScalarSignalSpec< T >::ZeroType ( )
inlinestatic

Returns zero value for the scalar type.


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