-
Notifications
You must be signed in to change notification settings - Fork 15
/
bugs.lisp
41 lines (36 loc) · 1.03 KB
/
bugs.lisp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
`
(in-package :lisp-matrix-user)
(M* (ones 2 2 :implementation :foreign-array)
(ones 2 2 :implementation :foreign-array))
(element-type (ones 2 2 :implementation :foreign-array))
;; problem: it calls GEMM with FA-, FA-, and LA-....
#|
There is no applicable method for the generic function
#<STANDARD-GENERIC-FUNCTION GEMM (8)>
when called with arguments
(1.0d0
#<FA-SIMPLE-MATRIX-DOUBLE 2 x 2
1.0d0 1.0d0
1.0d0 1.0d0>
#<FA-SIMPLE-MATRIX-DOUBLE 2 x 2
1.0d0 1.0d0
1.0d0 1.0d0>
0.0d0
#<LA-SIMPLE-MATRIX-DOUBLE 2 x 2
0.0d0 0.0d0
0.0d0 0.0d0>).
[Condition of type SIMPLE-ERROR]
|#
(M* (ones 2 2 :implementation :lisp-array)
(ones 2 2 :implementation :lisp-array))
;; works
(M* (ones 2 2 :implementation :lisp-array)
(ones 2 2 :implementation :foriegn-array))
#|
There is no applicable method for the generic function
#<STANDARD-GENERIC-FUNCTION MAKE-MATRIX* (2)>
when called with arguments
(2 2 :FORIEGN-ARRAY :ELEMENT-TYPE DOUBLE-FLOAT
:INITIAL-ELEMENT 1.0d0).
[Condition of type SIMPLE-ERROR]
|#