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: multi
See also: matrix

Macro: shiftr
Description: Shifts the rows of a matrix

Usage: y = shiftr(x,a,b)
Input:
x matrix (n x k)
a vector (n x 1) or (1 x 1) gives amount of shift per row
b vector (n x 1) or (1 x 1) values that are used to fill up
Output:
y matrix with rows shifted to the right by a and filled with b

Example:
library("multi")
shiftr(eye(2),1,2)
Result:
[1,] 2.000000 1.000000 
[2,] 2.000000 0.000000 

Library: multi
See also: 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: Hafner, Sperlich 971121, CH 980408
(C) MD*TECH Method and Data Technologies, 28.6.1999