tpapp / SpectralKit.jl
Showing 2 of 3 files from the diff.
Newly tracked file
src/derivatives.jl changed.
Newly tracked file
src/generic_api.jl changed.
Other files ignored by Codecov
Project.toml has changed.

@@ -83,6 +83,21 @@
Loading
83 83
Consequently, for most applications, you only need to specify tags if you want a different
84 84
nesting than left-to-right.
85 85
86 +
# Important note about transformations
87 +
88 +
Always use `derivatives` *before* a transformation for correct results. For example, for some
89 +
transformation `I` and value `x` in the transformed domain,
90 +
91 +
```julia
92 +
basis_at(basis2, to_pm1(I, derivatives(x))) # right
93 +
```
94 +
95 +
instead of
96 +
97 +
```julia
98 +
basis_at(basis2, derivatives(to_pm1(I, x))) # WRONG
99 +
```
100 +
86 101
# Univariate example
87 102
88 103
```jldoctest

@@ -164,7 +164,7 @@
Loading
164 164
The collocation matrix may not be an `AbstractMatrix`, all it needs to support is `C \\ y`
165 165
for compatible vectors `y = f.(x)`.
166 166
167 -
Methods are type stable.
167 +
Methods are type stable. The elements of `x` can be [`derivatives`](@ref).
168 168
"""
169 169
function collocation_matrix(basis, x = grid(basis))
170 170
    @argcheck isconcretetype(eltype(x))
Files Coverage
src 86.21%
Project Totals (7 files) 86.21%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading