Mercurial > repos > public > sbplib_julia
diff src/LazyTensors/lazy_tensor_operations.jl @ 393:b14eacf823b6 feature/lazy_linear_map
Test applying LazyLinearMap to random vectors and matrices. Fix indentation
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Fri, 02 Oct 2020 14:56:03 +0200 |
parents | 418cfd945715 |
children | 7ad644d112de |
line wrap: on
line diff
--- a/src/LazyTensors/lazy_tensor_operations.jl Fri Oct 02 13:43:36 2020 +0200 +++ b/src/LazyTensors/lazy_tensor_operations.jl Fri Oct 02 14:56:03 2020 +0200 @@ -101,7 +101,7 @@ # export → """ - LazyLinearMap{T,R,D,...}(A, range_indicies, ) + LazyLinearMap{T,R,D,...}(A, range_indicies, domain_indicies) TensorMapping defined by the AbstractArray A. `range_indicies` and `domain_indicies` define which indicies of A should be considerd the range and domain of the TensorMapping. @@ -121,8 +121,6 @@ for i ∈ 1:R view_index = Base.setindex(view_index, Int(I[i]), llm.range_indicies[i]) end - A_view = @view llm.A[view_index...] - return sum(A_view.*v) end