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
| (require '[criterium.core :as c]) | |
| (defprotocol W (w [this x y])) | |
| (def w1 (reify W (w [t x y] (* x y)))) | |
| (c/quick-bench (w w1 4 4)) | |
| ; protocol dispatch | |
| ; Execution time mean : 6.625560 ns |
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
| (require '[clojure.core.matrix :as m]) | |
| (defn mup [mat rs cs f] | |
| (m/set-selection mat rs cs | |
| (f (m/select mat rs cs)))) | |
| (defn qr | |
| " | |
| QR decomposition by Householder reflection | |
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
| (ns hendekagon.docker | |
| " | |
| Docker admin | |
| adapted from | |
| https://github.com/lispyclouds/contajners/blob/main/doc/002-general-guidelines.md | |
| " | |
| (:require | |
| [clojure.string :as string] | |
| [clojure.java.io :as io] |
OlderNewer