miv_simulator.geometry.rbf_volume#
Implements a parametric volume as a 3-tuple of RBF instances, one each for u, v and l. Based on code from bspline_surface.py
Functions
|
Generate a cartesian product of input arrays. |
|
Row-wise euclidean distance. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Classes
|
- miv_simulator.geometry.rbf_volume.euclidean_distance(a, b)[source]#
Row-wise euclidean distance. a, b are row vectors of points.
- miv_simulator.geometry.rbf_volume.cartesian_product(arrays, out=None)[source]#
Generate a cartesian product of input arrays.
- Parameters:
- arrayslist of array-like
1-D arrays to form the cartesian product of.
- outndarray
Array to place the cartesian product in.
- Returns:
- outndarray
2-D array of shape (M, len(arrays)) containing cartesian products formed of input arrays.
Examples
>>> cartesian(([1, 2, 3], [4, 5], [6, 7])) array([[1, 4, 6], [1, 4, 7], [1, 5, 6], [1, 5, 7], [2, 4, 6], [2, 4, 7], [2, 5, 6], [2, 5, 7], [3, 4, 6], [3, 4, 7], [3, 5, 6], [3, 5, 7]])