Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

where construct

milenko1976
Débutant
786 Visites
I am having a lot of problems with this.I have calculated matrix(7,7),want to put in array(56,7) the rest are zeros.Is this possible with WHERE with ifort?
0 Compliments
2 Réponses
TimP
Contributeur émérite III
786 Visites
Maybe, but can't guess why you would do that. If something like
array(1:7,:) = matrix
array(8:56,:) = 0
is what you mean, that should work.
0 Compliments
milenko1976
Débutant
786 Visites
Thanks Tim,it works>I need this for some weighting coefficients.
0 Compliments
Répondre