Fix floor
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user