Mercurial > repos > public > sbplib_julia
changeset 378:946516954c85
Use concrete types in LazyTensorApplication
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 30 Sep 2020 21:25:50 +0200 |
parents | f65809a26a17 |
children | de4746d6d126 |
files | src/LazyTensors/lazy_tensor_operations.jl |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/LazyTensors/lazy_tensor_operations.jl Wed Sep 30 21:09:35 2020 +0200 +++ b/src/LazyTensors/lazy_tensor_operations.jl Wed Sep 30 21:25:50 2020 +0200 @@ -7,9 +7,9 @@ With a mapping `m` and a vector `v` the LazyTensorMappingApplication object can be created by `m*v`. The actual result will be calcualted when indexing into `m*v`. """ -struct LazyTensorMappingApplication{T,R,D} <: LazyArray{T,R} - t::TensorMapping{T,R,D} - o::AbstractArray{T,D} +struct LazyTensorMappingApplication{T,R,D, TM<:TensorMapping{T,R,D}, AA<:AbstractArray{T,D}} <: LazyArray{T,R} + t::TM + o::AA end # TODO: Do boundschecking on creation! export LazyTensorMappingApplication