0

Tranform a matrix into a vector

If I have a matrix like this: 1 2 3 5 7 8 And I want to transform it into a unique vector like this: 1 2 3 5 7 8 How can I do it with python code for a generic matrix with i rows and j columns? Any ideas? Thank you

8th Nov 2020, 10:22 PM
Annalaura Gabriele
3 Réponses
+ 1
sorry i am in 10 grade and i doesn't understand
8th Nov 2020, 11:17 PM
Ãbhïšhêķ pãł
Ãbhïšhêķ pãł - avatar
0
https://code.sololearn.com/cCxDbH7t1RTu/?ref=appare Abhay Thanks, this can be usefull. But finally, I have written this code. What do you think about it? I'm not an expert, so it could probably be improved and optimized. I accept advice on this.
10th Nov 2020, 3:43 PM
Annalaura Gabriele