Expand Globalfunctions #168

Merged
meggert merged 8 commits from expand-globalfunctions into develop 2024-02-27 12:50:30 +01:00
2 changed files with 4 additions and 2 deletions
Showing only changes of commit a3a6c0720c - Show all commits

View File

@ -1,9 +1,11 @@
#ifndef MATRIXOPERATIONS_H_
#define MATRIXOPERATIONS_H_
#include <fsfw/retval.h>
#include <stdint.h>
#include <cmath>
#include <cstring>
#include <utility>
template <typename T1, typename T2 = T1, typename T3 = T2>
@ -100,7 +102,7 @@ class MatrixOperations {
static bool isFinite(const T1 *inputMatrix, uint8_t rows, uint8_t cols) {
for (uint8_t col = 0; col < cols; col++) {
for (uint8_t row = 0; row < rows; row++) {
if (not isfinite(inputMatrix[row * cols + cols])) {
if (not std::isfinite(inputMatrix[row * cols + cols])) {
return false;
}
}

View File

@ -101,7 +101,7 @@ class VectorOperations {
static bool isFinite(const T *inputVector, uint8_t size) {
for (uint8_t i = 0; i < size; i++) {
if (not isfinite(inputVector[i])) {
if (not std::isfinite(inputVector[i])) {
return false;
}
}