cleanup
Some checks failed
EIVE/eive-obsw/pipeline/pr-main There was a failure building this commit

This commit is contained in:
Marius Eggert 2024-01-26 15:36:01 +01:00
parent 2f296c3c8c
commit ec3523e5ad

View File

@ -4,15 +4,12 @@
#include <fsfw/src/fsfw/globalfunctions/constants.h> #include <fsfw/src/fsfw/globalfunctions/constants.h>
#include <fsfw/src/fsfw/globalfunctions/math/MatrixOperations.h> #include <fsfw/src/fsfw/globalfunctions/math/MatrixOperations.h>
#include <fsfw/src/fsfw/globalfunctions/sign.h> #include <fsfw/src/fsfw/globalfunctions/sign.h>
#include <stdint.h> #include <fsfw/src/fsfw/serviceinterface.h>
#include <string.h>
#include <sys/time.h>
#include <cmath> #include <cmath>
#include <cstring>
#include <iostream> #include <iostream>
#include "fsfw/serviceinterface.h"
template <typename T1, typename T2 = T1> template <typename T1, typename T2 = T1>
class MathOperations { class MathOperations {
public: public:
@ -46,7 +43,7 @@ class MathOperations {
static void selectionSort(const T1 *matrix, T1 *result, uint8_t rowSize, uint8_t colSize) { static void selectionSort(const T1 *matrix, T1 *result, uint8_t rowSize, uint8_t colSize) {
int min_idx; int min_idx;
T1 temp; T1 temp;
memcpy(result, matrix, rowSize * colSize * sizeof(*result)); std::memcpy(result, matrix, rowSize * colSize * sizeof(*result));
// One by one move boundary of unsorted subarray // One by one move boundary of unsorted subarray
for (int k = 0; k < rowSize; k++) { for (int k = 0; k < rowSize; k++) {
for (int i = 0; i < colSize - 1; i++) { for (int i = 0; i < colSize - 1; i++) {