Mercurial > repos > public > sbplib_julia
changeset 1795:a38911d39682 feature/grids/curvilinear
Merge default
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 01 Oct 2024 11:04:22 +0200 |
parents | 08710ebe940d (current diff) d66f1c947856 (diff) |
children | 4d55ac2892a2 |
files | |
diffstat | 5 files changed, 16 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/src/LazyTensors/LazyTensors.jl Sun Sep 29 12:53:22 2024 -0700 +++ b/src/LazyTensors/LazyTensors.jl Tue Oct 01 11:04:22 2024 +0200 @@ -1,5 +1,11 @@ module LazyTensors +export LazyTensor +export apply +export apply_transpose +export range_dim, domain_dim +export range_size, domain_size + export TensorApplication export TensorTranspose export TensorComposition @@ -13,6 +19,10 @@ export DomainSizeMismatch export RangeSizeMismatch +export LazyArray +export LazyFunctionArray +export +̃, -̃, *̃, /̃ + include("lazy_tensor.jl") include("tensor_types.jl") include("lazy_array.jl")
--- a/src/LazyTensors/lazy_array.jl Sun Sep 29 12:53:22 2024 -0700 +++ b/src/LazyTensors/lazy_array.jl Tue Oct 01 11:04:22 2024 +0200 @@ -6,7 +6,6 @@ A subtype of `LazyArray` will use lazy version of `+`, `-`, `*`, `/`. """ abstract type LazyArray{T,D} <: AbstractArray{T,D} end -export LazyArray struct LazyConstantArray{T,D} <: LazyArray{T,D} val::T @@ -25,7 +24,6 @@ f::F size::NTuple{D,Int} end -export LazyFunctionArray function LazyFunctionArray(f::F, size::NTuple{D,Int}) where {F<:Function,D} T = typeof(f(ones(Int, D)...)) @@ -110,5 +108,3 @@ Base.@propagate_inbounds Base.:+(a::T, b::LazyArray{T,D}) where {T,D} = a +̃ b Base.@propagate_inbounds Base.:-(a::T, b::LazyArray{T,D}) where {T,D} = a -̃ b - -export +̃, -̃, *̃, /̃
--- a/src/LazyTensors/lazy_tensor.jl Sun Sep 29 12:53:22 2024 -0700 +++ b/src/LazyTensors/lazy_tensor.jl Tue Oct 01 11:04:22 2024 +0200 @@ -1,9 +1,3 @@ -export LazyTensor -export apply -export apply_transpose -export range_dim, domain_dim -export range_size, domain_size - """ LazyTensor{T,R,D}
--- a/src/SbpOperators/SbpOperators.jl Sun Sep 29 12:53:22 2024 -0700 +++ b/src/SbpOperators/SbpOperators.jl Tue Oct 01 11:04:22 2024 +0200 @@ -1,5 +1,11 @@ module SbpOperators +# Stencils +export Stencil +export CenteredStencil +export NestedStencil +export CenteredNestedStencil + # Stencil set export StencilSet export read_stencil_set