forked from clj-python/libpython-clj
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibpython-clj2.python.np-array.html
13 lines (12 loc) · 7.19 KB
/
libpython-clj2.python.np-array.html
1
2
3
4
5
6
7
8
9
10
11
12
13
<!DOCTYPE html PUBLIC ""
"">
<html><head><meta charset="UTF-8" /><title>libpython-clj2.python.np-array documentation</title><script async="true" src="https://www.googletagmanager.com/gtag/js?id=G-LN7PG6FJ2D"></script><script>window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-LN7PG6FJ2D');</script><link rel="stylesheet" type="text/css" href="css/default.css" /><link rel="stylesheet" type="text/css" href="highlight/solarized-light.css" /><script type="text/javascript" src="highlight/highlight.min.js"></script><script type="text/javascript" src="js/jquery.min.js"></script><script type="text/javascript" src="js/page_effects.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div id="header"><h2>Generated by <a href="https://github.com/weavejester/codox">Codox</a> with <a href="https://github.com/xsc/codox-theme-rdash">RDash UI</a> theme</h2><h1><a href="index.html"><span class="project-title"><span class="project-name">libpython-clj</span> <span class="project-version">2.024</span></span></a></h1></div><div class="sidebar primary"><h3 class="no-link"><span class="inner">Project</span></h3><ul class="index-link"><li class="depth-1 "><a href="index.html"><div class="inner">Index</div></a></li></ul><h3 class="no-link"><span class="inner">Topics</span></h3><ul><li class="depth-1 "><a href="Usage.html"><div class="inner"><span>LibPython-CLJ Usage</span></div></a></li><li class="depth-1 "><a href="embedded.html"><div class="inner"><span>Embedding Clojure In Python</span></div></a></li><li class="depth-1 "><a href="environments.html"><div class="inner"><span>Python Environments</span></div></a></li><li class="depth-1 "><a href="new-to-clojure.html"><div class="inner"><span>So Many Parenthesis!</span></div></a></li><li class="depth-1 "><a href="scopes-and-gc.html"><div class="inner"><span>Scopes And Garbage Collection</span></div></a></li><li class="depth-1 "><a href="slicing.html"><div class="inner"><span>Slicing And Slices</span></div></a></li></ul><h3 class="no-link"><span class="inner">Namespaces</span></h3><ul><li class="depth-1"><div class="no-link"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>libpython-clj2</span></div></div></li><li class="depth-2 branch"><a href="libpython-clj2.codegen.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>codegen</span></div></a></li><li class="depth-2 branch"><a href="libpython-clj2.embedded.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>embedded</span></div></a></li><li class="depth-2 branch"><a href="libpython-clj2.java-api.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>java-api</span></div></a></li><li class="depth-2"><a href="libpython-clj2.python.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>python</span></div></a></li><li class="depth-3 current"><a href="libpython-clj2.python.np-array.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>np-array</span></div></a></li><li class="depth-2"><a href="libpython-clj2.require.html"><div class="inner"><span class="tree" style="top: -52px;"><span class="top" style="height: 61px;"></span><span class="bottom"></span></span><span>require</span></div></a></li></ul></div><div class="sidebar secondary"><h3><a href="#top"><span class="inner">Public Vars</span></a></h3><ul><li class="depth-1"><a href="libpython-clj2.python.np-array.html#var-datatype-.3Eptr-type-name"><div class="inner"><span>datatype->ptr-type-name</span></div></a></li><li class="depth-1"><a href="libpython-clj2.python.np-array.html#var-descriptor-.3Enumpy"><div class="inner"><span>descriptor->numpy</span></div></a></li><li class="depth-1"><a href="libpython-clj2.python.np-array.html#var-dtype-.3Epy-dtype-map"><div class="inner"><span>dtype->py-dtype-map</span></div></a></li><li class="depth-1"><a href="libpython-clj2.python.np-array.html#var-numpy-.3Edesc"><div class="inner"><span>numpy->desc</span></div></a></li><li class="depth-1"><a href="libpython-clj2.python.np-array.html#var-obj-dtype-.3Edtype"><div class="inner"><span>obj-dtype->dtype</span></div></a></li><li class="depth-1"><a href="libpython-clj2.python.np-array.html#var-py-dtype-.3Edtype-map"><div class="inner"><span>py-dtype->dtype-map</span></div></a></li></ul></div><div class="namespace-docs" id="content"><h1 class="anchor" id="top">libpython-clj2.python.np-array</h1><div class="doc"><div class="markdown"><p>Bindings for deeper intergration of numpy into the tech.v3.datatype system. This
allows seamless usage of numpy arrays in datatype and tensor functionality such as
enabling the tech.v3.tensor/ensure-tensor call to work with numpy arrays -- using
zero copying when possible.</p>
<p>All users need to do is call require this namespace; then as-jvm will convert a numpy
array into a tech tensor in-place.</p>
</div></div><div class="public anchor" id="var-datatype-.3Eptr-type-name"><h3>datatype->ptr-type-name</h3><div class="usage"><code>(datatype->ptr-type-name dtype)</code></div><div class="doc"><div class="markdown"></div></div><div class="src-link"><a href="https://github.com/clj-python/libpython-clj/blob/master/src/libpython_clj2/python/np_array.clj#L135">view source</a></div></div><div class="public anchor" id="var-descriptor-.3Enumpy"><h3>descriptor->numpy</h3><div class="usage"><code>(descriptor->numpy {:keys [ptr shape strides elemwise-datatype], :as buffer-desc})</code></div><div class="doc"><div class="markdown"></div></div><div class="src-link"><a href="https://github.com/clj-python/libpython-clj/blob/master/src/libpython_clj2/python/np_array.clj#L150">view source</a></div></div><div class="public anchor" id="var-dtype-.3Epy-dtype-map"><h3>dtype->py-dtype-map</h3><div class="usage"></div><div class="doc"><div class="markdown"></div></div><div class="src-link"><a href="https://github.com/clj-python/libpython-clj/blob/master/src/libpython_clj2/python/np_array.clj#L37">view source</a></div></div><div class="public anchor" id="var-numpy-.3Edesc"><h3>numpy->desc</h3><div class="usage"><code>(numpy->desc np-obj)</code></div><div class="doc"><div class="markdown"></div></div><div class="src-link"><a href="https://github.com/clj-python/libpython-clj/blob/master/src/libpython_clj2/python/np_array.clj#L55">view source</a></div></div><div class="public anchor" id="var-obj-dtype-.3Edtype"><h3>obj-dtype->dtype</h3><div class="usage"><code>(obj-dtype->dtype py-dtype)</code></div><div class="doc"><div class="markdown"></div></div><div class="src-link"><a href="https://github.com/clj-python/libpython-clj/blob/master/src/libpython_clj2/python/np_array.clj#L41">view source</a></div></div><div class="public anchor" id="var-py-dtype-.3Edtype-map"><h3>py-dtype->dtype-map</h3><div class="usage"></div><div class="doc"><div class="markdown"></div></div><div class="src-link"><a href="https://github.com/clj-python/libpython-clj/blob/master/src/libpython_clj2/python/np_array.clj#L25">view source</a></div></div></div></body></html>