Skip to content

Commit

Permalink
Set publicly used fields Fn.f and FnFdf.fdf to pub
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Apr 5, 2024
1 parent 5f09b7f commit 965b148
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions func/func.v
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ pub type VectorValuedFn = fn (x f64, y []f64, params []f64) f64

// Definition of an arbitrary function with parameters
pub struct Fn {
pub:
f ArbitraryFn @[required]
mut:
params []f64
Expand Down Expand Up @@ -46,6 +47,7 @@ pub fn (f Fn) safe_eval(x f64) !f64 {

// Definition of an arbitrary function returning two values, r1, r2
pub struct FnFdf {
pub:
f ?ArbitraryFn
df ?DfFn
fdf ?FdfFn
Expand Down

0 comments on commit 965b148

Please sign in to comment.