Hi. Suppose i have a julia file, program.jl . I have some parameters that
need to be changed if it necessary inside program.jl before it is included.
The functions i want to run are depend on some set of matrices which depend
on the variables i need to change. I think a simple example can show what i
want:
program.jl
---
x = 5 ; # This value 5 to be changed.
M = f(x) ; # M is a set of matrices which is a function of x.
F1 = some function of M and other things
F2 = some function of M and other things
---
I want that F1 and F2 functions of M, not x. The problem is constructing M
takes time, so I need to construct it once. I should be able to change for
example x from 5 and to 7 before including program.jl, and when i run
include("program.jl") M should automatically be constructed. Then I should
free to to run F1 or F2 as I want. Thanks for any help.