Skip to content

Commit cf4ee76

Browse files
authored
Update for QuasiArrays.jl (#13)
* add ultraspherical bases * fixes * add Conversion * Evaluation and collocation work now * Update runtests.jl * Update Project.toml * Move out QuasiArrays * Updating for QuasiArrays v0.0.1 * Tests pass again! * Update runtests.jl * Update Project.toml * more tests pass * quasimulapplystyle * Remove AdjointStyle, BasisStyle * work on materialize * Ldiv improvements
1 parent 517b16b commit cf4ee76

21 files changed

+573
-2895
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
*.jl.*.cov
33
*.jl.mem
44
deps/deps.jl
5+
.DS_Store

Project.toml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name = "ContinuumArrays"
2+
uuid = "7ae1f121-cc2c-504b-ac30-9b923412ae5c"
3+
4+
[deps]
5+
BandedMatrices = "aae01518-5342-5314-be14-df237901396f"
6+
ContinuumArrays = "7ae1f121-cc2c-504b-ac30-9b923412ae5c"
7+
DomainSets = "5b8099bc-c8ec-5219-889f-1d9e522a28bf"
8+
FillArrays = "1a297f60-69ca-5386-bcde-b61e274b549b"
9+
InfiniteArrays = "4858937d-0d70-526a-a4dd-2d5cb5dd786c"
10+
InfiniteLinearAlgebra = "cde9dba0-b1de-11e9-2c62-0bab9446c55c"
11+
IntervalSets = "8197267c-284f-5f27-9208-e0e47529a953"
12+
LazyArrays = "5078a376-72f3-5289-bfd5-ec5146d43c02"
13+
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
14+
QuasiArrays = "c4ea9172-b204-11e9-377d-29865faadc5c"
15+
16+
[extras]
17+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
18+
19+
[compat]
20+
BandedMatrices = "0.10"
21+
DomainSets = "0.1"
22+
FillArrays = "0.6"
23+
InfiniteArrays = "0.1.1"
24+
IntervalSets = "0.3.1"
25+
LazyArrays = "0.10"
26+
julia = "1.0"
27+
QuasiArrays = "0.0.2"

REQUIRE

Lines changed: 0 additions & 7 deletions
This file was deleted.

examples/collocation.jl

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1-
using ContinuumArrays, FillArrays, InfiniteArrays
2-
import ContinuumArrays.QuasiArrays: Inclusion, QuasiDiagonal
1+
using ContinuumArrays, QuasiArrays, FillArrays, InfiniteArrays
2+
import QuasiArrays: Inclusion, QuasiDiagonal
3+
4+
using Plots; pyplot();
5+
6+
S = LinearSpline(range(0,1; length=10))
7+
xx = range(0,1; length=1000)
8+
9+
S = Jacobi(true,true)
10+
311

412
P = Legendre()
513
X = QuasiDiagonal(Inclusion(-1..1))

src/ContinuumArrays.jl

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
module ContinuumArrays
2-
using IntervalSets, LinearAlgebra, LazyArrays, BandedMatrices, InfiniteArrays, DomainSets
2+
using IntervalSets, LinearAlgebra, LazyArrays, FillArrays, BandedMatrices, InfiniteArrays, DomainSets, InfiniteLinearAlgebra, QuasiArrays
33
import Base: @_inline_meta, axes, getindex, convert, prod, *, /, \, +, -,
4-
IndexStyle, IndexLinear, ==, OneTo, tail
4+
IndexStyle, IndexLinear, ==, OneTo, tail, similar, copyto!
55
import Base.Broadcast: materialize
6-
import LazyArrays: Mul2, MemoryLayout, Applied, ApplyStyle, flatten, _flatten
6+
import LazyArrays: MemoryLayout, Applied, ApplyStyle, flatten, _flatten, colsupport, adjointlayout, LdivApplyStyle
77
import LinearAlgebra: pinv
88
import BandedMatrices: AbstractBandedLayout, _BandedMatrix
9+
import FillArrays: AbstractFill, getindex_value
910

10-
include("QuasiArrays/QuasiArrays.jl")
11-
using .QuasiArrays
12-
import .QuasiArrays: cardinality, checkindex, QuasiAdjoint, QuasiTranspose, slice, Inclusion, SubQuasiArray,
11+
import QuasiArrays: cardinality, checkindex, QuasiAdjoint, QuasiTranspose, Inclusion, SubQuasiArray,
1312
QuasiDiagonal, MulQuasiArray, MulQuasiMatrix, MulQuasiVector, QuasiMatMulMat,
14-
ApplyQuasiArray, ApplyQuasiMatrix, LazyQuasiArrayApplyStyle
13+
ApplyQuasiArray, ApplyQuasiMatrix, LazyQuasiArrayApplyStyle, AbstractQuasiArrayApplyStyle,
14+
LazyQuasiArray, LazyQuasiVector, LazyQuasiMatrix, quasimulapplystyle, LazyLayout
1515

16-
export Spline, LinearSpline, HeavisideSpline, DiracDelta, Derivative, JacobiWeight, Jacobi, Legendre,
16+
export Spline, LinearSpline, HeavisideSpline, DiracDelta, Derivative, JacobiWeight, Jacobi, Legendre, Chebyshev, Ultraspherical,
1717
fullmaterialize
1818

1919
####
@@ -24,8 +24,8 @@ struct AlephInfinity{N} <: Integer end
2424
const ℵ₁ = AlephInfinity{1}()
2525

2626

27-
const QMul2{A,B} = Mul{<:Any, <:Tuple{A,B}}
28-
const QMul3{A,B,C} = Mul{<:Any, <:Tuple{A,B,C}}
27+
const QMul2{A,B} = Mul{<:AbstractQuasiArrayApplyStyle, <:Tuple{A,B}}
28+
const QMul3{A,B,C} = Mul{<:AbstractQuasiArrayApplyStyle, <:Tuple{A,B,C}}
2929

3030
cardinality(::AbstractInterval) = ℵ₁
3131
*(ℵ::AlephInfinity) =

src/QuasiArrays/QuasiArrays.jl

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)