Skip to content

Commit a2bd6ce

Browse files
fix some tableau depwarns
1 parent ae78585 commit a2bd6ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ode_tableaus.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ end
8181
Euler's method.
8282
"""
8383
function constructEuler(T::Type = Float64)
84-
A = Matrix{T}(1,1)
84+
A = Matrix{T}(undef,1,1)
8585
A[1] = 0
8686
c = [0]
8787
α = [1]
@@ -209,7 +209,7 @@ end
209209
Implicit Euler Method
210210
"""
211211
function constructImplicitEuler(T::Type = Float64)
212-
A = Matrix{T}(1,1)
212+
A = Matrix{T}(undef,1,1)
213213
A[1] = 1
214214
c = [1]
215215
α = [1]
@@ -223,7 +223,7 @@ end
223223
Order 2 Midpoint Method
224224
"""
225225
function constructMidpointRule(T::Type = Float64)
226-
A = Matrix{T}(1,1)
226+
A = Matrix{T}(undef,1,1)
227227
A[1] = 1//2
228228
c = [1//2]
229229
α = [1]

0 commit comments

Comments
 (0)