Fortran Divide an Array into a Scalar in FORTRAN: Get Help Here!

AI Thread Summary
The discussion centers on dividing elements of a 1x3414 matrix in FORTRAN by a scalar value (24480*2). The original poster seeks guidance on the appropriate function to achieve this division. Participants express confusion over the request, particularly the phrase "divide elements of an array into a scalar," and seek clarification on the intended outcome. There is a suggestion for the poster to demonstrate prior attempts and clarify their expectations for the results. Overall, the conversation emphasizes the need for clearer communication regarding the matrix's transformation and the specific operations desired.
Davoodk
Messages
11
Reaction score
0
How can i divide elements of an array into a scalar. I mean, i have read my data file into a matrix in FORTRAN which this matrix is 1*3414. Then, I want that each elements of this matrix is divided to (24480*2).

I will be so grateful if you guide me the appropriate function.

Thanks a lot
 
Technology news on Phys.org
Have you read anything about Fortran?
about arrays in Fortran?
As far as your division goes:
What have you tried?
Did it work?
Why not?
What did you expect the result to be?

Show something effort, trials and errors, first, please.
 
Davoodk said:
How can i divide elements of an array into a scalar. I mean, i have read my data file into a matrix in FORTRAN which this matrix is 1*3414. Then, I want that each elements of this matrix is divided to (24480*2).
I have no idea what you are asking. In particular I don't understand "divide elements of an array into a scalar."

My interpretation of what you said is that you have a matrix that is an array with 3414 elements. (A matrix with 1 row and 3414 columns.)

Somehow you want to do something to this array to produce a matrix with 24480 rows and 2 columns.

In addition to what gsal said, please clarify what you said above.
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.

Similar threads

Replies
2
Views
1K
Replies
5
Views
5K
Replies
1
Views
3K
Replies
2
Views
2K
Replies
4
Views
2K
Replies
5
Views
3K
Replies
16
Views
3K
Back
Top