Skip to content

Commit

Permalink
Deploying to gh-pages from @ ce89048 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
holl- committed Oct 7, 2024
1 parent 1c0aef1 commit f511036
Show file tree
Hide file tree
Showing 19 changed files with 93 additions and 83 deletions.
97 changes: 50 additions & 47 deletions Cookbook.html
Original file line number Diff line number Diff line change
Expand Up @@ -15157,12 +15157,12 @@ <h2 id="Import-for-NumPy,-TensorFlow,-Jax,-PyTorch">Import for NumPy, TensorFlow


<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr">
<pre>2024-10-07 11:30:35.674687: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:485] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
2024-10-07 11:30:35.689190: E external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:8454] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
2024-10-07 11:30:35.693621: E external/local_xla/xla/stream_executor/cuda/cuda_blas.cc:1452] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2024-10-07 11:30:35.704864: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
<pre>2024-10-07 13:21:35.849615: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:485] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
2024-10-07 13:21:35.865105: E external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:8454] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
2024-10-07 13:21:35.869499: E external/local_xla/xla/stream_executor/cuda/cuda_blas.cc:1452] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2024-10-07 13:21:35.881632: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2024-10-07 11:30:36.707855: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
2024-10-07 13:21:36.955179: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
</pre>
</div>
</div>
Expand Down Expand Up @@ -15350,7 +15350,7 @@ <h2 id="Sample-Random-Values">Sample Random Values<a class="anchor-link" href="#


<div class="jp-RenderedText jp-OutputArea-output jp-OutputArea-executeResult" data-mime-type="text/plain">
<pre><span class="ansi-green-intense-fg">(examplesᵇ=10, vectorᶜ=x,y)</span> <span class="ansi-blue-intense-fg">0.550 ± 0.280</span> <span class="ansi-white-fg">(1e-01...1e+00)</span></pre>
<pre><span class="ansi-green-intense-fg">(examplesᵇ=10, vectorᶜ=x,y)</span> <span class="ansi-blue-intense-fg">0.441 ± 0.310</span> <span class="ansi-white-fg">(3e-02...9e-01)</span></pre>
</div>

</div>
Expand Down Expand Up @@ -15400,7 +15400,7 @@ <h2 id="Slice-a-Tensor">Slice a Tensor<a class="anchor-link" href="#Slice-a-Tens


<div class="jp-RenderedText jp-OutputArea-output jp-OutputArea-executeResult" data-mime-type="text/plain">
<pre><span class="ansi-blue-intense-fg">(x=0.580, y=0.412)</span></pre>
<pre><span class="ansi-blue-intense-fg">(x=0.060, y=0.887)</span></pre>
</div>

</div>
Expand Down Expand Up @@ -15449,18 +15449,18 @@ <h2 id="Print-a-Tensor">Print a <code>Tensor</code><a class="anchor-link" href="


<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="text/plain">
<pre><span class="ansi-green-intense-fg">(examplesᵇ=10, vectorᶜ=x,y)</span> <span class="ansi-blue-intense-fg">0.550 ± 0.280</span> <span class="ansi-white-fg">(1e-01...1e+00)</span>
<pre><span class="ansi-green-intense-fg">(examplesᵇ=10, vectorᶜ=x,y)</span> <span class="ansi-blue-intense-fg">0.441 ± 0.310</span> <span class="ansi-white-fg">(3e-02...9e-01)</span>
<span class="ansi-green-intense-fg">(examplesᵇ=10, vectorᶜ=x,y)</span>
[[0.6, 0.4],
[0.1, 0.3],
[0.2, 0.4],
[1.0, 0.9],
[0.3, 0.9],
[0.2, 0.7],
[0.8, 0.4],
[0.7, 0.2],
[0.8, 0.4],
[1.0, 0.7]]
[[0.1, 0.9],
[0.1, 0.0],
[0.5, 0.1],
[0.6, 0.4],
[0.9, 0.5],
[0.7, 0.4],
[0.9, 0.9],
[0.0, 0.1],
[0.7, 0.5],
[0.4, 0.1]]
</pre>
</div>
</div>
Expand Down Expand Up @@ -15604,22 +15604,22 @@ <h2 id="Convert-a-Tensor-to-NumPy">Convert a <code>Tensor</code> to NumPy<a clas


