Skip to content

Commit

Permalink
Use concrete types for now
Browse files Browse the repository at this point in the history
Need to make them generic later
  • Loading branch information
yuanchenyang committed Oct 25, 2021
1 parent 999a66f commit b103a2b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/TrigPolys.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ export pad_to, truncate
# Represents a trigonometric polynomial by its coefficients
struct TrigPoly
a0::Number # Constant coefficient
ac::AbstractArray{Number} # cos coefficients
as::AbstractArray{Number} # sin coefficients
ac::AbstractArray{Float64} # cos coefficients
as::AbstractArray{Float64} # sin coefficients
function TrigPoly(a0, ac, as)
length(ac) == length(as), "sin and cos coefficients must have same length!"
@assert length(ac) == length(as) "sin and cos coefficients must have same length!"
new(a0, ac, as)
end
end
Expand Down

2 comments on commit b103a2b

@yuanchenyang
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/47494

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.0 -m "<description of version>" b103a2b07539cfd404dd17c943b6ae10f8201c2e
git push origin v0.1.0

Please sign in to comment.