gorgonia.org/gorgonia@v0.9.17/opt.go (about) 1 package gorgonia 2 3 // global options 4 5 var debugDerives = true 6 var stabilization = true 7 var optimizationLevel = 0 8 9 // UseStabilization sets the global option to invoke stabilization functions when building the graph. 10 // Numerical stabilization is on by default 11 func UseStabilization() { 12 stabilization = true 13 } 14 15 // UseNonStable turns off the stabilization functions when building graphs. 16 func UseNonStable() { 17 stabilization = false 18 } 19 20 // DebugDerives turns on the derivation debug option when printing a graph 21 func DebugDerives() { 22 debugDerives = true 23 } 24 25 // DontDebugDerives turns off derivation debug option when printing a graph. 26 // It is off by default 27 func DontDebugDerives() { 28 debugDerives = false 29 }