File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 5
5
using System . Runtime . InteropServices ;
6
6
using NumSharp . Utilities ;
7
7
8
- namespace NumSharp . Backends
8
+ // ReSharper disable once CheckNamespace
9
+ namespace NumSharp
9
10
{
10
11
/// <summary>
11
12
/// Represents all available types in numpy.
Original file line number Diff line number Diff line change @@ -9,10 +9,9 @@ public static partial class np
9
9
/// </summary>
10
10
/// <remarks>https://docs.scipy.org/doc/numpy/reference/generated/numpy.ravel.html</remarks>
11
11
/// <param name="a">Input array. The elements in a are read in the order specified by order, and packed as a 1-D array.</param>
12
- /// <remarks><br></br>If this array's <see cref="Shape"/> is a slice , the a copy will be made.</remarks>
12
+ /// <remarks><br></br>If this array's <see cref="Shape"/> is a sliced or broadcasted , the a copy will be made.</remarks>
13
13
public static NDArray ravel ( NDArray a )
14
14
{
15
- //TODO! when slice reshaping is done, prevent this cloning.
16
15
// ReSharper disable once ConvertIfStatementToReturnStatement
17
16
if ( ! a . Shape . IsContiguous )
18
17
return new NDArray ( new UnmanagedStorage ( a . Storage . CloneData ( ) , Shape . Vector ( a . size ) ) ) ;
You can’t perform that action at this time.
0 commit comments