This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ql:quickload :petalisp.examples) | |
(use-package '(:petalisp :petalisp.examples.linear-algebra)) | |
;; we use this internal function in our hack over transpose and matmul. | |
(import 'petalisp.examples.linear-algebra::coerce-to-matrix) | |
(declaim (optimize (speed 3) (safety 1) (debug 3))) | |
;; i use these modified function definitions to produce the ranges | |
;; [0, n - 1] instead of [1, n], which makes handling them aside already | |
;; computed arrays much easier. | |
(defun transpose (x) |