diff src/LazyTensors/tuple_manipulation.jl @ 1087:423a6442efc3 feature/dissipation_operators

REVIEW: Address documentation
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Sun, 08 May 2022 12:15:32 +0200
parents 0905cec43d2e
children 672610322206
line wrap: on
line diff
--- a/src/LazyTensors/tuple_manipulation.jl	Thu Apr 07 20:29:46 2022 +0200
+++ b/src/LazyTensors/tuple_manipulation.jl	Sun May 08 12:15:32 2022 +0200
@@ -75,7 +75,7 @@
 flatten_tuple(t::Tuple) = ((flatten_tuple.(t)...)...,) # simplify?
 flatten_tuple(ts::Vararg) = flatten_tuple(ts)
 
-
+# REVIEW: Add documentation
 function left_pad_tuple(t, val, N)
     if N < length(t)
         throw(DomainError(N, "Can't pad tuple of length $(length(t)) to $N elements"))
@@ -85,6 +85,7 @@
     return (padding..., t...)
 end
 
+# REVIEW: Add documentation
 function right_pad_tuple(t, val, N)
     if N < length(t)
         throw(DomainError(N, "Can't pad tuple of length $(length(t)) to $N elements"))