[R] triangular matrix

Cesar Augusto de Freitas Anselmo cafa at cin.ufpe.br
Wed Nov 1 15:41:34 CET 2000


How I make the below matrix

| a^0	0	0	...	0   |
| a^1	a^0	0	...	0   |
| a^2	a^1	a^0	...	0   | 
| 	.			    |	
| 	.			    |
| 	.			    |			
| a^n	a^(n-1) a^(n-2) ...	a^0 |

with no loops, where "a" is a constant?

========================================================================
Cézar de Freitas
Depto. de Estatística - UFPE
Recife - Pernambuco - Brasil

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list