Mercurial > repos > public > sbplib_julia
annotate src/Diffinitive.jl @ 1816:77f1b027d134 feature/jet_aqua
Resolve ambiguities for addition and subtraction of LazyArrays
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Mon, 14 Oct 2024 23:26:49 +0200 |
parents | 2311f33b6bd3 |
children | bddcae938ded |
rev | line source |
---|---|
1726
471a948cd2b2
Rename project from Sbplib to Diffinitive
Vidar Stiernström <vidar.stiernstrom@gmail.com>
parents:
1603
diff
changeset
|
1 module Diffinitive |
333
01b851161018
Start converting to one package by moving all the files to their correct location
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
2 |
335
f4e3e71a4ff4
Fix `using` commands to refer to local modules within the Sbplib package/module
Jonatan Werpers <jonatan@werpers.com>
parents:
333
diff
changeset
|
3 include("RegionIndices/RegionIndices.jl") |
333
01b851161018
Start converting to one package by moving all the files to their correct location
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
4 include("LazyTensors/LazyTensors.jl") |
335
f4e3e71a4ff4
Fix `using` commands to refer to local modules within the Sbplib package/module
Jonatan Werpers <jonatan@werpers.com>
parents:
333
diff
changeset
|
5 include("Grids/Grids.jl") |
356
0844069ab5ff
Reinclude SbpOperators and fix most of the code and tests there.
Jonatan Werpers <jonatan@werpers.com>
parents:
348
diff
changeset
|
6 include("SbpOperators/SbpOperators.jl") |
333
01b851161018
Start converting to one package by moving all the files to their correct location
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
7 |
335
f4e3e71a4ff4
Fix `using` commands to refer to local modules within the Sbplib package/module
Jonatan Werpers <jonatan@werpers.com>
parents:
333
diff
changeset
|
8 export RegionIndices |
333
01b851161018
Start converting to one package by moving all the files to their correct location
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
9 export LazyTensors |
335
f4e3e71a4ff4
Fix `using` commands to refer to local modules within the Sbplib package/module
Jonatan Werpers <jonatan@werpers.com>
parents:
333
diff
changeset
|
10 export Grids |
333
01b851161018
Start converting to one package by moving all the files to their correct location
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
11 export SbpOperators |
01b851161018
Start converting to one package by moving all the files to their correct location
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
12 |
1816
77f1b027d134
Resolve ambiguities for addition and subtraction of LazyArrays
Jonatan Werpers <jonatan@werpers.com>
parents:
1734
diff
changeset
|
13 |
77f1b027d134
Resolve ambiguities for addition and subtraction of LazyArrays
Jonatan Werpers <jonatan@werpers.com>
parents:
1734
diff
changeset
|
14 |
77f1b027d134
Resolve ambiguities for addition and subtraction of LazyArrays
Jonatan Werpers <jonatan@werpers.com>
parents:
1734
diff
changeset
|
15 # Aqua.jl fixes |
77f1b027d134
Resolve ambiguities for addition and subtraction of LazyArrays
Jonatan Werpers <jonatan@werpers.com>
parents:
1734
diff
changeset
|
16 using StaticArrays |
77f1b027d134
Resolve ambiguities for addition and subtraction of LazyArrays
Jonatan Werpers <jonatan@werpers.com>
parents:
1734
diff
changeset
|
17 using .LazyTensors |
77f1b027d134
Resolve ambiguities for addition and subtraction of LazyArrays
Jonatan Werpers <jonatan@werpers.com>
parents:
1734
diff
changeset
|
18 Base.:+(a::StaticArray, b::LazyArray) = a +̃ b |
77f1b027d134
Resolve ambiguities for addition and subtraction of LazyArrays
Jonatan Werpers <jonatan@werpers.com>
parents:
1734
diff
changeset
|
19 Base.:+(a::LazyArray, b::StaticArray) = a +̃ b |
77f1b027d134
Resolve ambiguities for addition and subtraction of LazyArrays
Jonatan Werpers <jonatan@werpers.com>
parents:
1734
diff
changeset
|
20 Base.:-(a::StaticArray, b::LazyArray) = a -̃ b |
77f1b027d134
Resolve ambiguities for addition and subtraction of LazyArrays
Jonatan Werpers <jonatan@werpers.com>
parents:
1734
diff
changeset
|
21 Base.:-(a::LazyArray, b::StaticArray) = a -̃ b |
77f1b027d134
Resolve ambiguities for addition and subtraction of LazyArrays
Jonatan Werpers <jonatan@werpers.com>
parents:
1734
diff
changeset
|
22 |
333
01b851161018
Start converting to one package by moving all the files to their correct location
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
23 end |