Skip to content

Commit dcc049a

Browse files
committed
parse -> Meta.parse
1 parent dae9408 commit dcc049a

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/KernelMatrix.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Base.A_mul_B!(u::Vector, H::AbstractKernelMatrix, v::AbstractVector) = A_mul_B!(
4141
end
4242
return u
4343
end"
44-
return parse(str)
44+
return Meta.parse(str)
4545
end
4646

4747
KernelMatrix(f::Function, x::Vector{T}, y::Vector{T}, a::T, b::T, c::T, d::T) where T = KernelMatrix(f, x, y, 1:length(x), 1:length(y), a, b, c, d)
@@ -92,7 +92,7 @@ function KernelMatrix1(f::Function, x::Vector{T}, y::Vector{T}, ir::UnitRange{In
9292
end
9393
end
9494

95-
function KernelMatrix2(f::Function, x::Vector{T}, y::Vector{T}, ir::UnitRange{Int}, jr::UnitRange{Int}, a::T, b::T, c::T, d::T) where T
95+
function KernelMatrix2(f::Function, x::Vector{T}, y::Vector{T}, ir::UnitRange{Int}, jr::UnitRange{Int}, a::T, b::T, c::T, d::T) where T
9696
ir1, ir2 = indsplit(x, ir, a, b)
9797
jr1, jr2 = indsplit(y, jr, c, d)
9898
ab2 = half(T)*(a+b)

src/hierarchical.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ macro hierarchical(HierarchicalType, Types...)
1010
error("Invalid hierarchical symbol.")
1111
end
1212
end
13-
AbstractHierarchicalType = parse("Abstract"*string(HierarchicalType))
14-
Factorization = parse(string(HierarchicalType)*"Factorization")
13+
AbstractHierarchicalType = Meta.parse("Abstract"*string(HierarchicalType))
14+
Factorization = Meta.parse(string(HierarchicalType)*"Factorization")
1515
return esc(quote
1616
import Base: +, -, *, /, \, .+, .-, .*, ./, .\, ==
1717
import Base: size, getindex, setindex!
@@ -61,7 +61,7 @@ macro hierarchical(HierarchicalType, Types...)
6161
end
6262
end
6363
str *= "zeros(Int, M, N))"
64-
return parse(str)
64+
return Meta.parse(str)
6565
end
6666
$HierarchicalType(M::Int, N::Int) = $HierarchicalType(Float64, M, N)
6767

@@ -90,7 +90,7 @@ macro hierarchical(HierarchicalType, Types...)
9090
end
9191
return 0
9292
end"
93-
return parse(str)
93+
return Meta.parse(str)
9494
end
9595

9696
@generated function blockgetindex(H::$HierarchicalType{S}, m::Int, n::Int, i::Int, j::Int) where S
@@ -111,7 +111,7 @@ macro hierarchical(HierarchicalType, Types...)
111111
end
112112
return zero(S)
113113
end"
114-
return parse(str)
114+
return Meta.parse(str)
115115
end
116116

117117
function getindex(H::$HierarchicalType, i::Int, j::Int)
@@ -165,7 +165,7 @@ macro hierarchical(HierarchicalType, Types...)
165165
end
166166
return H
167167
end"
168-
return parse(str)
168+
return Meta.parse(str)
169169
end
170170

171171
@generated function (+)(G::$HierarchicalType, H::$HierarchicalType)
@@ -193,7 +193,7 @@ macro hierarchical(HierarchicalType, Types...)
193193
end
194194
return F
195195
end"
196-
return parse(str)
196+
return Meta.parse(str)
197197
end
198198

199199
@generated function (-)(G::$HierarchicalType, H::$HierarchicalType)
@@ -221,7 +221,7 @@ macro hierarchical(HierarchicalType, Types...)
221221
end
222222
return F
223223
end"
224-
return parse(str)
224+
return Meta.parse(str)
225225
end
226226
end)
227227
end

0 commit comments

Comments
 (0)