Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: xplore
See also: diag

Quantlet: xdiag
Description: Extracts diagonal elements from matrices.

Usage: d = xdiag (x)
Input:
x n x n x d1 x d2 ... array of quadratic matrices
Output:
d n x 1 x d1 x d2 ... array of diagonal elements

Example:

library("xplore")

xdiag (diag (1:4))

Result:



Contents of d

[1,]     1

[2,]     2 

[3,]     3 

[4,]     4 


Library: xplore
See also: diag

Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Author: Sigbert Klinke, 980519
(C) MD*TECH Method and Data Technologies, 21.9.2000