|
template<typename DataT , typename DataOut > |
DataOut | Cast (const DataT &val) |
| Converts a value of type DataT to type DataOut.
|
|
template<> |
float | Cast (const fvec &val) |
| Converts a value of type DataT to type DataOut.
|
|
template<> |
double | Cast (const fvec &val) |
| Converts a value of type DataT to type DataOut.
|
|
template<typename DataT , typename DataOut > |
DataOut | Cast (const DataT &val, size_t) |
| Converts a value of type DataT at a specific index to type DataOut.
|
|
template<typename DataT , typename DataOut , size_t N> |
std::array< DataOut, N > | Cast (const std::array< DataT, N > &arr, size_t i) |
|
template<typename DataT , typename DataOut , size_t N> |
std::array< DataOut, N > | Cast (const std::array< DataT, N > &arr) |
|
template<> |
float | Cast (const fvec &val, size_t i) |
| Converts a value of type DataT at a specific index to type DataOut.
|
|
template<> |
double | Cast (const fvec &val, size_t i) |
| Converts a value of type DataT at a specific index to type DataOut.
|
|
template<typename DataT > |
size_t | Size () |
| Returns the number of elements available for a given data type.
|
|
template<> |
size_t | Size< fvec > () |
| Returns the number of elements available for a given data type.
|
|
template<typename DataT > |
DataT | One () |
| Returns a value of the data type set to one.
|
|
template<> |
fvec | One< fvec > () |
| Returns a value of the data type set to one.
|
|
template<typename DataT , typename DataIn > |
void | SetEntry (DataT &out, DataIn in, size_t) |
| Sets a value at a specific index in the output data.
|
|
template<typename DataIn > |
void | SetEntry (fvec &out, DataIn in, size_t i) |
| Sets a value at a specific index in the output data.
|
|
Namespace contains compile-time constants definition for SIMD operations in the CA tracking algorithm
template<typename DataT , typename DataOut >
DataOut cbm::algo::kf::utils::simd::Cast |
( |
const DataT & | val | ) |
|
|
inline |
template<typename DataT , typename DataOut >
DataOut cbm::algo::kf::utils::simd::Cast |
( |
const DataT & | val, |
|
|
size_t | ) |
|
inline |
Converts a value of type DataT at a specific index to type DataOut.
This function is a generic template that provides a flexible way for fvec/float/double conversions
- Template Parameters
-
DataT | Input value data type |
DataOut | Converted value data type |
- Parameters
-
val | Input value of type DataT to be converted |
i | The index indicating which element to convert, ignored for non-SIMD DataT |
- Returns
- Return val as DataOut
Definition at line 245 of file KfUtils.h.
template<typename DataT , typename DataIn >
void cbm::algo::kf::utils::simd::SetEntry |
( |
DataT & | out, |
|
|
DataIn | in, |
|
|
size_t | ) |
|
inline |
Sets a value at a specific index in the output data.
This function is a template that provides a default implementation for setting a value at a specific index in the output data
- Template Parameters
-
DataT | The data type of the output data |
DataIn | The data type of the input data |
- Parameters
-
out | Reference to the output data where the value is to be set |
in | The input data from which the value is obtained |
i | The index at which the value is set, ignored for non-SIMD DataT or if both DataT and DataIn are fvec |
Definition at line 338 of file KfUtils.h.