GET /api/v2/video/1203
HTTP 200 OK Vary: Accept Content-Type: text/html; charset=utf-8 Allow: GET, PUT, PATCH, HEAD, OPTIONS
{ "category": "SciPy 2012", "language": "English", "slug": "qndarray-a-numpy-clone-for-cqt", "speakers": [ "Glen W. Mabey" ], "tags": [ "General" ], "id": 1203, "state": 1, "title": "QNDArray: A Numpy Clone for C++/Qt", "summary": "", "description": "While Numpy/Scipy is an attractive implementation platform for many\nalgorithms, in some cases C++ is mandated by a customer. However, a foundation\nof numpy's behavior is the notion of reference-counted instances, and\nimplementing an efficient, cross-platform mechanism for reference counting is\nno trivial prerequisite.\n\nThe reference counting mechanisms already implemented in the Qt C++ toolkit\nprovide a cross-platform foundation upon which a numpy-like array class can be\nbuilt. In this talk one such implementation is discussed, QNDArray. In fact,\nby mimicking the numpy behaviors, the job of implementing QNDArray became much\neasier, as the task of \"defining the behavior\" became \"adopting the behavior,\"\nto include function names.\n\nIn particular, the following aspects of the implementation were found to be\ntricky and deserve discussion in this presentation:\n\n \n\n * slicing multidimensional arrays given the limitations of operator[] in C++,\n * const\n * partial specialization\n * implicit vs. explicit data sharing in Qt\nQNDArray has been deployed in scientific research applications and currently\nhas the following features:\n\n \n\n * bit-packed boolean arrays\n * nascent masked array support\n * unit test suite that validates QNDArray behavior against numpy behavior\n * bounds checking with Q_ASSERT() (becomes a no-op in release mode)\n * memmap()ed arrays via QFile::map()\n * easily integrated as a QVariant value, leading to a natural mapping from QVariantMap to Python dict.\n * float16 implementation including in-place compare\n\nThe author has approval from his management to submit the source code for\nQNDArray to the Qt Project and plans to have it freely available for download\nvia []( before the SciPy\nconference begins.\n\n", "quality_notes": "", "copyright_text": "CC BY-SA", "embed": "<object width=\"640\" height=\"390\"><param name=\"movie\" value=\";hl=en_US\"></param><param name=\"allowFullScreen\" value=\"true\"></param><param name=\"allowscriptaccess\" value=\"always\"></param><embed src=\";hl=en_US\" type=\"application/x-shockwave-flash\" width=\"640\" height=\"390\" allowscriptaccess=\"always\" allowfullscreen=\"true\"></embed></object>", "thumbnail_url": "", "duration": null, "video_ogv_length": null, "video_ogv_url": null, "video_ogv_download_only": false, "video_mp4_length": null, "video_mp4_url": "", "video_mp4_download_only": false, "video_webm_length": null, "video_webm_url": "", "video_webm_download_only": false, "video_flv_length": null, "video_flv_url": "", "video_flv_download_only": false, "source_url": "", "whiteboard": "", "recorded": "2012-07-18", "added": "2012-08-31T16:34:48", "updated": "2014-04-08T20:28:27.156" }