You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.org
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -535,8 +535,7 @@ Compiling the last form should emit a compiler note such as the following:
535
535
; could not be determined
536
536
#+end_src
537
537
538
-
If you are using SLIME, you should also see the =(mean array-like)= form underlined to indicate that it was this form that emitted this compiler note. This should also be evident from the compiler note emitted above. This compiler note says that the type of =array-like= could not be derived.
539
-
Let us try supplying a more specific argument.
538
+
If you are using SLIME, you should also see the =(mean array-like)= form underlined to indicate that it was this form that emitted this compiler note. This should also be evident from the compiler note emitted above. This compiler note says that the type of =array-like= could not be derived. Let us try supplying a more specific argument.
540
539
541
540
#+begin_src lisp
542
541
(defun single-float-mean (array)
@@ -591,7 +590,7 @@ For a single-float array of size 1000x1000, this made no performance difference.
591
590
592
591
Here, for arrays of size 100, this results in a performance difference of about 4 times! If or not this is relevant depends on your use case.
593
592
594
-
^: =numericals:mean= actually uses peltadot instead of polymorphic-functions, but the concepts are similar.
593
+
^: =numericals:mean= actually uses peltadot instead of polymorphic-functions, but the concepts are similar. Improving the compiler notes for these cases is still a work in progress. So, expect rough edges!
595
594
596
595
^^: =BMAS_ssum= uses SIMD under the hood. Because it is a C function, you can use it wherever you can use CFFI!
0 commit comments