diff Notes.md @ 1110:c0bff9f6e0fb feature/lazy_tensors/pretty_printing

Add show(io,x) methods
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 23 May 2022 07:20:27 +0200
parents 396278072f18
children
line wrap: on
line diff
--- a/Notes.md	Thu May 12 22:24:51 2022 +0200
+++ b/Notes.md	Mon May 23 07:20:27 2022 +0200
@@ -71,6 +71,14 @@
 dictionary-structure containing stencils, tuples, scalars and other types
 ready for input to the methods creating the operators.
 
+## Pretty printing
+From the documentation of `show` it seems that the correct way to setup
+printing of instances is to let `show(x)` print valid julia code for creating
+the instance if possible. With a specified MIME type
+`show(::IO, ::MIME"text/plain", x)` should print a human readable, possible
+more verbose version. Compare to what the standard library does for regular
+vectors.
+
 ## Variable second derivative
 
 2020-12-08 after discussion with Vidar: