From ebef1a81b5887c9ed86f04f8cbd8fe1577a9ae11 Mon Sep 17 00:00:00 2001 From: Michael Reed <18372368+chakravala@users.noreply.github.com> Date: Mon, 19 Sep 2022 11:09:28 -0400 Subject: [PATCH] fixed getsparse Int64 error --- Project.toml | 2 +- src/basis.jl | 16 +++++++++++++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/Project.toml b/Project.toml index a47120d..524f3f3 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "DirectSum" uuid = "22fd7b30-a8c0-5bf2-aabe-97783860d07c" authors = ["Michael Reed"] -version = "0.8.1" +version = "0.8.2" [deps] ComputedFieldTypes = "459fdd68-db75-56b8-8c15-d717a790f88e" diff --git a/src/basis.jl b/src/basis.jl index 1d7a74c..5135510 100644 --- a/src/basis.jl +++ b/src/basis.jl @@ -1,6 +1,16 @@ -# This file is part of DirectSum.jl. It is licensed under the AGPL license -# Grassmann Copyright (C) 2019 Michael Reed +# This file is part of DirectSum.jl +# It is licensed under the AGPL license +# DirectSum Copyright (C) 2019 Michael Reed +# _ _ _ +# | | | | | | +# ___| |__ __ _| | ___ __ __ ___ ____ _| | __ _ +# / __| '_ \ / _` | |/ / '__/ _` \ \ / / _` | |/ _` | +# | (__| | | | (_| | <| | | (_| |\ V / (_| | | (_| | +# \___|_| |_|\__,_|_|\_\_| \__,_| \_/ \__,_|_|\__,_| +# +# https://github.com/chakravala +# https://crucialflow.com import AbstractTensors: scalar, involute, unit, even, odd @@ -373,7 +383,7 @@ for (ExtraBasis,extra) ∈ ((SparseBasis,:sparse),(ExtendedBasis,:extended)) V≠:Int && (@eval @pure $getextra(V::$V) = $getextra(Submanifold(V))) end @eval begin - @pure function $getextra(n::Int,m::Int,s::UInt,S::UInt,vs,f::Int=0,d::Int=0) + @pure function $getextra(n::Int,m::Int,s,S::UInt,vs,f::Int=0,d::Int=0) n==0 && (return $ExtraBasis(V0)) d1,f1,m1 = d+1,f+1,m+1 exc = if vs <: Int