Skip to content

Commit 306c83c

Browse files
committed
Restrict types related to acos/asin.
Related to racket/typed-racket#1428.
1 parent f69552c commit 306c83c

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

math-lib/math/private/matrix/matrix-basic.rkt

+1-3
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,7 @@
312312
(define (matrix-cos-angle M N)
313313
(/ (matrix-dot M N) (* (matrix-2norm M) (matrix-2norm N))))
314314

315-
(: matrix-angle (case-> ((Matrix Flonum) (Matrix Flonum) -> Flonum)
316-
((Matrix Real) (Matrix Real) -> Real)
317-
((Matrix Float-Complex) (Matrix Float-Complex) -> Float-Complex)
315+
(: matrix-angle (case-> ((Matrix Float-Complex) (Matrix Float-Complex) -> Float-Complex)
318316
((Matrix Number) (Matrix Number) -> Number)))
319317
(define (matrix-angle M N)
320318
(acos (matrix-cos-angle M N)))

math-lib/math/private/matrix/matrix-operator-norm.rkt

+1-3
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,7 @@ See "How to Measure Errors" in the LAPACK manual for more details:
7979
;(matrix-min-singular-value (matrix* (matrix-hermitian M) R))
8080
(error 'unimplemented))
8181

82-
(: matrix-basis-angle (case-> ((Matrix Flonum) (Matrix Flonum) -> Flonum)
83-
((Matrix Real) (Matrix Real) -> Real)
84-
((Matrix Float-Complex) (Matrix Float-Complex) -> Float-Complex)
82+
(: matrix-basis-angle (case-> ((Matrix Float-Complex) (Matrix Float-Complex) -> Float-Complex)
8583
((Matrix Number) (Matrix Number) -> Number)))
8684
;; Returns the angle between the two subspaces spanned by the two given sets of column vectors
8785
(define (matrix-basis-angle M R)

0 commit comments

Comments
 (0)