Kaba class Circuit ed
...
Syntax ed
class Circuit
var edges: owned![Edge][]
var node_grounded: i32
var node_input: i32
var nodes: Node[]
# constructors
func mut __init__()
# functions
func mut add_default(n: i32[], t: EdgeType) -> Edge&
func mut clear()
func create_G(out G: Matrix, dt: f64)
func create_I(out I: f64[], I_in: f64, dt: f64)
func export() -> string
func get_xxxx() -> f64
func mut import(s: string)
func mut optimizer_step(I_in: f64, dt: f64)
func quick_out()
func mut reset_default()
func mut reset_state()
func mut simulate(t_max: f64, dt: f64, amp: f64, omega: f64, type: i32, out res: SimResult)
func mut time_step(I_in: f64, dt: f64)
Functions ed
- func mut add_default(n: i32[], t: EdgeType) -> Edge&
- ...
- func mut clear()
- ...
- func create_G(out G: Matrix, dt: f64)
- ...
- func create_I(out I: f64[], I_in: f64, dt: f64)
- ...
- func export() -> string
- ...
- func get_xxxx() -> f64
- ...
- func mut import(s: string)
- ...
- func mut optimizer_step(I_in: f64, dt: f64)
- ...
- func quick_out()
- ...
- func mut reset_default()
- ...
- func mut reset_state()
- ...
- func mut simulate(t_max: f64, dt: f64, amp: f64, omega: f64, type: i32, out res: SimResult)
- ...
- func mut time_step(I_in: f64, dt: f64)
- ...
Elements ed
- var edges: owned![Edge][]
- ...
- var node_grounded: i32
- ...
- var node_input: i32
- ...
- var nodes: Node[]
- ...