From 82a25cedc027fa5c735892979b785e8fd0df1199 Mon Sep 17 00:00:00 2001 From: Jishnu Bhattacharya Date: Sun, 7 Jun 2026 14:15:15 +0400 Subject: [PATCH 1/2] Add compat note to `cartesianproduct` docstring --- src/generic/productdomain.jl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/generic/productdomain.jl b/src/generic/productdomain.jl index c52f725..4796d24 100644 --- a/src/generic/productdomain.jl +++ b/src/generic/productdomain.jl @@ -118,7 +118,10 @@ julia> using DomainSets: × julia> (0..1) × (2..3) (0 .. 1) × (2 .. 3) -```` +``` + +!!! note + `cartesianproduct` requires at least v0.7.17 of DomainSets.jl. """ cartesianproduct(d...) = productdomain(d...) × = cartesianproduct From ee52072fdb594bd8d7cd498c39a0dd4cab51365f Mon Sep 17 00:00:00 2001 From: Jishnu Bhattacharya Date: Sun, 7 Jun 2026 14:35:12 +0400 Subject: [PATCH 2/2] =?UTF-8?q?Add=20docstring=20for=20`=C3=97`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/generic/productdomain.jl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/generic/productdomain.jl b/src/generic/productdomain.jl index 4796d24..3dea2d0 100644 --- a/src/generic/productdomain.jl +++ b/src/generic/productdomain.jl @@ -124,6 +124,15 @@ julia> (0..1) × (2..3) `cartesianproduct` requires at least v0.7.17 of DomainSets.jl. """ cartesianproduct(d...) = productdomain(d...) + +""" + DomainSets.:(×) + +Alias for [`cartesianproduct`](@ref). Note that this differs from LinearAlgebra.:(×) that represents the cross product of vectors. + +!!! note + `×` requires at least v0.8.0 of DomainSets.jl. +""" × = cartesianproduct Base.:^(d::Domain, n::Int) = productdomain(ntuple(i->d, n)...)