Get a whole column in a matrix
C#
2
Posts
2
Posters
0
Views
1
Watching
-
Can I get a whole column in a matrix with doubles with some command? For example if I want the fifth column: something like
Matrix[(all rows), 5]
? Thanks
Depends on the data structure, which Matrix class do you use? .NET does not have a built in one, but XNA for example does. If it's just a two-dimensional array then you can simply loop over the n-th item in each nested array to get the values for one row. regards