comparison src/LazyTensors/lazy_array.jl @ 1121:c78c9a95024a feature/lazy_arrays

Remove comment
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Wed, 05 Oct 2022 20:45:02 +0200
parents 6104db60b7a3
children 6fd97b5ed3e5
comparison
equal deleted inserted replaced
1120:f32e35c2fccf 1121:c78c9a95024a
94 94
95 95
96 # Overload +,-,*,/ for LazyArrays 96 # Overload +,-,*,/ for LazyArrays
97 # Element wise operation for `*` and `/` are not overloaded for due to conflicts with the behavior 97 # Element wise operation for `*` and `/` are not overloaded for due to conflicts with the behavior
98 # of regular `*` and `/` for AbstractArrays. Use tilde versions instead. 98 # of regular `*` and `/` for AbstractArrays. Use tilde versions instead.
99 # TODO: Try to make it work for `*` and `/` for e.g. *(::LazyArray{T},::T)?
100 Base.@propagate_inbounds Base.:+(a::LazyArray{T,D}, b::LazyArray{T,D}) where {T,D} = a +̃ b 99 Base.@propagate_inbounds Base.:+(a::LazyArray{T,D}, b::LazyArray{T,D}) where {T,D} = a +̃ b
101 Base.@propagate_inbounds Base.:-(a::LazyArray{T,D}, b::LazyArray{T,D}) where {T,D} = a -̃ b 100 Base.@propagate_inbounds Base.:-(a::LazyArray{T,D}, b::LazyArray{T,D}) where {T,D} = a -̃ b
102 101
103 Base.@propagate_inbounds Base.:+(a::LazyArray{T,D}, b::AbstractArray{T,D}) where {T,D} = a +̃ b 102 Base.@propagate_inbounds Base.:+(a::LazyArray{T,D}, b::AbstractArray{T,D}) where {T,D} = a +̃ b
104 Base.@propagate_inbounds Base.:-(a::LazyArray{T,D}, b::AbstractArray{T,D}) where {T,D} = a -̃ b 103 Base.@propagate_inbounds Base.:-(a::LazyArray{T,D}, b::AbstractArray{T,D}) where {T,D} = a -̃ b