jesterTOV.tov.data_classes.TOVSolution#
- class TOVSolution(M: float, R: float, k2: float)[source]#
Bases:
NamedTupleSingle neutron star solution from TOV equations.
- When vmapped, fields become batched arrays:
solutions = jax.vmap(solve)(pcs) # solutions.M is array [M1, M2, …, Mn]
- __init__()#
Methods
__init__()count(value, /)Return number of occurrences of value.
index(value[, start, stop])Return first index of value.
Attributes