docs(integrate): reword the integer-state refusal comment
This commit is contained in:
@@ -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
|
||||
// dtypes the symplectic family refuses: bool and the narrow integer
|
||||
// widths follow Int into the standing "int states cannot integrate"
|
||||
// refusal, exactly as the round's follow-Int rule requires. The float
|
||||
// dtypes, float16 included, keep the treatment they carry today.
|
||||
// widths carry a discrete state with no place in a continuous
|
||||
// integrator, so they follow Int into the standing "int states cannot
|
||||
// integrate" refusal. The float dtypes, float16 included, keep the
|
||||
// treatment they carry today.
|
||||
func integerState(dt core.Dtype) bool {
|
||||
switch dt {
|
||||
case core.Bool, core.Int, core.Int8, core.Uint8, core.Int16, core.Uint16, core.Int32, core.Uint32:
|
||||
|
||||
Reference in New Issue
Block a user