I am starting to use the Numpy and really like it's array handling capabilities. Is there some library that I can use in C# that provides similar capabilities with arrays. The features I would like most are:
- Creating one array from another
- Easy/trival iteration of arrays of n dimension
- Slicing of arrays
NumPY has been ported to .NET via IronPython. Look here for the home page.
I don't think you need a library. I think LINQ does all you mention quite well.
Creating one array from another
Easy iteration
Slicing of arrays
The awkward
.Cast<int>
in the last example is due to the quirk that multidimensional arrays in C# are onlyIEnumerable
and notIEnumerable<T>
.