diff options
author | Jasper | 2025-09-01 20:12:18 +0200 |
---|---|---|
committer | Jasper | 2025-09-01 20:12:18 +0200 |
commit | e4d20a643de1e1e404b74a8b13b76ba62125369d (patch) | |
tree | 7b4efbb3aa616cdb893a7ffb708829795b66f1f2 /matrix.h | |
parent | bc4215edfd34590c8078b3bb459005807d36c5cf (diff) |
Swap order of arguments for matrix_scale()
Diffstat (limited to 'matrix.h')
-rw-r--r-- | matrix.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -42,7 +42,7 @@ void matrix_swap1(Matrix *mat, MatrixSwapType t, size_t i, size_t j); double matrix_trace(const Matrix *mat); Matrix *matrix_transpose(const Matrix *mat); Matrix *matrix_add(const Matrix *A, const Matrix *B); -Matrix *matrix_scale(double x, const Matrix *A); +Matrix *matrix_scale(const Matrix *A, double x); Matrix *matrix_sub(const Matrix *A, const Matrix *B); Matrix *matrix_mult(const Matrix *A, const Matrix *B); Matrix *matrix_rand(size_t m, size_t n, int bound_l, int bound_u, MatrixType type); |