utils

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyWitness added in v0.5.2

func CopyWitness(to, from frontend.Circuit)

func Parallelize

func Parallelize(nbIterations int, work func(int, int), maxCpus ...int)

Parallelize process in parallel the work function

func ResetWitness added in v0.5.2

func ResetWitness(c frontend.Circuit)

ResetWitness parses the reachable frontend.Variable values in the given circuit and sets them to nil

func ShallowClone added in v0.5.2

func ShallowClone(circuit frontend.Circuit) frontend.Circuit

ShallowClone clones given circuit this is actually a shallow copy --> if the circuits contains maps or slices only the reference is copied.

Types

This section is empty.

Jump to

Keyboard shortcuts

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