Skip to content

Commit

Permalink
fixed getsparse Int64 error
Browse files Browse the repository at this point in the history
  • Loading branch information
chakravala committed Sep 19, 2022
1 parent 492504c commit b46e187
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
16 changes: 13 additions & 3 deletions src/basis.jl
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b46e187

Please sign in to comment.