From 6d998edadfa5b32331e7240d97e21ecf57d3167d Mon Sep 17 00:00:00 2001 From: Fredrik Johansson Date: Thu, 26 Sep 2024 11:36:15 +0200 Subject: [PATCH] oops --- src/fmpz_mat/mul_strassen.c | 2 +- src/gr_mat/mul_strassen.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fmpz_mat/mul_strassen.c b/src/fmpz_mat/mul_strassen.c index 030448fe0c..3a273df4d9 100644 --- a/src/fmpz_mat/mul_strassen.c +++ b/src/fmpz_mat/mul_strassen.c @@ -124,7 +124,7 @@ void fmpz_mat_mul_strassen(fmpz_mat_t C, const fmpz_mat_t A, const fmpz_mat_t B) { fmpz_mat_t Ar, Br, Cr; fmpz_mat_window_init(Ar, A, 2*anr, 0, a, b); - fmpz_mat_window_init(Cr, C, 2*anr, 0, a, c); + fmpz_mat_window_init(Cr, C, 2*anr, 0, a, 2*bnc); /* don't compute the overlapping entries twice */ if (c > 2 * bnc) diff --git a/src/gr_mat/mul_strassen.c b/src/gr_mat/mul_strassen.c index 9b0d0f59a1..6aaaef06c2 100644 --- a/src/gr_mat/mul_strassen.c +++ b/src/gr_mat/mul_strassen.c @@ -149,7 +149,7 @@ int gr_mat_mul_strassen(gr_mat_t C, const gr_mat_t A, const gr_mat_t B, gr_ctx_t { gr_mat_t Ar, Br, Cr; gr_mat_window_init(Ar, A, 2 * anr, 0, ar, ac, ctx); - gr_mat_window_init(Cr, C, 2 * anr, 0, ar, bc, ctx); + gr_mat_window_init(Cr, C, 2 * anr, 0, ar, 2 * bnc, ctx); /* don't compute the overlapping entries twice */ if (bc > 2 * bnc)