Docs / jax4j-core / com.nablatensor.jax4j.tensor
record
PrngKey
Immutable counter-based random key. Reusing a key reproduces the same values; use advance(long), split(int), or foldIn(long) to derive independent deterministic streams.
Record components
Methods
static PrngKey of(long seed)
PrngKey advance(long amount)
PrngKey foldIn(long data)
List<PrngKey> split(int count)
Tensor uniformLike(Tensor context, int... dims)
Generate in an existing tensor's placement and transformation context. Keys are immutable static values.
Tensor normalLike(Tensor context, int... dims)
Tensor uniform(Device device, int... dims)
Tensor normal(Device device, int... dims)
Tensor uniform(int... dims)
Tensor normal(int... dims)