Mercurial > repos > public > sbplib_julia
changeset 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 | 6c1bb9bdb092 (current diff) 00cac08777b1 (diff) |
children | 496b8d3903c6 eedb5d7b90b4 |
files | src/Grids/Grids.jl |
diffstat | 2 files changed, 4 insertions(+), 5 deletions(-) [+] |
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)