Delrows

> delrows(A,i..j);

Retourne une sous-matrice obtenue en enlevant les lignes i à j de la matrice A. i..j est un interval d'entiers tel que 1 £ i £ j £ m ou m est le nombre de lignes.

Remarque: On ne peut enlever toutes les lignes de la matrice. On doit au minimum retourner une ligne.

Exemple

> with(linalg):
Warning: new definition for norm
Warning: new definition for trace

> A := matrix(3,3,[2,2,2,2,2,3,1,-1,1]);
A := é
ê
ë
2 2 2
2 2 3
1 -1 1
ù
ú
û

> delrows(A,1..2);
[
1 -1 1
]

> delrows(A,2..2);
é
ë
2 2 2
1 -1 1
ù
û