Skip to content

Commit

Permalink
Merge pull request #42 from tpapp/tp/notes-about-derivatives
Browse files Browse the repository at this point in the history
add a note about derivatives
  • Loading branch information
tpapp authored Oct 19, 2023
2 parents afd3d27 + ac53c3c commit f2c0e12
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
version:
- '1.6' # Replace this with the minimum Julia version that your package supports. E.g. if your package requires Julia 1.5 or higher, change this to '1.5'.
- '1' # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia.
- 'nightly'
os:
- ubuntu-latest
arch:
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "SpectralKit"
uuid = "5c252ae7-b5b6-46ab-a016-b0e3d78320b7"
authors = ["Tamas K. Papp <[email protected]>"]
version = "0.11.1"
version = "0.11.2"

[deps]
ArgCheck = "dce04be8-c92d-5529-be00-80e4d2c0e197"
Expand Down
12 changes: 12 additions & 0 deletions src/derivatives.jl
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,18 @@ zeros from left to right, starting after the highest explicitly assigned tag.
Consequently, for most applications, you only need to specify tags if you want a different
nesting than left-to-right.
# Important note about transformations
Always use `derivatives` *before* a transformation for correct results. For example, for some
transformation `I` and value `x` in the transformed domain,
```julia
basis_at(basis2, to_pm1(I, derivatives(x))) # right
```
instead of
```julia
basis_at(basis2, derivatives(to_pm1(I, x))) # WRONG
```
# Univariate example
```jldoctest
Expand Down
2 changes: 1 addition & 1 deletion src/generic_api.jl
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ for this when it makes sense.
The collocation matrix may not be an `AbstractMatrix`, all it needs to support is `C \\ y`
for compatible vectors `y = f.(x)`.
Methods are type stable.
Methods are type stable. The elements of `x` can be [`derivatives`](@ref).
"""
function collocation_matrix(basis, x = grid(basis))
@argcheck isconcretetype(eltype(x))
Expand Down

2 comments on commit f2c0e12

@tpapp
Copy link
Owner Author

@tpapp tpapp commented on f2c0e12 Oct 19, 2023

Choose a reason for hiding this comment

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

@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/93694

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.11.2 -m "<description of version>" f2c0e12bf99d07dfe5ccea00483e8f5b4c8af92d
git push origin v0.11.2

Please sign in to comment.