commonconstraints

package
v0.0.0-...-3805acb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustBeActivationColumns

func MustBeActivationColumns(comp *wizard.CompiledIOP, c ifaces.Column, option ...any)

MustBeActivationColumns constrains all the columns of the form "IsActive" to have the correct form: the column is binary and it cannot transition from 0 to 1.

func MustBeBinary

func MustBeBinary(comp *wizard.CompiledIOP, c ifaces.Column)

MustBeBinary constrains the current column to be binary.

func MustBeMutuallyExclusiveBinaryFlags

func MustBeMutuallyExclusiveBinaryFlags(comp *wizard.CompiledIOP, isActive ifaces.Column, flags []ifaces.Column)

MustBeMutuallyExclusiveBinaryFlags constraints all the flags to be binary and sum to isActive

func MustZeroWhenInactive

func MustZeroWhenInactive(comp *wizard.CompiledIOP, isActive ifaces.Column, cs ...ifaces.Column)

MustZeroWhenInactive constraints the column to cancel when inactive.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL