Search the web
Sign In
New User? Sign Up
Fortran · Fortran Q/A's, info, lib and fans
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Re: a question ' abaut SNE sub   Message List  
Reply | Forward Message #154 of 518 |
Initialization of arrays


Hi all,

If I have to initialize all the elements of an array , are the statements
below valid?? I don't want to use do loop ti initialize all elements because
there are hundreds of such arrays in my program each having size 1024. Please
let me know if I can avoid do loops .

REAL VINARRAY(6)

VINARRAY = 0.D0

Best regards,

Vinay

http://vinay.envy.nu/

Catch all the cricket action. Download Yahoo! Score tracker

[Non-text portions of this message have been removed]




Thu Feb 6, 2003 6:03 am

vinay_cdac
Offline Offline
Send Email Send Email

Forward
Message #154 of 518 |
Expand Messages Author Sort by Date

hi, could you explain us a little more about sne method,.. is it numerical method or analitic matrix solution. Or better to send algorithm of SNE. so we can...
ragip tolga
ragip_tolga
Offline Send Email
Jan 31, 2003
2:49 pm

Hi all, If I have to initialize all the elements of an array , are the statements below valid?? I don't want to use do loop ti initialize all elements because...
Vinay
vinay_cdac
Offline Send Email
Feb 6, 2003
6:04 am

Hi, You can use "dimension vinarray(6)" Here in the one dimension array you can store at the most 6 elements. For 2 dim, one can use dimension x(10,10) This is...
Raj Gupta
rajgupta121
Offline Send Email
Feb 6, 2003
3:03 pm

Thanks Raj, I do use DIMENSION VINARRAY(6) But I see only in UNIX the array is initialized to 0. On Windows all the array elements are initialized to some...
Vinay
vinay_cdac
Offline Send Email
Feb 7, 2003
3:23 am

Hi, Frankly speaking I never tried to compile and run a fortran prog. on windows platform. In the worst case you can create a subroutine for initialisation and...
Raj Gupta
rajgupta121
Offline Send Email
Feb 7, 2003
4:17 am

In Ftn77 try BLOCK DATA COMMON /ARRAYNME/ VINARRAY(6) INTEGER SIZE PARAMETER (SIZE = 6) DIMENSION VINARRAY(6) DATA (VINARRAY(I), I = 1,6) / SIZE * 0.0/ . . . ....
Howard Jones
holyheadian
Offline Send Email
Feb 7, 2003
1:49 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help