NamedDimsArrays.jl
Installation instructions
julia> using Pkg: Pkg
+Home · NamedDimsArrays.jl NamedDimsArrays.jl
Installation instructions
This package resides in the ITensor/ITensorRegistry
local registry. In order to install, simply add that registry through your package manager. This step is only required once.
julia> using Pkg: Pkg
-julia> Pkg.add(url="https://github.com/ITensor/BroadcastMapConversion.jl")
-
-julia> Pkg.add(url="https://github.com/ITensor/NestedPermutedDimsArrays.jl")
-
-julia> Pkg.add(url="https://github.com/ITensor/TypeParameterAccessors.jl")
-
-julia> Pkg.add(url="https://github.com/ITensor/SparseArraysBase.jl")
-
-julia> Pkg.add(url="https://github.com/ITensor/TensorAlgebra.jl")
-
-julia> Pkg.add(url="https://github.com/ITensor/NamedDimsArrays.jl")
Examples
using NamedDimsArrays: align, dimnames, named, unname
+julia> Pkg.Registry.add(url="https://github.com/ITensor/ITensorRegistry")
or:
julia> Pkg.Registry.add(url="git@github.com:ITensor/ITensorRegistry.git")
if you want to use SSH credentials, which can make it so you don't have to enter your Github ursername and password when registering packages.
Then, the package can be added as usual through the package manager:
julia> Pkg.add("NamedDimsArrays")
Examples
using NamedDimsArrays: align, dimnames, named, unname
using TensorAlgebra: contract
# Named dimensions
@@ -37,4 +27,4 @@
# Permute dimensions (like `ITensors.permute`)
na1 = align(na1, (j, i))
-@show na1[i => 1, j => 2] == na1[2, 1]
true
This page was generated using Literate.jl.
Settings
This document was generated with Documenter.jl version 1.8.0 on Thursday 19 December 2024. Using Julia version 1.11.2.
+@show na1[i => 1, j => 2] == na1[2, 1]
true
This page was generated using Literate.jl.