Types
InterpolatorProc[T] = proc (x: float): T
- Source Edit
NumContext[T; U] = ref object fValues*: Table[string, U] tValues*: Table[string, T]
- Source Edit
NumContextProc[T; U] = proc (x: U; ctx: NumContext[T, U]): T
- Source Edit
ODEProc[T; U] = proc (t: U; y: T; ctx: NumContext[T, U]): T
- Source Edit
Procs
proc `[]`[T; U](ctx: NumContext[T, U]; key: enum): T
- Source Edit
proc `[]`[T; U](ctx: NumContext[T, U]; key: string): T
- Source Edit
proc `[]=`[T; U](ctx: NumContext[T, U]; key: enum; val: T)
- Source Edit
proc `[]=`[T; U](ctx: NumContext[T, U]; key: string; val: T)
- Source Edit
proc getF[T; U](ctx: NumContext[T, U]; key: enum): U
- Source Edit
proc getF[T; U](ctx: NumContext[T, U]; key: string): U
- Source Edit
proc newNumContext[T; U](fValues: Table[string, U] = initTable[string, U](); tValues: Table[string, T] = initTable[string, T]()): NumContext[ T, U]
- Source Edit
proc setF[T; U](ctx: NumContext[T, U]; key: enum; val: U)
- Source Edit
proc setF[T; U](ctx: NumContext[T, U]; key: string; val: U)
- Source Edit