xnn.ffnn.common.frc.flip_values#

xnn.ffnn.common.frc.flip_values(schema, values)[source]#

Reorder (or negate) a row’s values after its key was flipped into canonical order: swap the first flip values with the next flip for each of flip_pairs consecutive pairs, and negate every value when the schema sets sign_flip (a bond charge flux changes direction). Non-numeric tokens are negated as strings.

Parameters:
Return type:

list