Just a short question regarding multidimensional arrays in C#.
How can I check if one row of a multidimensional array contains a non-Zero value? In Matlab, the "any"-command does exactly what I need.
Finally I need to put the request into a while condition. Means in Matlab: while(any(array[1,2,:])) --> which means: while(any-entry-of-the-row-is-not-Zero)...
I tried already the Array.Exists() or Array.Find() but it seems to work only with one-dimensional arrays.
Thanks
You have a couple options
or as Sriram Sakthivel Suggested
More spefically to your question
MSDN Information
Any
Contains
IndexOf