mirror of
https://github.com/boostorg/python.git
synced 2026-01-23 05:42:30 +00:00
deploy: 1fed0824ad
This commit is contained in:
@@ -126,7 +126,7 @@
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"><p><small>Last revised: May 15, 2024 at 05:47:29 GMT</small></p></td>
|
||||
<td align="left"><p><small>Last revised: July 01, 2024 at 19:30:12 GMT</small></p></td>
|
||||
<td align="right"><div class="copyright-footer"></div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -48,7 +48,7 @@ Next, create a list, and add this tuple to the list. Then use the list to create
|
||||
list_for_dtype.append(for_custom_dtype) ;
|
||||
np::dtype custom_dtype = np::dtype(list_for_dtype) ;
|
||||
|
||||
We are now ready to create an ndarray with dimensions specified by \*shape\* and of custom dtpye ::
|
||||
We are now ready to create an ndarray with dimensions specified by \*shape\* and of custom dtype ::
|
||||
|
||||
np::ndarray new_array = np::zeros(shape,custom_dtype);
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -112,7 +112,7 @@ Here, we first convert the variable into a string, and then extract it as a C++
|
||||
<span class="n">np</span><span class="o">::</span><span class="n">dtype</span> <span class="n">custom_dtype</span> <span class="o">=</span> <span class="n">np</span><span class="o">::</span><span class="n">dtype</span><span class="p">(</span><span class="n">list_for_dtype</span><span class="p">)</span> <span class="p">;</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p>We are now ready to create an ndarray with dimensions specified by *shape* and of custom dtpye</p>
|
||||
<p>We are now ready to create an ndarray with dimensions specified by *shape* and of custom dtype</p>
|
||||
<div class="highlight-c++ notranslate"><div class="highlight"><pre><span></span> <span class="n">np</span><span class="o">::</span><span class="n">ndarray</span> <span class="n">new_array</span> <span class="o">=</span> <span class="n">np</span><span class="o">::</span><span class="n">zeros</span><span class="p">(</span><span class="n">shape</span><span class="p">,</span><span class="n">custom_dtype</span><span class="p">);</span>
|
||||
<span class="p">}</span>
|
||||
</pre></div>
|
||||
|
||||
@@ -127,7 +127,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"><p><small>Last revised: May 15, 2024 at 05:47:29 GMT</small></p></td>
|
||||
<td align="left"><p><small>Last revised: July 01, 2024 at 19:30:12 GMT</small></p></td>
|
||||
<td align="right"><div class="copyright-footer"></div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
|
||||
@@ -140,7 +140,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"><p><small>Last revised: May 15, 2024 at 05:47:34 GMT</small></p></td>
|
||||
<td align="left"><p><small>Last revised: July 01, 2024 at 19:30:17 GMT</small></p></td>
|
||||
<td align="right"><div class="copyright-footer"></div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
|
||||
Reference in New Issue
Block a user