linalg.kernels.inner_kernels#
Functions#
Details#
- inner_1d()#
Kernel for computing the inner product (case of two 1D vectors).
- Parameters:
- v1, v21D NumPy array
Data of the vectors from which we are computing the inner product.
- nghost0int
Number of ghost cells of the arrays along the index 0.
- Returns:
- resscalar
Scalar (real or complex) containing the result of the inner product.
- inner_2d()#
Kernel for computing the inner product (case of two 2D vectors).
- Parameters:
- v1, v22D NumPy array
Data of the vectors from which we are computing the inner product.
- nghost0int
Number of ghost cells of the arrays along the index 0.
- nghost1int
Number of ghost cells of the arrays along the index 1.
- Returns:
- resscalar
Scalar (real or complex) containing the result of the inner product.
- inner_3d()#
Kernel for computing the inner product (case of two 3D vectors).
- Parameters:
- v1, v23D NumPy array
Data of the vectors from which we are computing the inner product.
- nghost0int
Number of ghost cells of the arrays along the index 0.
- nghost1int
Number of ghost cells of the arrays along the index 1.
- nghost2int
Number of ghost cells of the arrays along the index 2.
- Returns:
- resscalar
Scalar (real or complex) containing the result of the inner product.