Skip to content Skip to sidebar Skip to footer
Showing posts with the label C

Sine Wave That Exponentialy Changes Between Frequencies F1 And F2 At Given Time/amount Of Samples

I'm trying to implement Python method that generates sine wave, which ramps up between two freq… Read more Sine Wave That Exponentialy Changes Between Frequencies F1 And F2 At Given Time/amount Of Samples

Cctalk Coin Acceptor No Reaction When Coin Inserted

I write Linux application that is supposed to handle coins insertations (let's say that for now… Read more Cctalk Coin Acceptor No Reaction When Coin Inserted

Numpy/capi Error With Import_array() When Compiling Multiple Modules

I am trying to compile a C++ module to use in scipy.weave that is composed of several headers and s… Read more Numpy/capi Error With Import_array() When Compiling Multiple Modules

How To Create A Custom Python Exception Type In C Extension?

I'm writing a Python module in C. I need to report errors that can't be described by built-… Read more How To Create A Custom Python Exception Type In C Extension?

Running C In A Browser

I've spent days of research over the seemingly simple question: is it possible to run C code in… Read more Running C In A Browser

Call Python Function In C Code

i written small code like addition for two numbers in python. addition.py def add(a,b): c=… Read more Call Python Function In C Code

Creating A Numpy Array In C From An Allocated Array Is Causing Memory Leaks

I have traced a memory leak in my program to a Python module I wrote in C to efficiently parse an a… Read more Creating A Numpy Array In C From An Allocated Array Is Causing Memory Leaks

How To Convert Python Integers Into C Integers?

How tThere are many threads about going from a c language integer to python integer, but none that … Read more How To Convert Python Integers Into C Integers?

Implementing Minimization Method

I have a function in 2 variables x1,x2 f = 3*x1^2 + 4*x2^2 + 5*x1 + 6*x2 + 10 Consider x is a row v… Read more Implementing Minimization Method

Build Python Package With C Bindings In Windows (vc90) Causes Lnk1181 Fatal Error

I'm trying to build a Python package (pyspotify) with bindings to a C library (libspotify). I&#… Read more Build Python Package With C Bindings In Windows (vc90) Causes Lnk1181 Fatal Error

Including And Distributing Third Party Libraries With A Python C Extension

I'm building a C Python extension which makes use of a 'third party' library— in this c… Read more Including And Distributing Third Party Libraries With A Python C Extension

I Have 2 Very Similar C Functions Being Called From Python And Java. How Can I Combine The 2 Libraries Into 1 That Can Be Called From Both Languages?

Basically I have 2 implementations of a C function 'encrypt' which I call from python using… Read more I Have 2 Very Similar C Functions Being Called From Python And Java. How Can I Combine The 2 Libraries Into 1 That Can Be Called From Both Languages?

Bimodal Distribution In C Or Python

What's the easiest way to generate random values according to a bimodal distribution in C or Py… Read more Bimodal Distribution In C Or Python

C Code For Python's Property Function?

I am really curious as to how Python's interpreter makes an attribute x out of a method x throu… Read more C Code For Python's Property Function?

Passing List Of Numpy Arrays To C Using Cython

I have a list list_of_arrays of 3D numpy arrays that I want to pass to a C function with the templa… Read more Passing List Of Numpy Arrays To C Using Cython

Access C_char_p_array_256 In Python Using Ctypes

I have a native python bridge to some C code, which returns a pointer to an array (array of structs… Read more Access C_char_p_array_256 In Python Using Ctypes

Can A Python Program Be Run On A Computer Without Python? What About C/c++?

Can I create a Python program, send it to a remote computer, and run it there without that computer… Read more Can A Python Program Be Run On A Computer Without Python? What About C/c++?

Calculate Inverse Of A Function--library

Is there any library available to have inverse of a function? To be more specific, given a function… Read more Calculate Inverse Of A Function--library

Embedding Python In C - Segfault

From reading another post, I am trying to embbed some some Python code into C: main.c #include in… Read more Embedding Python In C - Segfault

Pointer-type Mismatch With Pyarray_simplenew

I am creating a module for Python with Numpy using the C API and encounter weird incompatibilities … Read more Pointer-type Mismatch With Pyarray_simplenew