AbstractAlgebra.variable_names
— Functionvariable_names(a...) -> Vector{Symbol}
+("x11", "x12", "y1", "y2", "z")
diff --git a/dev/.documenter-siteinfo.json b/dev/.documenter-siteinfo.json
index b9e3a2e653..e89658e7a3 100644
--- a/dev/.documenter-siteinfo.json
+++ b/dev/.documenter-siteinfo.json
@@ -1 +1 @@
-{"documenter":{"julia_version":"1.10.0","generation_timestamp":"2024-01-29T17:57:53","documenter_version":"1.2.1"}}
\ No newline at end of file
+{"documenter":{"julia_version":"1.10.0","generation_timestamp":"2024-01-29T18:47:51","documenter_version":"1.2.1"}}
\ No newline at end of file
diff --git a/dev/constructors/index.html b/dev/constructors/index.html
index 7bbdc249b7..4ed7741130 100644
--- a/dev/constructors/index.html
+++ b/dev/constructors/index.html
@@ -30,7 +30,7 @@
"hello"
julia> (x11, x12, y1, y2, z)
-("x11", "x12", "y1", "y2", "z")source Create a vector of variable names from a variable name specification. Each argument can be either an Array of As an alternative Examples Turn ExamplesAbstractAlgebra.variable_names
— Functionvariable_names(a...) -> Vector{Symbol}
+("x11", "x12", "y1", "y2", "z")
AbstractAlgebra.variable_names
— Functionvariable_names(a...) -> Vector{Symbol}
variable_names(a::Tuple) -> Vector{Symbol}
VarName
s, or of the form s::VarName => iter
, or of the form s::VarName => (iter...)
. Here iter
is supposed to be any iterable, typically a range like 1:5
. The :s => iter
specification is shorthand for ["s[$i]" for i in iter]
. Similarly :s => (iter1, iter2)
is shorthand for ["s[$i,$j]" for i in iter1, j in iter2]
, and likewise for three and more iterables."s#" => iter
is shorthand for ["s$i" for i in iter]
. This also works for multiple iterators in that"s#" => (iter1, iter2)
is shorthand for ["s$i$j" for i in iter1, j in iter2]
.julia> AbstractAlgebra.variable_names([:x, :y])
2-element Vector{Symbol}:
:x
@@ -68,7 +68,7 @@
:a
:b
:c
- :z
AbstractAlgebra.reshape_to_varnames
— Functionreshape_to_varnames(vec::Vector{T}, varnames...) :: Tuple{Array{<:Any, T}}
+ :z
AbstractAlgebra.reshape_to_varnames
— Functionreshape_to_varnames(vec::Vector{T}, varnames...) :: Tuple{Array{<:Any, T}}
reshape_to_varnames(vec::Vector{T}, varnames::Tuple) :: Tuple{Array{<:Any, T}}
vec
into the shape of varnames
. Reverse flattening from variable_names
.julia> s = ([:a, :b], "x#" => (1:1, 1:2), "y#" => 1:2, [:z]);
julia> AbstractAlgebra.reshape_to_varnames(AbstractAlgebra.variable_names(s...), s...)
@@ -81,4 +81,4 @@
(AbstractAlgebra.Generic.MPoly{BigInt}[a, b], AbstractAlgebra.Generic.MPoly{BigInt}[x11 x12], AbstractAlgebra.Generic.MPoly{BigInt}[y1, y2], AbstractAlgebra.Generic.MPoly{BigInt}[z])
julia> R, (a, b), x, y, z = polynomial_ring(ZZ, s...)
-(Multivariate polynomial ring in 7 variables over integers, AbstractAlgebra.Generic.MPoly{BigInt}[a, b], AbstractAlgebra.Generic.MPoly{BigInt}[x11 x12], AbstractAlgebra.Generic.MPoly{BigInt}[y1, y2], AbstractAlgebra.Generic.MPoly{BigInt}[z])
Settings
This document was generated with Documenter.jl version 1.2.1 on Monday 29 January 2024. Using Julia version 1.10.0.