Mercurial > repos > public > sbplib_julia
comparison src/LazyTensors/lazy_tensor_operations.jl @ 1635:b62770cec7d0 update/julia_1.10.3
Merge default
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 25 Jun 2024 15:32:19 +0200 |
parents | df1856b0e2f0 |
children | 164e26a6cf79 8b64df6cadba |
comparison
equal
deleted
inserted
replaced
1593:7f5e4d2a5112 | 1635:b62770cec7d0 |
---|---|
119 return tmi | 119 return tmi |
120 end | 120 end |
121 | 121 |
122 Base.:*(a::T, tm::LazyTensor{T}) where T = TensorComposition(ScalingTensor{T,range_dim(tm)}(a,range_size(tm)), tm) | 122 Base.:*(a::T, tm::LazyTensor{T}) where T = TensorComposition(ScalingTensor{T,range_dim(tm)}(a,range_size(tm)), tm) |
123 Base.:*(tm::LazyTensor{T}, a::T) where T = a*tm | 123 Base.:*(tm::LazyTensor{T}, a::T) where T = a*tm |
124 Base.:-(tm::LazyTensor) = (-one(eltype(tm)))*tm | |
124 | 125 |
125 """ | 126 """ |
126 InflatedTensor{T,R,D} <: LazyTensor{T,R,D} | 127 InflatedTensor{T,R,D} <: LazyTensor{T,R,D} |
127 | 128 |
128 An inflated `LazyTensor` with dimensions added before and after its actual dimensions. | 129 An inflated `LazyTensor` with dimensions added before and after its actual dimensions. |