Biomodèles/Biomodels
SCILAB 3.0 PAS A PAS
SCILAB 3.0 STEP-TO-STEP

Jacques-Deric Rouault

Laboratoire de Neurobiologie de l'Apprentissage, de la Mémoire et de la Communication. CNRS UMR 8620, Bat. 446, Université Paris-Sud, F91400 Orsay

Orscilab
ORSCILAB

17 VECTEURS, MATRICES ET HYPERMATRICES
17 VECTORS, MATRICES AND HYPERMATRICES
17.5 Opérateurs / Operators
Version 2.1.1 du 4 Février 2005 / Version 2.1.1, February 4th 2005
Biomodèles/Biomodels N°1 pp 0x-0y Décembre 2004 December 2004

Retour à la Table générale / Return to the General table
Index général / General index
Passage à la section suivante 17.6 / Next section 17.6

a
Opérations terme à terme (Matrice)
Term to term operation (Matrix)

b
Transposition (Matrice, Matrix)
' (Matrice, Matrix)


Régle générale : les opérateurs qui opérent sur un type opèrent élément par élément (terme à terme) sur une matrice du type.
General rule : the operators which act on a type acts element per element (term to term) on a matrix of the type.

Par exemple, avec une matrice de flottants :
For instance, with a matrix of floats:


// PROGRAMME SPAS170501
m1 = [1, 2, 3; 4, 5, 6];
m2 = [7, 8, 9; 1, 2, 3];
m = m1+m2,

Ch17Sc05-Fig01

Les matrices impliquées doivent être de même type et avoir les mêmes dimensions.
The matrices
implicated must be of the same type and have the same dimensions.

// PROGRAMME SPAS170502
m1 = [1, 2; 3, 4; 5, 6];
m2 = [7, 8, 9; 1, 2, 3];
m = m1+m2,

Ch17Sc05-Fig02

L'opérateur unaire prime ' permet de transposer une matrice (symétrie par rapport à la première diagonale).
The monadic operator prime ' trnasposes a matrix (symmetry according to the first diagonal).

// PROGRAMME SPAS170503
m1 = [1, 2, 3; 4, 5, 6];
m2 = m1',

Ch17Sc05-Fig03

Retour à la Table générale / Return to the General table
Index général / General index
Passage à la section suivante 17.6 / Next section 17.6