Skip to content

Commit bc06879

Browse files
author
Christopher Doris
committed
more arguments to to_numpy
1 parent b7dcb1f commit bc06879

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/src/juliacall-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ copy of the original array.
132132
- `shape`: Tuple of lengths in each dimension.
133133
- `copy()`: A copy of the array.
134134
- `reshape(shape)`: A reshaped view of the array.
135-
- `to_numpy()`: Convert to a numpy array.
135+
- `to_numpy(dtype=None, copy=True, order="K")`: Convert to a numpy array.
136136
`````
137137

138138
`````@customdoc

src/jlwrap/array.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,9 +329,9 @@ function init_jlwrap_array()
329329
except ImportError:
330330
pass
331331
return arr
332-
def to_numpy(self, dtype=None):
332+
def to_numpy(self, dtype=None, copy=True, order="K"):
333333
import numpy
334-
return numpy.array(self, dtype=dtype)
334+
return numpy.array(self, dtype=dtype, copy=copy, order=order)
335335
""", @__FILE__(), "exec"), jl.__dict__)
336336
pycopy!(pyjlarraytype, jl.ArrayValue)
337337
end

0 commit comments

Comments
 (0)