netket.utils.numbers.StaticZero#

class netket.utils.numbers.StaticZero[source]#

Bases: Number

A static representation of 0, which can be used in Jax and attempts to behave like a normal jax array.

Used to be able to test for hard-zeros in jax code

Inheritance
Inheritance diagram of netket.utils.numbers.StaticZero
Attributes
aval#
ndim#
shape#
weak_dtype#
Methods
astype(dtype)#
replace(**updates)#

Returns a new object replacing the specified fields with new values.