From 28457dd99beb72c401a96474f3b5567e30f71a2f Mon Sep 17 00:00:00 2001 From: kradchen Date: Thu, 18 May 2023 17:16:50 +0800 Subject: [PATCH] Fix floor --- src/Function1D.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Function1D.cpp b/src/Function1D.cpp index ee5e2a7..9458452 100644 --- a/src/Function1D.cpp +++ b/src/Function1D.cpp @@ -204,7 +204,7 @@ Aurora::Matrix Aurora::round(const Aurora::Matrix &&matrix) { Aurora::Matrix Aurora::floor(const Aurora::Matrix &matrix) { auto output = malloc(matrix.getDataSize()); //for real part - vdRoundI(matrix.getDataSize(), matrix.getData(), SAME_STRIDE, output, SAME_STRIDE); + vdFloorI(matrix.getDataSize(), matrix.getData(), SAME_STRIDE, output, SAME_STRIDE); if (matrix.getValueType() == Complex) { //for imag part vdFloorI(matrix.getDataSize(), matrix.getData() + 1, SAME_STRIDE, output + 1, SAME_STRIDE); @@ -214,7 +214,7 @@ Aurora::Matrix Aurora::floor(const Aurora::Matrix &matrix) { Aurora::Matrix Aurora::floor(const Aurora::Matrix &&matrix) { //for real part - vdRoundI(matrix.getDataSize(), matrix.getData(), SAME_STRIDE, matrix.getData(), SAME_STRIDE); + vdFloorI(matrix.getDataSize(), matrix.getData(), SAME_STRIDE, matrix.getData(), SAME_STRIDE); if (matrix.getValueType() == Complex) { //for imag part vdFloorI(matrix.getDataSize(), matrix.getData() + 1, SAME_STRIDE, matrix.getData() + 1, SAME_STRIDE);