Mercurial > repos > public > sbplib_julia
comparison src/Grids/grid.jl @ 1513:d7bc11053951
Fix spelling mistakes
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 21 Mar 2024 15:36:52 +0100 |
parents | a863aef1f799 |
children | b6f6425e34ac |
comparison
equal
deleted
inserted
replaced
1499:8ef207e4bc87 | 1513:d7bc11053951 |
---|---|
25 Base.getindex(g::Grid, I::CartesianIndex) = g[Tuple(I)...] | 25 Base.getindex(g::Grid, I::CartesianIndex) = g[Tuple(I)...] |
26 | 26 |
27 """ | 27 """ |
28 coordinate_size(g) | 28 coordinate_size(g) |
29 | 29 |
30 The lenght of the coordinate vector of `Grid` `g`. | 30 The length of the coordinate vector of `Grid` `g`. |
31 """ | 31 """ |
32 coordinate_size(::Type{<:Grid{T}}) where T = _ncomponents(T) | 32 coordinate_size(::Type{<:Grid{T}}) where T = _ncomponents(T) |
33 coordinate_size(g::Grid) = coordinate_size(typeof(g)) # TBD: Name of this function?! | 33 coordinate_size(g::Grid) = coordinate_size(typeof(g)) # TBD: Name of this function?! |
34 | 34 |
35 """ | 35 """ |