<div class="jp-RenderedText jp-OutputArea-output jp-OutputArea-executeResult" data-mime-type="text/plain">
<pre>array([[0.3329956 , 0.4011873 , 0.6239837 , 0.0376181 , 0.89401233,
0.43821055],
[0.5358846 , 0.7988787 , 0.34376866, 0.8745558 , 0.7809825 ,
0.59379935],
[0.3717966 , 0.71178716, 0.49168497, 0.5758126 , 0.2874921 ,
0.58042383],
[0.17343128, 0.93945116, 0.27086568, 0.44141543, 0.15919876,
0.0751192 ],
[0.6516449 , 0.938997 , 0.45098168, 0.45119005, 0.70229506,
0.9216628 ],
[0.8307401 , 0.04403538, 0.28472513, 0.40246093, 0.7638735 ,
0.5899265 ],
[0.6238564 , 0.04896659, 0.8279844 , 0.21262503, 0.6256444 ,
0.7665008 ],
[0.00880033, 0.9075418 , 0.29580957, 0.31291986, 0.8558848 ,
0.02917475]], dtype=float32)</pre>
<pre>array([[4.70470846e-01, 9.20384109e-01, 9.62274969e-01, 3.22779536e-01,
3.30583692e-01, 5.49813330e-01],
[8.29283714e-01, 1.65878475e-01, 6.11229360e-01, 2.12907791e-04,
3.80763173e-01, 5.88124216e-01],
[6.20536268e-01, 2.38151789e-01, 9.02212977e-01, 8.16517115e-01,
3.35690439e-01, 2.94101655e-01],
[4.63237643e-01, 9.09590542e-01, 1.80232704e-01, 7.97231436e-01,
7.20673084e-01, 5.42150021e-01],
[3.80976796e-02, 4.47712064e-01, 1.33004129e-01, 2.09360063e-01,
4.31701779e-01, 1.87618196e-01],
[5.73881269e-01, 6.57267570e-02, 3.06678116e-01, 1.07592165e-01,
1.50276303e-01, 7.97904670e-01],
[6.59991264e-01, 8.46080661e-01, 1.22367024e-01, 8.98710072e-01,
9.09133673e-01, 4.49350476e-02],
[6.41172469e-01, 6.98916316e-01, 2.48942852e-01, 3.20672989e-05,
1.38096631e-01, 3.76250207e-01]], dtype=float32)</pre>
</div>

</div>
Expand Down Expand Up @@ -15658,16 +15658,19 @@ <h2 id="Convert-a-Tensor-to-NumPy">Convert a <code>Tensor</code> to NumPy<a clas


<div class="jp-RenderedText jp-OutputArea-output jp-OutputArea-executeResult" data-mime-type="text/plain">
<pre>array([[0.3329956 , 0.4011873 , 0.6239837 , 0.0376181 , 0.89401233,
0.43821055, 0.5358846 , 0.7988787 , 0.34376866, 0.8745558 ,
0.7809825 , 0.59379935, 0.3717966 , 0.71178716, 0.49168497,
0.5758126 , 0.2874921 , 0.58042383, 0.17343128, 0.93945116,
0.27086568, 0.44141543, 0.15919876, 0.0751192 , 0.6516449 ,
0.938997 , 0.45098168, 0.45119005, 0.70229506, 0.9216628 ,
0.8307401 , 0.04403538, 0.28472513, 0.40246093, 0.7638735 ,
0.5899265 , 0.6238564 , 0.04896659, 0.8279844 , 0.21262503,
0.6256444 , 0.7665008 , 0.00880033, 0.9075418 , 0.29580957,
0.31291986, 0.8558848 , 0.02917475]], dtype=float32)</pre>
<pre>array([[4.70470846e-01, 9.20384109e-01, 9.62274969e-01, 3.22779536e-01,
3.30583692e-01, 5.49813330e-01, 8.29283714e-01, 1.65878475e-01,
6.11229360e-01, 2.12907791e-04, 3.80763173e-01, 5.88124216e-01,
6.20536268e-01, 2.38151789e-01, 9.02212977e-01, 8.16517115e-01,
3.35690439e-01, 2.94101655e-01, 4.63237643e-01, 9.09590542e-01,
1.80232704e-01, 7.97231436e-01, 7.20673084e-01, 5.42150021e-01,
3.80976796e-02, 4.47712064e-01, 1.33004129e-01, 2.09360063e-01,
4.31701779e-01, 1.87618196e-01, 5.73881269e-01, 6.57267570e-02,
3.06678116e-01, 1.07592165e-01, 1.50276303e-01, 7.97904670e-01,
6.59991264e-01, 8.46080661e-01, 1.22367024e-01, 8.98710072e-01,
9.09133673e-01, 4.49350476e-02, 6.41172469e-01, 6.98916316e-01,
2.48942852e-01, 3.20672989e-05, 1.38096631e-01, 3.76250207e-01]],
dtype=float32)</pre>
</div>

