Closed Plankton555 closed 5 years ago
@Oceania2018 I tried using Linq instead but didn't get it to work. Any advice are welcome
Assert.IsTrue(Enumerable.SequenceEqual(arr, expected));
resulted in
The type arguments for method 'Enumerable.SequenceEqual<TSource>(IEnumerable<TSource>, IEnumerable<TSource>)' cannot be inferred from the usage. Try specifying the type arguments explicitly
Assert.IsTrue(Enumerable.SequenceEqual<double>(arr, expected));
resulted in
cannot convert from 'NumSharp.NDArray' to 'System.Collections.Generic.IEnumerable<double>
Assert.IsTrue(Enumerable.SequenceEqual(arr.GetData<double>(), expected.GetData<double>()))
4/6 tests are failing currently. The failing tests are related to summing over specific axes, as well as specifying data types.
Thank you for the PR!
Simple implementation of cumulative sum. Either call as a member function from an NDArray or as a static function via
np.cumsum()
.