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);