comparison src/LazyTensors/lazy_tensor_operations.jl @ 394:7ad644d112de feature/lazy_linear_map

Expand tests for LazyLinearMap and update its documentation
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Fri, 02 Oct 2020 15:57:53 +0200
parents b14eacf823b6
children 3b4b1758a8ad
comparison
equal deleted inserted replaced
393:b14eacf823b6 394:7ad644d112de
103 """ 103 """
104 LazyLinearMap{T,R,D,...}(A, range_indicies, domain_indicies) 104 LazyLinearMap{T,R,D,...}(A, range_indicies, domain_indicies)
105 105
106 TensorMapping defined by the AbstractArray A. `range_indicies` and `domain_indicies` define which indicies of A should 106 TensorMapping defined by the AbstractArray A. `range_indicies` and `domain_indicies` define which indicies of A should
107 be considerd the range and domain of the TensorMapping. 107 be considerd the range and domain of the TensorMapping.
108
109 When the LazyLinearMap is applied to a vector size domain_size the
110 map sums over the dimensions orthogonal to those specified in range_indicies resulting
111 in a vector of size range_size.
108 """ 112 """
109 struct LazyLinearMap{T,R,D, RD, AA<:AbstractArray{T,RD}} <: TensorMapping{T,R,D} 113 struct LazyLinearMap{T,R,D, RD, AA<:AbstractArray{T,RD}} <: TensorMapping{T,R,D}
110 A::AA 114 A::AA
111 range_indicies::NTuple{R,Int} 115 range_indicies::NTuple{R,Int}
112 domain_indicies::NTuple{D,Int} 116 domain_indicies::NTuple{D,Int}