Package qubx :: Package fast :: Module fast_utils
[hide private]
[frames] | no frames]

Module fast_utils

source code

Common imports and data marshalling for qubfast/ctypes bridge.

Copyright 2008-2014 Research Foundation State University of New York This file is part of QUB Express.

QUB Express is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

QUB Express is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License, named LICENSE.txt, in the QUB Express program directory. If not, see <http://www.gnu.org/licenses/>.

Classes [hide private]
  c_short_p
  c_int_p
  c_int_pp
  c_int_ppp
  c_long_p
  c_size_t_p
  c_float_p
  c_float_pp
  c_float_ppp
  c_double_p
  c_double_pp
  c_double_ppp
Functions [hide private]
 
buffer_to_pointer(buf) source code
 
cdata(arr, typ) source code
 
ptr_to_array(ptr, count, ctype, dtype) source code
 
print_struct(s, indent='') source code
 
buffer_as_array(buf, ctype, dtype, count) source code
 
buffer_as_array_of_int(buf, N) source code
 
buffer_as_array_of_double(buf, N) source code
 
buffer_as_matrix_of_int(buf, N, M) source code
 
buffer_as_matrix_of_double(buf, N, M) source code
Variables [hide private]
  pybuf = ctypes.pythonapi.PyBuffer_FromReadWriteMemory
  pyobj_asreadbuf = ctypes.pythonapi.PyObject_AsReadBuffer
  qubfast = <CDLL 'libqubfast.so', handle 2c23810 at 7fd12ac5d110>
  __package__ = 'qubx.fast'