Skip to content

Commit

Permalink
fix some stray untyped global variables
Browse files Browse the repository at this point in the history
  • Loading branch information
nsajko committed Aug 17, 2023
1 parent 6f5e5bb commit 0974edf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/common.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,7 @@ end

#=
arithmetic =#
Scalar = Union{Number, Matrix}
const Scalar = Union{Number, Matrix}

# scalar operations
# scalar_add utilized polynomial addition. May be more performant to provide new method
Expand Down
2 changes: 1 addition & 1 deletion src/polynomials/standard-basis/immutable-polynomial.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ ImmutablePolynomial(1.0)
This was modeled after [StaticUnivariatePolynomials](https://github.com/tkoolen/StaticUnivariatePolynomials.jl) by `@tkoolen`.
"""
ImmutablePolynomial = ImmutableDensePolynomial{StandardBasis}
const ImmutablePolynomial = ImmutableDensePolynomial{StandardBasis}
export ImmutablePolynomial

_typealias(::Type{P}) where {P<:ImmutablePolynomial} = "ImmutablePolynomial"
Expand Down
9 changes: 5 additions & 4 deletions src/precompiles.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# precompiles

p = fromroots(Polynomial, [1,1,2])
Multroot.multroot(p)
gcd(p, derivative(p); method=:numerical)
#uvw(p, derivative(p); method=:numerical)
let p = fromroots(Polynomial, [1,1,2])
Multroot.multroot(p)
gcd(p, derivative(p); method=:numerical)
#uvw(p, derivative(p); method=:numerical)
end

0 comments on commit 0974edf

Please sign in to comment.