From 8ecd0181099b59b13725f9c57d6067a3af61f22f Mon Sep 17 00:00:00 2001 From: Michael Reed <18372368+chakravala@users.noreply.github.com> Date: Thu, 25 Apr 2024 17:08:26 -0400 Subject: [PATCH] exported some more basic syntax --- src/AbstractTensors.jl | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/src/AbstractTensors.jl b/src/AbstractTensors.jl index 821640b..6f00ac4 100644 --- a/src/AbstractTensors.jl +++ b/src/AbstractTensors.jl @@ -132,6 +132,23 @@ Base.@pure mdims(M::T) where T<:TensorAlgebra = mdims(Manifold(M)) Base.@pure mdims(M::Type{T}) where T<:TensorAlgebra = mdims(Manifold(M)) Base.@pure mdims(M::Int) = M +""" + tdims(t::TensorAlgebra{V}) + +Dimensionality of the superalgebra of `V` for that `TensorAlgebra`. +""" +Base.@pure tdims(M::T) where T<:TensorAlgebra = 1<