-
-
Save liebke/96a1b26706acd55ea0e2 to your computer and use it in GitHub Desktop.
This file contains 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
;; PRINT METHOD FOR COLT MATRICES | |
(defmethod print-method Matrix [o, #^java.io.Writer w] | |
(let [formatter (DoubleFormatter. "%1.4f")] | |
(do | |
(.setPrintShape formatter false) | |
(.write w "[") | |
(.write w (.toString formatter o)) | |
(.write w "]\n")))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment