File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,8 @@ def make_linear_combination(*functions, weights=None):
3838 'same as the number of given functions'
3939
4040 def linear_combination (* args , ** kwargs ):
41- return np .sum ([ weights [i ]* functions [i ](* args , ** kwargs )
42- for i in range (len (weights ))] , axis = 0 )
41+ return np .sum (( weights [i ]* functions [i ](* args , ** kwargs )
42+ for i in range (len (weights ))) , axis = 0 )
4343
4444 return linear_combination
4545
@@ -73,8 +73,8 @@ def make_product(*functions, exponents=None):
7373 'same as the number of given functions'
7474
7575 def product_function (* args , ** kwargs ):
76- return np .prod ([ functions [i ](* args , ** kwargs )** exponents [i ]
77- for i in range (len (exponents ))] , axis = 0 )
76+ return np .prod (( functions [i ](* args , ** kwargs )** exponents [i ]
77+ for i in range (len (exponents ))) , axis = 0 )
7878
7979 return product_function
8080
You can’t perform that action at this time.
0 commit comments