Hi,
I have a matrix of size of n x m, how can the file be read without any given size, thus making it possible to be read with any given size matrix?. Here is the scenario, I have a matrix of size 3 x 2 then someone wants to use use my program and he has a file with say matrix of size of 8 x 10...the program should handle any matrix size.
haven_u 0 Light Poster
Recommended Answers
Jump to PostCould the dimensions of the matrix not be included in the file itself? That is what I usually do. The very first entries of the file are the dimensions of the matrix, say, 8 10
The rest of the file contains the matrix entries themselves.
However you do it, you …
All 3 Replies
Kanoisa 52 Posting Whiz in Training
DavidB 44 Junior Poster
adityatandon 23 Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.