2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-23 05:42:30 +00:00
This commit is contained in:
stefanseefeld
2024-07-01 19:30:19 +00:00
parent 467f2a5f66
commit 69603ea1ed
8 changed files with 6 additions and 6 deletions

View File

@@ -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>

View File

@@ -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

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>