-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refine tensor transform interface (#170)
* Refine tensor transform interface * work on tests * Make plan_transform and grid only overloads * tests pass * coverage * add tests * add docs * Update index.md * Update bases.jl * Update bases.jl * Update test_splines.jl * fix tests * increase cov * plan_transform(P, Block(K,J)) * plan_grid_transform with Block(K,J) * Update bases.jl
- Loading branch information
1 parent
3c174df
commit c42fedf
Showing
11 changed files
with
242 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Documentation | ||
|
||
on: | ||
push: | ||
branches: | ||
- master # update to match your development branch (master, main, dev, trunk, ...) | ||
tags: '*' | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
permissions: | ||
contents: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: '1.9' | ||
- name: Install dependencies | ||
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()' | ||
- name: Build and deploy | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token | ||
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key | ||
run: julia --project=docs/ docs/make.jl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[deps] | ||
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" | ||
|
||
[compat] | ||
Documenter = "1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using Documenter, ContinuumArrays | ||
|
||
makedocs( | ||
modules = [ContinuumArrays], | ||
sitename="ContinuumArrays.jl", | ||
pages = Any[ | ||
"Home" => "index.md"]) | ||
|
||
deploydocs( | ||
repo = "github.com/JuliaApproximation/ContinuumArrays.jl.git", | ||
push_preview = true | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# ContinuumArrays.jl | ||
A Julia package for working with bases as quasi-arrays | ||
|
||
## The Basis interface | ||
|
||
To add your own bases, subtype `Basis` and overload the following routines: | ||
|
||
1. `axes(::MyBasis) = (Inclusion(mydomain), OneTo(mylength))` | ||
2. `grid(::MyBasis, ::Integer)` | ||
3. `getindex(::MyBasis, x, ::Integer)` | ||
4. `==(::MyBasis, ::MyBasis)` | ||
|
||
Optional overloads are: | ||
|
||
1. `plan_transform(::MyBasis, sizes::NTuple{N,Int}, region)` to plan a transform, for a tensor | ||
product of the specified sizes, similar to `plan_fft`. | ||
2. `diff(::MyBasis, dims=1)` to support differentiation and `Derivative`. | ||
3. `grammatrix(::MyBasis)` to support `Q'Q`. | ||
4. `ContinuumArrays._sum(::MyBasis, dims)` and `ContinuumArrays._cumsum(::MyBasis, dims)` to support definite and indefinite integeration. | ||
|
||
|
||
## Routines | ||
|
||
|
||
```@docs | ||
Derivative | ||
``` | ||
```@docs | ||
transform | ||
``` | ||
```@docs | ||
expand | ||
``` | ||
```@docs | ||
grid | ||
``` | ||
|
||
|
||
## Interal Routines | ||
|
||
```@docs | ||
ContinuumArrays.TransformFactorization | ||
``` | ||
|
||
```@docs | ||
ContinuumArrays.AbstractConcatBasis | ||
``` | ||
```@docs | ||
ContinuumArrays.MulPlan | ||
``` | ||
```@docs | ||
ContinuumArrays.PiecewiseBasis | ||
``` | ||
```@docs | ||
ContinuumArrays.MappedFactorization | ||
``` | ||
```@docs | ||
ContinuumArrays.basis | ||
``` | ||
```@docs | ||
ContinuumArrays.InvPlan | ||
``` | ||
```@docs | ||
ContinuumArrays.VcatBasis | ||
``` | ||
```@docs | ||
ContinuumArrays.WeightedFactorization | ||
``` | ||
```@docs | ||
ContinuumArrays.HvcatBasis | ||
``` | ||
```@docs | ||
ContinuumArrays.ProjectionFactorization | ||
``` | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
c42fedf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
c42fedf
There was a problem hiding this comment.
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/95467
Tip: Release Notes
Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.
To add them here just re-invoke and the PR will be updated.
Tagging
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: