Skip to content

Commit 91ed7d5

Browse files
committed
NPTypeCode: Moved to namespace NumSharp
1 parent 9994c2b commit 91ed7d5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/NumSharp.Core/Backends/NPTypeCode.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
using System.Runtime.InteropServices;
66
using NumSharp.Utilities;
77

8-
namespace NumSharp.Backends
8+
// ReSharper disable once CheckNamespace
9+
namespace NumSharp
910
{
1011
/// <summary>
1112
/// Represents all available types in numpy.

src/NumSharp.Core/Manipulation/np.ravel.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ public static partial class np
99
/// </summary>
1010
/// <remarks>https://docs.scipy.org/doc/numpy/reference/generated/numpy.ravel.html</remarks>
1111
/// <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>
1313
public static NDArray ravel(NDArray a)
1414
{
15-
//TODO! when slice reshaping is done, prevent this cloning.
1615
// ReSharper disable once ConvertIfStatementToReturnStatement
1716
if (!a.Shape.IsContiguous)
1817
return new NDArray(new UnmanagedStorage(a.Storage.CloneData(), Shape.Vector(a.size)));

0 commit comments

Comments
 (0)