dot_outer#
- SphericalRegion.dot_outer(other: Vector3d, lazy: bool = False, chunk_size: int = 20, progressbar: bool = False) ndarray [source]#
Return the outer dot products of all vectors and all the other vectors.
- Parameters:
- other
Compute the outer dot product with these vectors.
- lazy
Whether to perform the computation lazily with Dask. Default is
False
.- chunk_size
Number of orientations per axis to include in each iteration of the computation. Default is 20. Only applies when
lazy
isTrue
.- progressbar
Whether to show a progressbar during computation if
lazy
isTrue
. Default isTrue
.
- Returns:
dot_products
Dot products.
Examples
>>> from orix.vector import Vector3d >>> v = Vector3d(((0.0, 0.0, 1.0), (1.0, 0.0, 0.0))) # shape = (2, ) >>> w = Vector3d(((0.0, 0.0, 0.5), (0.4, 0.6, 0.0), (0.5, 0.5, 0.5))) # shape = (3, ) >>> v.dot_outer(w) array([[0.5, 0. , 0.5], [0. , 0.4, 0.5]]) >>> w.dot_outer(v) # shape = (3, 2) array([[0.5, 0. ], [0. , 0.4], [0.5, 0.5]])