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.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I had a Microsoft Technical interview this past Friday, the question I was asked was this : How do you find the middle value for a dataset that is too big to fit in RAM? I was not able to figure this out during the interview, but I have been look in this all weekend and I read something online that said it can be done at O(N) using something called the counting sort histogram algorithm ( I did not learn that in my advanced data structures and algorithms class). I have watched some youtube...

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