linalg.kernels.inner_kernels#

Details#

inner_1d(v1: T[:], v2: T[:], nghost0: int64)#

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(v1: T[:, :], v2: T[:, :], nghost0: int64, nghost1: int64)#

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(v1: T[:, :, :], v2: T[:, :, :], nghost0: int64, nghost1: int64, nghost2: int64)#

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.