</div>
Expand Down Expand Up @@ -16308,7 +16311,7 @@ <h2 id="Plot-Optimization-Trajectories">Plot Optimization Trajectories<a class="


<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr">
<pre>/tmp/ipykernel_2113/1489350838.py:9: UserWarning: bounds argument is deprecated since 2.5 and will be ignored.
<pre>/tmp/ipykernel_2115/1489350838.py:9: UserWarning: bounds argument is deprecated since 2.5 and will be ignored.
segments.append(PointCloud(start, end - start, bounds=Box(x=2*PI, y=2*PI)))
</pre>
</div>
Expand Down Expand Up @@ -16425,8 +16428,8 @@ <h2 id="Neural-Network-Training">Neural Network Training<a class="anchor-link" h


<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="text/plain">
<pre>Initial loss: <span class="ansi-green-intense-fg">(batchᵇ=100)</span> <span class="ansi-blue-intense-fg">0.254 ± 0.272</span> <span class="ansi-white-fg">(2e-04...9e-01)</span>
Final loss: <span class="ansi-green-intense-fg">(batchᵇ=100)</span> <span class="ansi-blue-intense-fg">0.081 ± 0.091</span> <span class="ansi-white-fg">(5e-05...3e-01)</span>
<pre>Initial loss: <span class="ansi-green-intense-fg">(batchᵇ=100)</span> <span class="ansi-blue-intense-fg">0.199 ± 0.171</span> <span class="ansi-white-fg">(2e-04...6e-01)</span>
Final loss: <span class="ansi-green-intense-fg">(batchᵇ=100)</span> <span class="ansi-blue-intense-fg">0.081 ± 0.090</span> <span class="ansi-white-fg">(4e-05...3e-01)</span>
</pre>
</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions FLIP.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions Fluid_Simulation.html

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions IO_with_Scenes.html
Original file line number Diff line number Diff line change
Expand Up @@ -15174,7 +15174,7 @@ <h2 id="Writing-Data">Writing Data<a class="anchor-link" href="#Writing-Data">&#


