We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 315c3d5 commit 8553c10Copy full SHA for 8553c10
2 files changed
src/numeric.cpp
@@ -205,7 +205,7 @@ namespace aux
205
, bool savespace
206
, object typecode)
207
{
208
- return attr("array")(buffer, type, shape, copy, savespace, typecode);
+ return attr("factory")(buffer, type, shape, copy, savespace, typecode);
209
}
210
211
object array_base::getflat() const
test/numpy.py
@@ -87,11 +87,11 @@ def _numarray_tests():
87
>>> check(y);
88
>>> check(y.type());
89
90
- >>> check(y.array((1.2, 3.4)));
91
- >>> check(y.array((1.2, 3.4), "Double"));
92
- >>> check(y.array((1.2, 3.4), "Double", (1,2,1)));
93
- >>> check(y.array((1.2, 3.4), "Double", (2,1,1), false));
94
- >>> check(y.array((1.2, 3.4), "Double", (2,), true, true));
+ >>> check(y.factory((1.2, 3.4)));
+ >>> check(y.factory((1.2, 3.4), "Double"));
+ >>> check(y.factory((1.2, 3.4), "Double", (1,2,1)));
+ >>> check(y.factory((1.2, 3.4), "Double", (2,1,1), false));
+ >>> check(y.factory((1.2, 3.4), "Double", (2,), true, true));
95
96
>>> p.results
97
[]
0 commit comments