Mercurial > repos > public > sbplib_julia
diff src/LazyTensors/lazy_array.jl @ 1767:dfb43fdac9fc refactor/move_exports
Move exports to package top files
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 13 Sep 2024 22:23:45 +0200 |
parents | d7bc11053951 |
children |
line wrap: on
line diff
--- a/src/LazyTensors/lazy_array.jl Mon Sep 09 08:26:31 2024 +0200 +++ b/src/LazyTensors/lazy_array.jl Fri Sep 13 22:23:45 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 +̃, -̃, *̃, /̃