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 xdiag matrix

Macro: unit
Description: Calculates a d-dimensional identity matrix.

Usage: x = unit(d)
Input:
d integer
Output:
x d-dimensional unit matrix

Example:
library("xplore")
unit(3)
Result:

Contents of x
[1,]   1   0   0 
[2,]   0   1   0 
[3,]   0   0   1 

Library: xplore
See also: diag xdiag matrix

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: ChristopherKath 970608.1000
(C) MD*TECH Method and Data Technologies, 17.8.2000