Mercurial > repos > public > sbplib_julia
diff src/Grids/parameter_space.jl @ 1961:f46b4f1fa82c feature/grids/geometry_functions
Merge feature/grids/manifolds
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 11 Feb 2025 09:02:37 +0100 |
parents | 449cce897da9 |
children | 77ff0a2acbe5 |
line wrap: on
line diff
--- a/src/Grids/parameter_space.jl Fri Feb 07 22:38:39 2025 +0100 +++ b/src/Grids/parameter_space.jl Tue Feb 11 09:02:37 2025 +0100 @@ -106,21 +106,21 @@ """ unitsquare(T=Float64) -The square starting at ``(0,0)`` with side length 1. +The square limited by 0 and 1 in each dimension. """ unitsquare(T=Float64) = unithyperbox(T,2) """ unitcube(T=Float64) -The cube starting at ``(0,0,0)`` with side length 1. +The cube limited by 0 and 1 in each dimension. """ unitcube(T=Float64) = unithyperbox(T,3) """ unithyperbox(T=Float64, D) -The hypercube in dimension `D` starting at ``(0,0,0,...)`` with side length 1. +The hypercube limited by 0 and 1 in each dimension. """ unithyperbox(T, D) = HyperBox((@SVector zeros(T,D)), (@SVector ones(T,D))) unithyperbox(D) = unithyperbox(Float64,D) @@ -141,7 +141,7 @@ """ Simplex(verticies...) -A simplex with the given vierticies. +A simplex with the given verticies. """ function Simplex(verticies::Vararg{AbstractArray}) ET = mapreduce(eltype,promote_type,verticies)