MATRIX: Correct error message.
authorBen Pfaff <blp@cs.stanford.edu>
Wed, 6 Apr 2022 14:56:38 +0000 (07:56 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Wed, 6 Apr 2022 14:58:26 +0000 (07:58 -0700)
Thanks to Friedrich Beckmann for reporting the mistake.

src/language/stats/matrix.c
tests/language/stats/matrix.at

index c1e4adff8e793a05664add867495b80574ec9184..0784e853826be9877f49bce6e53f91f673750443 100644 (file)
@@ -3383,7 +3383,7 @@ matrix_expr_evaluate_exp_mat (const struct matrix_expr *e,
   if (bf != floor (bf) || bf <= LONG_MIN || bf > LONG_MAX)
     {
       msg_at (SE, matrix_expr_location (e->subs[1]),
-              _("Exponent %.1f in matrix multiplication is non-integer "
+              _("Exponent %.1f in matrix exponentiation is non-integer "
                 "or outside the valid range."), bf);
       return NULL;
     }
index 67a6153bd5f19f0fc95931f3b1138852e1fc07f8..b0e62d0b1cc2cf4cf36e1e5e292f26e0f3a2e4c0 100644 (file)
@@ -1528,7 +1528,7 @@ scalar on the right-hand side, not a matrix with dimensions 1×2.
    18 | PRINT m**{1, 2}.
       |          ^~~~~~
 
-matrix.sps:19.10-19.12: error: MATRIX: Exponent 1.5 in matrix multiplication is
+matrix.sps:19.10-19.12: error: MATRIX: Exponent 1.5 in matrix exponentiation is
 non-integer or outside the valid range.
    19 | PRINT m**1.5.
       |          ^~~