Mercurial > repos > public > sbplib_julia
comparison src/LazyTensors/lazy_tensor_operations.jl @ 499:7b550c714f3f feature/outer_product
Remove resolved TBD
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 05 Nov 2020 15:27:33 +0100 |
parents | 5a600ec40ccc |
children | 4b9d124fe984 |
comparison
equal
deleted
inserted
replaced
498:5a600ec40ccc | 499:7b550c714f3f |
---|---|
360 LazyOuterProduct(tms::Vararg{TensorMapping}) = foldl(LazyOuterProduct, tms) | 360 LazyOuterProduct(tms::Vararg{TensorMapping}) = foldl(LazyOuterProduct, tms) |
361 | 361 |
362 ⊗(a::TensorMapping, b::TensorMapping) = LazyOuterProduct(a,b) | 362 ⊗(a::TensorMapping, b::TensorMapping) = LazyOuterProduct(a,b) |
363 export ⊗ | 363 export ⊗ |
364 | 364 |
365 # TBD: Should we implement simplifications for outer products of LazyIdentities other LazyIdentities or Inflated tensormappings? | |
366 | 365 |
367 function check_domain_size(tm::TensorMapping, sz) | 366 function check_domain_size(tm::TensorMapping, sz) |
368 if domain_size(tm) != sz | 367 if domain_size(tm) != sz |
369 throw(SizeMismatch(tm,sz)) | 368 throw(SizeMismatch(tm,sz)) |
370 end | 369 end |