Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 487ed7a

Browse files
elegioswmuth
authored andcommittedMar 15, 2025··
Spelling fix (#923)
* Make lambda lifting give more detailed information in its solutions * Add alternate lambda lift that allows capture of global variables * Spelling error in matIsSquare
1 parent dbbc61e commit 487ed7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/stdlib/ext/mat-ext.mc

+2-2
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ let matHasSameShape3 = lam a. lam b. lam c.
130130
and (matHasSameShape2 a b) (matHasSameShape2 b c)
131131

132132
-- Matrix is square.
133-
let matIsSqure = lam a. eqi a.m a.n
133+
let matIsSquare = lam a. eqi a.m a.n
134134

135135
external externalMatTranspose : Int -> Int -> ExtArr Float -> ExtArr Float -> ()
136136

@@ -471,7 +471,7 @@ external externalMatExp : Int -> Int -> ExtArr Float -> ExtArr Float
471471
-- .see https://ocaml.xyz/owl/owl/Owl_linalg/Generic/index.html#val-expm
472472
let matExp : Mat Float -> Either MatError (Mat Float) =
473473
lam a.
474-
if matIsSqure a then Right { a with arr = externalMatExp a.m a.n a.arr }
474+
if matIsSquare a then Right { a with arr = externalMatExp a.m a.n a.arr }
475475
else Left (NotSquare ())
476476

477477
let matExpExn : Mat Float -> Mat Float

0 commit comments

Comments
 (0)
Please sign in to comment.