You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/tags_outer_product.jl
+19-4Lines changed: 19 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ end
58
58
59
59
# integer power. Generic fallbacks use `power_by_squaring`, which assumes type closure under `*`, which is a property that Unitful matrices do not have.
60
60
#TODO factorize so that this can be a O(1) operation
61
-
function Base.:^(m::TagsOuterProduct{Tuple{TAA1, TAA2}}, pow::Integer)where {TAA1, TAA2}
61
+
function Base.:^(m::TagsOuterProduct)
62
62
@assert pow>0#TODO generalize for pow <= 0
63
63
acc= m
64
64
for i=2:pow
@@ -70,18 +70,33 @@ end
70
70
"""
71
71
Definition 3.5 from Hart Multidimensional Analysis