NumPy C-API (Python C extensions)

preview_player
Показать описание
#numpy #python #clanguage
Рекомендации по теме
Комментарии
Автор

In terms of memory leaks, before returning, I should have called `PyArray_Free((PyObject *)arr, data);` in both of the sum/double methods.

tobiasbergkvist
Автор

it is the best tutorial I've ever seen in my life. And the PyArray_IS_C_CONTIGUOUS part was pure gold.

iancu_de_hunedoara
Автор

Wow! This type of content is very difficult to find, thank you!

umcanalsemvidanoyoutube
Автор

Man, the import_array() command got me for two full days, could not find it, I love you, I love you, I love you. Seriously thanks for this god-sent video!!!

Lovearbre
Автор

Please make more vids on this topic. Really interesting! Thanks!

mailoisback
Автор

nice one. showing segfaults and other pitfalls. cheers

amadlover
Автор

I don't know how to thank you, I have been searching these concepts days in and days out

shashwatbhatnagar
Автор

I was just thinking about trying to do stuff like this. Really cool work man!

dalton
Автор

smashed the like button after 1 sec. Thanks as always, Tobias

halvorbv
Автор

чувак продолжай в том же духе!
ахуенный контент!

iancu_de_hunedoara
Автор

Great video Tobias !
You nicely cover the topics with simple code and direct explanation.
Have you being able to transform between cv::Mat and PyArrayObject ?

eVITORIOe
Автор

Is it possible to publish your code? Thank you very much!

songhat-nk
Автор

how can i get float16 type array data?
npy_float16 *data = (npy_float16 *)PyArray_DATA(arr);
i try this code, but it cannot compute or printf.

kayak
Автор

Love the Swedish accent (hope I'm not wrong lol)

numeritos
Автор

Camera python script captures numpy array

I have a C Program to transform the jpg/tga

I would like to feed the C code directly with.npy files.

How to import numpy in C?

bransen
Автор

I saw you have "double *data = PyArray_DATA(arr)" in your code.
Does this cause any problem like you if you parse in a huge array and it overlaps the space for other variables?

誰でしょう-ql
Автор

I came looking for copper and I found gold

Channel-ebxu