search for: fconstg

Displaying 3 results from an estimated 3 matches for "fconstg".

Did you mean: constg
2017 Mar 19
2
outer not applying a constant function
Hi, the function outer can not apply a constant function as in the last line of the following example: > xg <- 1:4 > yg <- 1:4 > fxyg <- outer(xg, yg, function(x,y) x*y) > fconstg <- outer(xg, yg, function(x,y) 1.0) Error in outer(xg, yg, function(x, y) 1) : dims [product 16] do not match the length of object [1] Of course there are simpler ways to construct a constant matrix, that is not my point. It happens for me in the context of generating matrices of partial der...
2017 Mar 20
1
outer not applying a constant function
...56 +0000 writes: > > > Hi, > > the function outer can not apply a constant function as in the last line of the following example: > > >> xg <- 1:4 > >> yg <- 1:4 > >> fxyg <- outer(xg, yg, function(x,y) x*y) > >> fconstg <- outer(xg, yg, function(x,y) 1.0) > > Error in outer(xg, yg, function(x, y) 1) : > > dims [product 16] do not match the length of object [1] > > > Of course there are simpler ways to construct a constant matrix, that is not my point. > > > It happe...
2017 Mar 20
0
outer not applying a constant function
...gt;> on Sun, 19 Mar 2017 09:14:56 +0000 writes: > Hi, > the function outer can not apply a constant function as in the last line of the following example: >> xg <- 1:4 >> yg <- 1:4 >> fxyg <- outer(xg, yg, function(x,y) x*y) >> fconstg <- outer(xg, yg, function(x,y) 1.0) > Error in outer(xg, yg, function(x, y) 1) : > dims [product 16] do not match the length of object [1] > Of course there are simpler ways to construct a constant matrix, that is not my point. > It happens for me in the context of...