PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Matrix outpout
Goto page Previous  1, 2
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
mkcolg



Joined: 30 Jun 2004
Posts: 6134
Location: The Portland Group Inc.

PostPosted: Wed Jun 12, 2013 8:18 am    Post subject: Reply with quote

Sorry, still not quite understanding what question you're asking. Do you need to sum A(i,j) n times?

Code:
  do i=1,m
     do j=1,k
        A(i,j) = 0.0
        do n=1,n
           A(i,j)=A(i,j) + a(n)**i * b(n)**j
         enddo
     enddo
  enddo


- Mat
Back to top
View user's profile
camaptrang



Joined: 28 May 2013
Posts: 19

PostPosted: Thu Jun 13, 2013 4:43 am    Post subject: Matrix outpout Reply with quote

Hi,
Thank you very much; I solved my problem.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group