<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Dear r-plus users,
<p>i would like to use outer in the following case outer(x,y,FUN="fun")
<br>i suppose that my function fun is of the following form:
<br>fun<-function(x,y)
<br>{
<br>if(y>x) return(x+y)
<br>if(y<=x) return(0)
<br>}
<br>My problem is that the command outer(x,y,FUN="fun") return me a
<br>null matrix instead of an upper triangular matrix.
<br>Is somebody have a solution ?
<p>Thanks for your help.
<br>
<br>
<pre>--
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
Olivier MARTIN phone: (33) 04 76 61 53 55
Projet IS2 06 08 67 93 42
INRIA Rhone-Alpes fax : (33) 04 76 61 54 77
655, Av. de l'Europe
Montbonnot e-mail:olivier.martin@inrialpes.fr
38334 Saint Ismier cedex
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-</pre>
</html>