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: f32)
func create_I(out I: f32[], I_in: f32, dt: f32)
func export() -> string
func get_xxxx() -> f32
func mut import(s: string)
func mut optimizer_step(I_in: f32, dt: f32)
func quick_out()
func mut reset_default()
func mut reset_state()
func mut simulate(t_max: f32, dt: f32, amp: f32, omega: f32, type: i32, out res: SimResult)
func mut time_step(I_in: f32, dt: f32)
Functions ed
- func mut add_default(n: i32[], t: EdgeType) -> Edge&
- ...
- func mut clear()
- ...
- func create_G(out G: Matrix, dt: f32)
- ...
- func create_I(out I: f32[], I_in: f32, dt: f32)
- ...
- func export() -> string
- ...
- func get_xxxx() -> f32
- ...
- func mut import(s: string)
- ...
- func mut optimizer_step(I_in: f32, dt: f32)
- ...
- func quick_out()
- ...
- func mut reset_default()
- ...
- func mut reset_state()
- ...
- func mut simulate(t_max: f32, dt: f32, amp: f32, omega: f32, type: i32, out res: SimResult)
- ...
- func mut time_step(I_in: f32, dt: f32)
- ...
Elements ed
- var edges: owned![Edge][]
- ...
- var node_grounded: i32
- ...
- var node_input: i32
- ...
- var nodes: Node[]
- ...