02.05.2014 Views

Patrick Corde & Anne Fouilloux

Patrick Corde & Anne Fouilloux

Patrick Corde & Anne Fouilloux

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Initialisation 86<br />

6.3.2 – Le constructeur de vecteurs<br />

Un constructeur de vecteur est un vecteur de scalaires<br />

dont les valeurs sont encadrées par les caractères (/ et /) :<br />

tableau = (/ expr 1 , expr 2 , ..., expr n /)<br />

☞ tableau est un tableau de rang 1,<br />

☞ expr i est :<br />

➳ un scalaire,<br />

➳ une boucle DO implicite de la forme<br />

(expr scalaire, variable = m 1 ,m 2 [,m 3 ]) avec<br />

variable une variable INTEGER correspondant à<br />

l’indice de cette boucle et m 1 , m 2 , m 3 des constantes<br />

entières délimitant la boucle (voir boucle DO).<br />

☞ Le constructeur et le tableau tableau doivent être<br />

conformants.<br />

INSTITUT DU DÉVELOPPEMENT<br />

ET DES RESSOURCES<br />

EN INFORMATIQUE SCIENTIFIQUE<br />

Cours langage Fortran – 27 janvier 2006<br />

<strong>Patrick</strong> <strong>Corde</strong> et <strong>Anne</strong> <strong>Fouilloux</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!