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

where construct

milenko1976
Beginner
467 Views
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 Kudos
2 Replies
TimP
Honored Contributor III
467 Views
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 Kudos
milenko1976
Beginner
467 Views
Thanks Tim,it works>I need this for some weighting coefficients.
0 Kudos
Reply