<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr">
<pre>/opt/hostedtoolcache/Python/3.12.6/x64/lib/python3.12/site-packages/phi/field/_scene.py:150: RuntimeWarning: Failed to copy calling script to scene during Scene.create(): [Errno 2] No such file or directory: &#39;/tmp/ipykernel_2608/2238997793.py&#39;
<pre>/opt/hostedtoolcache/Python/3.12.6/x64/lib/python3.12/site-packages/phi/field/_scene.py:150: RuntimeWarning: Failed to copy calling script to scene during Scene.create(): [Errno 2] No such file or directory: &#39;/tmp/ipykernel_2615/2238997793.py&#39;
warnings.warn(f&#34;Failed to copy calling script to scene during Scene.create(): {err}&#34;, RuntimeWarning)
</pre>
</div>
Expand Down Expand Up @@ -15445,7 +15445,7 @@ <h2 id="Reading-Data">Reading Data<a class="anchor-link" href="#Reading-Data">&#


<div class="jp-RenderedText jp-OutputArea-output jp-OutputArea-executeResult" data-mime-type="text/plain">
<pre>{&#39;smoothness&#39;: 0.7244935631752014}</pre>
<pre>{&#39;smoothness&#39;: 0.5167388319969177}</pre>
</div>

</div>
Expand Down Expand Up @@ -15786,7 +15786,7 @@ <h2 id="Batched-Data">Batched Data<a class="anchor-link" href="#Batched-Data">&#


<div class="jp-RenderedText jp-OutputArea-output jp-OutputArea-executeResult" data-mime-type="text/plain">
<pre><span class="ansi-blue-intense-fg">(0.429, 0.654, 0.730, 0.505)</span> along <span class="ansi-green-intense-fg">batchᵇ</span> <span class="ansi-yellow-intense-fg">float64</span></pre>
<pre><span class="ansi-blue-intense-fg">(0.106, 0.372, 0.401, 0.953)</span> along <span class="ansi-green-intense-fg">batchᵇ</span> <span class="ansi-yellow-intense-fg">float64</span></pre>
</div>

</div>
Expand Down Expand Up @@ -15838,7 +15838,7 @@ <h2 id="Batched-Data">Batched Data<a class="anchor-link" href="#Batched-Data">&#


<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr">
<pre>/opt/hostedtoolcache/Python/3.12.6/x64/lib/python3.12/site-packages/phi/field/_scene.py:150: RuntimeWarning: Failed to copy calling script to scene during Scene.create(): [Errno 2] No such file or directory: &#39;/tmp/ipykernel_2608/3852168639.py&#39;
<pre>/opt/hostedtoolcache/Python/3.12.6/x64/lib/python3.12/site-packages/phi/field/_scene.py:150: RuntimeWarning: Failed to copy calling script to scene during Scene.create(): [Errno 2] No such file or directory: &#39;/tmp/ipykernel_2615/3852168639.py&#39;
warnings.warn(f&#34;Failed to copy calling script to scene during Scene.create(): {err}&#34;, RuntimeWarning)
</pre>
</div>
Expand Down Expand Up @@ -15920,7 +15920,7 @@ <h2 id="Batched-Data">Batched Data<a class="anchor-link" href="#Batched-Data">&#


<div class="jp-RenderedText jp-OutputArea-output jp-OutputArea-executeResult" data-mime-type="text/plain">
<pre>0.4290919005870819</pre>
<pre>0.1056535467505455</pre>
</div>

</div>
Expand Down
14 changes: 7 additions & 7 deletions Math_Introduction.html
Original file line number Diff line number Diff line change
Expand Up @@ -15434,7 +15434,7 @@ <h1 id="Introduction-to-Tensors-in-%CE%A6Flow">Introduction to Tensors in &#934;


<div class="jp-RenderedText jp-OutputArea-output jp-OutputArea-executeResult" data-mime-type="text/plain">
<pre><span class="ansi-blue-intense-fg">(x=0.419, y=-1.487)</span>; <span class="ansi-blue-intense-fg">(x=1.657, y=-1.107)</span>; <span class="ansi-blue-intense-fg">(x=0.159, y=-0.077)</span> <span class="ansi-green-intense-fg">(pointsⁱ=3, vectorᶜ=x,y)</span></pre>
<pre><span class="ansi-blue-intense-fg">(x=1.147, y=-0.901)</span>; <span class="ansi-blue-intense-fg">(x=-0.872, y=0.929)</span>; <span class="ansi-blue-intense-fg">(x=-0.716, y=0.467)</span> <span class="ansi-green-intense-fg">(pointsⁱ=3, vectorᶜ=x,y)</span></pre>
</div>

</div>
Expand Down Expand Up @@ -15567,7 +15567,7 @@ <h1 id="Introduction-to-Tensors-in-%CE%A6Flow">Introduction to Tensors in &#934;


<div class="jp-RenderedText jp-OutputArea-output jp-OutputArea-executeResult" data-mime-type="text/plain">
<pre><span class="ansi-blue-intense-fg">(x=0.419, y=-1.487)</span></pre>
<pre><span class="ansi-blue-intense-fg">(x=1.147, y=-0.901)</span></pre>
</div>

</div>
Expand Down Expand Up @@ -15618,7 +15618,7 @@ <h1 id="Introduction-to-Tensors-in-%CE%A6Flow">Introduction to Tensors in &#934;


<div class="jp-RenderedText jp-OutputArea-output jp-OutputArea-executeResult" data-mime-type="text/plain">
<pre><span class="ansi-blue-intense-fg">(0.419, 1.657, 0.159)</span> along <span class="ansi-green-intense-fg">pointsⁱ</span></pre>
<pre><span class="ansi-blue-intense-fg">(1.147, -0.872, -0.716)</span> along <span class="ansi-green-intense-fg">pointsⁱ</span></pre>
</div>

</div>
Expand Down Expand Up @@ -15669,7 +15669,7 @@ <h1 id="Introduction-to-Tensors-in-%CE%A6Flow">Introduction to Tensors in &#934;


<div class="jp-RenderedText jp-OutputArea-output jp-OutputArea-executeResult" data-mime-type="text/plain">
<pre><span class="ansi-blue-intense-fg">(0.419, 1.657, 0.159)</span> along <span class="ansi-green-intense-fg">pointsⁱ</span></pre>
<pre><span class="ansi-blue-intense-fg">(1.147, -0.872, -0.716)</span> along <span class="ansi-green-intense-fg">pointsⁱ</span></pre>
</div>

</div>
Expand Down Expand Up @@ -15720,7 +15720,7 @@ <h1 id="Introduction-to-Tensors-in-%CE%A6Flow">Introduction to Tensors in &#934;


<div class="jp-RenderedText jp-OutputArea-output jp-OutputArea-executeResult" data-mime-type="text/plain">
<pre><span class="ansi-blue-intense-fg">0.41938224</span></pre>
<pre><span class="ansi-blue-intense-fg">1.1467746</span></pre>
</div>

</div>
Expand Down Expand Up @@ -15759,7 +15759,7 @@ <h1 id="Introduction-to-Tensors-in-%CE%A6Flow">Introduction to Tensors in &#934;


<div class="jp-RenderedText jp-OutputArea-output jp-OutputArea-executeResult" data-mime-type="text/plain">
<pre><span class="ansi-blue-intense-fg">0.41938224</span></pre>
<pre><span class="ansi-blue-intense-fg">1.1467746</span></pre>
</div>

</div>
Expand Down Expand Up @@ -15813,7 +15813,7 @@ <h1 id="Introduction-to-Tensors-in-%CE%A6Flow">Introduction to Tensors in &#934;


<div class="jp-RenderedText jp-OutputArea-output jp-OutputArea-executeResult" data-mime-type="text/plain">
<pre><span class="ansi-green-intense-fg">(xˢ=10)</span> <span class="ansi-blue-intense-fg">0.605 ± 0.287</span> <span class="ansi-white-fg">(1e-02...1e+00)</span></pre>
<pre><span class="ansi-green-intense-fg">(xˢ=10)</span> <span class="ansi-blue-intense-fg">0.509 ± 0.315</span> <span class="ansi-white-fg">(5e-02...9e-01)</span></pre>
</div>

</div>
Expand Down
Binary file modified data/sim_000000/batched_noise_data_000000.npz
Binary file not shown.
8 changes: 4 additions & 4 deletions data/sim_000000/description.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
null
],
"data": [
0.4290919005870819,
0.653761625289917,
0.7298448085784912,
0.5049718618392944
0.1056535467505455,
0.3720528483390808,
0.40077075362205505,
0.9527272582054138
]
},
"__tensors__": [
Expand Down
Binary file modified data/sim_000000/noise_data_000000.npz
Binary file not shown.
Binary file modified data/sim_000001/batched_noise_data_000000.npz
Binary file not shown.
2 changes: 1 addition & 1 deletion data/sim_000001/description.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"smoothness": 0.4290919005870819
"smoothness": 0.1056535467505455
}
Binary file modified data/sim_000002/batched_noise_data_000000.npz
Binary file not shown.
2 changes: 1 addition & 1 deletion data/sim_000002/description.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"smoothness": 0.653761625289917
"smoothness": 0.3720528483390808
}
Binary file modified data/sim_000003/batched_noise_data_000000.npz
Binary file not shown.
2 changes: 1 addition & 1 deletion data/sim_000003/description.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"smoothness": 0.7298448085784912
"smoothness": 0.40077075362205505
}
Binary file modified data/sim_000004/batched_noise_data_000000.npz
Binary file not shown.
2 changes: 1 addition & 1 deletion data/sim_000004/description.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"smoothness": 0.5049718618392944
"smoothness": 0.9527272582054138
}
2 changes: 1 addition & 1 deletion phi/field/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ <h2 id="args">Args</h2>
</dl></div>
</dd>
<dt id="phi.field.divergence"><code class="name flex">
<span>def <span class="ident">divergence</span></span>(<span>field: phi.field._field.Field, order=2, implicit: phiml.math._optimize.Solve = None, upwind: phi.field._field.Field = None, implicitness: int = None) ‑> <function <a title="phi.field.CenteredGrid" href="#phi.field.CenteredGrid">CenteredGrid()</a> at 0x7f4052552d40></span>
<span>def <span class="ident">divergence</span></span>(<span>field: phi.field._field.Field, order=2, implicit: phiml.math._optimize.Solve = None, upwind: phi.field._field.Field = None, implicitness: int = None) ‑> <function <a title="phi.field.CenteredGrid" href="#phi.field.CenteredGrid">CenteredGrid()</a> at 0x7fc069b6eca0></span>
</code></dt>
<dd>
<div class="desc"><p>Computes the divergence of a grid using finite differences.</p>
Expand Down
11 changes: 9 additions & 2 deletions phi/geom/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,17 @@ <h2 id="args">Args</h2>
<div class="desc"><p>Tests that two objects have the same spatial rank. Objects can be of types: <code>int</code>, <code>None</code> (no check), <code><a title="phi.geom.Geometry" href="#phi.geom.Geometry">Geometry</a></code>, <code>Shape</code>, <code>Tensor</code></p></div>
</dd>
<dt id="phi.geom.bounding_box"><code class="name flex">
<span>def <span class="ident">bounding_box</span></span>(<span>geometry: Union[phiml.math._tensors.Tensor, phi.geom._geom.Geometry])</span>
<span>def <span class="ident">bounding_box</span></span>(<span>geometry: Union[phiml.math._tensors.Tensor, phi.geom._geom.Geometry]) ‑> phi.geom._box.Box</span>
</code></dt>
<dd>
<div class="desc"></div>
<div class="desc"><p>Builds a bounding box around <code>geometry</code> or a collection of points.</p>
<h2 id="args">Args</h2>
<dl>
<dt><strong><code>geometry</code></strong></dt>
<dd><code><a title="phi.geom.Geometry" href="#phi.geom.Geometry">Geometry</a></code> object or <code>Tensor</code> of points.</dd>
</dl>
<h2 id="returns">Returns</h2>
<p>Bounding <code><a title="phi.geom.Box" href="#phi.geom.Box">Box</a></code> containing only batch dims and <code>vector</code>.</p></div>
</dd>
<dt id="phi.geom.build_mesh"><code class="name flex">
<span>def <span class="ident">build_mesh</span></span>(<span>bounds: phi.geom._box.Box = None, resolution=(), obstacles: Union[phi.geom._geom.Geometry, Dict[str, phi.geom._geom.Geometry]] = None, method='quad', cell_dim: phiml.math._shape.Shape = (cellsⁱ=None), face_format: str = 'csc', max_squish: Optional[float] = 0.5, **resolution_: Union[int, phiml.math._tensors.Tensor, tuple, list, Any]) ‑> phi.geom._mesh.Mesh</span>
Expand Down
Loading

0 comments on commit f511036

Please sign in to comment.