Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start adding exports #12

Merged
merged 1 commit into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "TensorAlgebra"
uuid = "68bd88dc-f39d-4e12-b2ca-f046b68fcc6a"
authors = ["ITensor developers <[email protected]> and contributors"]
version = "0.1.1"
version = "0.1.2"

[deps]
ArrayLayouts = "4c555306-a7a7-4459-81d9-ec55ddd5c99a"
Expand Down
4 changes: 4 additions & 0 deletions src/TensorAlgebra.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
module TensorAlgebra

export contract, contract!

include("blockedpermutation.jl")
include("BaseExtensions/BaseExtensions.jl")
include("blockedtuple.jl")
Expand All @@ -11,4 +14,5 @@ include("contract/allocate_output.jl")
include("contract/contract_matricize/contract.jl")
# TODO: Rename to `TensorAlgebraLinearAlgebraExt`.
include("LinearAlgebraExtensions/LinearAlgebraExtensions.jl")

end
1 change: 0 additions & 1 deletion test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ GradedUnitRanges = "e2de450a-8a67-46c7-b59c-01d5a3d041c5"
JLArrays = "27aeb0d3-9eb9-45fb-866b-73c2ecf80fcb"
LabelledNumbers = "f856a3a6-4152-4ec4-b2a7-02c1a55d7993"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
NDTensors = "23ae76d9-e61a-49c4-8f12-3f1a16adf9cf"
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
Suppressor = "fd094767-a336-5f1f-9728-57cf17d0bbfb"
Expand Down
5 changes: 1 addition & 4 deletions test/test_basics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ using Combinatorics: permutations
using EllipsisNotation: var".."
using LinearAlgebra: norm, qr
using TensorAlgebra: TensorAlgebra, blockedperm, blockedperm_indexin, fusedims, splitdims
# TODO: Remove dependency on NDTensors, create a GPUTestUtils.jl package.
using NDTensors: NDTensors
include(joinpath(pkgdir(NDTensors), "test", "NDTensorsTestUtils", "NDTensorsTestUtils.jl"))
using .NDTensorsTestUtils: default_rtol
default_rtol(elt::Type) = 10^(0.75 * log10(eps(real(elt))))
using Test: @test, @test_broken, @testset
const elts = (Float32, Float64, Complex{Float32}, Complex{Float64})
@testset "BlockedPermutation" begin
Expand Down
6 changes: 6 additions & 0 deletions test/test_exports.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
using TensorAlgebra: TensorAlgebra
using Test: @test, @testset
@testset "Test exports" begin
exports = [:TensorAlgebra, :contract, :contract!]
@test issetequal(names(TensorAlgebra), exports)
end
Loading