Julien Schueller
Julien Schueller
hello @karypis, any update ? the metis/gklib repos here are quite dead but still widely used and need maintenance
@adutfoy @mbaudin47 seems this one was not treated, I remove the 1.25 tag
a simpler solution is to expand the formula from python strings, ie something like `'+'.join([f"{i}*(X{i} - 0.5)" for i in range(15)])`
there is also: ``` var multiplier[x[]]; iota(multiplier,1,1); y := sum((x * multiplier) - 0.5); ```
I havent tested this, but iota should be there reading exprtk sources
you dont even need the X array nor the for loop if you expand everything from python
indeed the new syntax works to initialize the multiplier, so these two are equivalent: ``` import openturns as ot input_dimension = 15 inputs = ['X' + str(x) for x in...
you can use string expansion to build the formula
yes, you can also use `ot.Description.BuildDefault(input_dimension)` instead of the comprehension list