diff --git a/mlpp/numerical_analysis/numerical_analysis.cpp b/mlpp/numerical_analysis/numerical_analysis.cpp index 8138d8d..192924e 100644 --- a/mlpp/numerical_analysis/numerical_analysis.cpp +++ b/mlpp/numerical_analysis/numerical_analysis.cpp @@ -224,8 +224,9 @@ Ref MLPPNumericalAnalysis::third_order_tensor(real_t (*function)(co for (int i = 0; i < tensor_size.z; i++) { // O(n^3) time complexity :( for (int j = 0; j < tensor_size.y; j++) { - for (int k = 0; k < tensor_size.x; k++) + for (int k = 0; k < tensor_size.x; k++) { tensor->element_set(i, j, k, num_diff_3v(function, x, i, j, k)); + } } }