Skip to content

Commit

Permalink
don't export supp
Browse files Browse the repository at this point in the history
  • Loading branch information
kalmarek committed May 9, 2024
1 parent de054b2 commit b204f99
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/StarAlgebras.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import LinearAlgebra
import MutableArithmetics as MA

export StarAlgebra, AlgebraElement
export basis, coeffs, star, supp
export basis, coeffs, star

# AbstractCoefficients
## abstract definitions
Expand Down
2 changes: 1 addition & 1 deletion test/caching_allocations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ end
@test (@allocations star(Y)) 4
end

@test supp(Y) == basis(fRG)[1:k]
@test SA.supp(Y) == basis(fRG)[1:k]

@test Y * one(fRG) == Y
@test one(fRG) * Y == Y
Expand Down
4 changes: 2 additions & 2 deletions test/constructors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@
# @test hash(a) == hash(dense_a)

# @test SA.supp_ind(a) == [b[s], b[p]] == SA.supp_ind(dense_a)
# @test supp(a) == [s, p] == SA.supp(dense_a)
# @test SA.supp(a) == [s, p] == SA.supp(dense_a)

aa = a - RG(p)
# dense_aa = dense_a - RG(p)
# @test SA.supp_ind(aa) == [b[s]] == SA.supp_ind(dense_aa)
@test supp(aa) == [s]
@test SA.supp(aa) == [s]

@test sprint(show, a) == "2·(id) +1·b·c"
@test sprint(show, -a) == "-2·(id) -1·b·c"
Expand Down

0 comments on commit b204f99

Please sign in to comment.