Skip to content

Commit

Permalink
- improve plotting util docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
amkrajewski committed Feb 5, 2024
1 parent 31b7c16 commit 48de323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/plotting.nim
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import arraymancer/Tensor

proc simplex2cartesian*(simplexPoints: Tensor[float]): Tensor[float] =
## Converts Arraymancer `Tensor[float]` of `simplexPoints` with fractional coordinates (e.g., from grid or random sampling) to points in a cartesian space (within unit n-sphere)
## for purposes of plotting in the much more common cartesian space.
## for purposes of plotting in the much more common cartesian space. Defined for 1, 2, 3, and 4-component simplexes corresponding to 0D, 1D, 2D, and 3D spaces respectively.
let dim = simplexPoints.shape[1]
assert dim > 0, "0-component simplex is not defined"

Expand Down

0 comments on commit 48de323

Please sign in to comment.