Skip to content

Commit 014f257

Browse files
authored
Merge pull request #22 from DilumAluthge/patch-1
[docs] Small tweaks to the "Memory Required for Large Matrices" docs page
2 parents ada38ef + 69199d7 commit 014f257

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docs/src/memory-required.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ These tables show how much memory is required for four matrices of the given siz
141141
## Generating These Tables
142142

143143
```julia
144-
mem_req(s, T) = 4s^2*sizeof(T) / (1 << 30)
144+
mem_req(s, ::Type{T}) where {T} = 4s^2*sizeof(T) / (1 << 30)
145145

146146
function print_table(::Type{T}, Ns = nothing) where {T}
147147
println("| Matrix Size | Memory |")
@@ -159,3 +159,10 @@ function print_table(::Type{T}, Ns = nothing) where {T}
159159
return nothing
160160
end
161161
```
162+
163+
```julia
164+
julia> print_table(Float64)
165+
julia> print_table(Float32)
166+
julia> print_table(Int64)
167+
julia> print_table(Int32)
168+
```

0 commit comments

Comments
 (0)