[ Web Proxy ]
URL:
Viewing: https://rstudio.github.io/reticulate/reference/../articles/../articles/../reference/np_array.html [Back]  [Original]

NumPy array np_array reticulate Skip to contents
reticulate 1.47.0

Create NumPy arrays and convert the data type and in-memory ordering of existing NumPy arrays.

Usage

np_array(data, dtype = NULL, order = "C")

Arguments

data

Vector or existing NumPy array providing data for the array

dtype

Numpy data type (e.g. "float32", "float64", etc.)

order

Memory ordering for array. "C" means C order, "F" means Fortran order.

Value

A NumPy array object.

On this page


Web Proxy Viewer  |  New URL  |  Original Page