File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ mutable struct Entry{ET}
10
10
Entry (dims... ; static = true ) = Entry {Float64} (dims... ; static = static)
11
11
end
12
12
13
+ function Base. show (io:: IO , mime:: MIME{Symbol("text/plain")} , entry:: Entry )
14
+ println (io, " Entry with value:" )
15
+ show (io, mime, entry. value)
16
+ end
17
+
18
+
13
19
function Base. zero (:: Entry{ET} ) where ET
14
20
dims = [ET. parameters[1 ]. parameters... ]
15
21
return Entry {ET.parameters[2]} (dims... )
Original file line number Diff line number Diff line change @@ -80,6 +80,11 @@ struct System{N}
80
80
System (A, dims; force_static = false ) = System {Float64} (A, dims; force_static = force_static)
81
81
end
82
82
83
+ function Base. show (io:: IO , mime:: MIME{Symbol("text/plain")} , system:: System{N} ) where {N}
84
+ println (io, " System with " * string (N)* " nodes." )
85
+ SparseArrays. _show_with_braille_patterns (io, system. matrix_entries)
86
+ end
87
+
83
88
84
89
@inline children (system, v) = outneighbors (system. dfs_graph, v)
85
90
@inline connections (system, v) = neighbors (system. graph, v)
You can’t perform that action at this time.
0 commit comments