Mercurial > repos > public > sbplib_julia
diff LazyTensors/src/lazy_operations.jl @ 198:b5c9be7f391c boundary_conditions
Fix up some formatting
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 20 Jun 2019 23:28:02 +0200 |
parents | a340fa91b1fc |
children | a22b419bbdf0 9d9f7b0e514b |
line wrap: on
line diff
--- a/LazyTensors/src/lazy_operations.jl Thu Jun 20 23:26:43 2019 +0200 +++ b/LazyTensors/src/lazy_operations.jl Thu Jun 20 23:28:02 2019 +0200 @@ -8,6 +8,8 @@ abstract type LazyArray{T,D} <: AbstractArray{T,D} end export LazyArray + + """ LazyTensorMappingApplication{T,R,D} <: LazyArray{T,R} @@ -29,7 +31,6 @@ Base.size(ta::LazyTensorMappingApplication{T,R,D}) where {T,R,D} = range_size(ta.t,size(ta.o)) # TODO: What else is needed to implement the AbstractArray interface? - # # We need the associativity to be a→b→c = a→(b→c), which is the case for '→' Base.:*(args::Union{TensorMapping{T}, AbstractArray{T}}...) where T = foldr(*,args) # # Should we overload some other infix binary operator?