v0.5.0
StaticTools v0.5.0
- Refactor
StaticRNG
s, add Gaussian RNGs (BoxMuller
,MarsagliaPolar
) andrandn
methods for them - Add a stack-allocated
StackArray
type that mirrors the syntax and conventions ofMallocArray
. As withStaticString
vsMallocString
, the size of the stack-allocated option must be known at compile time to beStaticCompiler
d (StackArray
:MallocArray
::StaticString
:MallocString
) - Contiguous slice-indexing of either a
StackArray
or aMallocArray
now returns a lightweightArrayView
(similar to how slice-indexing either aStaticString
orMallocString
returns aStringView
to avoid excessive copying - Add some convenience constructors for
MallocArray
s andStackArray
s (mzeros
/szeros
,mones
/sones,
meye/
seye,
mfill/
sfill`)
Merged pull requests:
StackArray
s (#16) (@brenhinkeller)