Mercurial > repos > public > sbplib_julia
diff src/LazyTensors/lazy_tensor_operations.jl @ 415:814865d40f48 feature/tensor_composition
Merge in default
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 16 Oct 2020 09:34:50 +0200 |
parents | d94891b8dfca 4aa59af074ef |
children | 4c6604b7d990 |
line wrap: on
line diff
--- a/src/LazyTensors/lazy_tensor_operations.jl Thu Oct 15 22:05:22 2020 +0200 +++ b/src/LazyTensors/lazy_tensor_operations.jl Fri Oct 16 09:34:50 2020 +0200 @@ -135,3 +135,7 @@ A_view = @view llm.A[view_index...] return sum(A_view.*v) end + +function apply_transpose(llm::LazyLinearMap{T,R,D}, v::AbstractArray{T,R}, I::Vararg{Index,D}) where {T,R,D} + apply(LazyLinearMap(llm.A, llm.domain_indicies, llm.range_indicies), v, I...) +end