docs(integrate): reword the integer-state refusal comment

This commit is contained in:
2026-09-28 10:48:13 +02:00
parent e8a6e1cdd3
commit 3a44be625f
+4 -3
View File
@@ -129,9 +129,10 @@ func verletPrelude(name string, q0, p0 *core.Array) (q, p []float64, n int, err
// integerState reports whether dt is one of the integer-class state // integerState reports whether dt is one of the integer-class state
// dtypes the symplectic family refuses: bool and the narrow integer // dtypes the symplectic family refuses: bool and the narrow integer
// widths follow Int into the standing "int states cannot integrate" // widths carry a discrete state with no place in a continuous
// refusal, exactly as the round's follow-Int rule requires. The float // integrator, so they follow Int into the standing "int states cannot
// dtypes, float16 included, keep the treatment they carry today. // integrate" refusal. The float dtypes, float16 included, keep the
// treatment they carry today.
func integerState(dt core.Dtype) bool { func integerState(dt core.Dtype) bool {
switch dt { switch dt {
case core.Bool, core.Int, core.Int8, core.Uint8, core.Int16, core.Uint16, core.Int32, core.Uint32: case core.Bool, core.Int, core.Int8, core.Uint8, core.Int16, core.Uint16, core.Int32, core.Uint32: