Create a grid containing points within the given radius of center.
Parameters:
center (float or np.array(M,)) – Cartesian coordinates of the center of the local grid.
radius (float) – Radius of sphere around the center. When equal to np.inf, the
local grid coincides with the whole grid, which can be useful for
debugging.
orders (int) – Generates all orders with Horton order depending on the type of the multipole
moment type_mom.
centers (ndarray(M, 3)) – The centers \(\textbf{R}_c\) of the moments to compute from.
func_vals (ndarray(N,)) – The function \(f\) is evaluated at all \(N\) points on the integration
grid.
type_mom (str) – The type of multipole moments: “cartesian”, “pure”, “radial” and “pure-radial”.
return_orders (bool) – If true, it will also return a list of size \(L\) of the orders
corresponding to each integral/row of the output.
Returns:
Computes the moment integral of the function at the mth center for all orders.
If return_orders is true, then this also returns a list that describes what
each row/order is, e.g. for Cartesian, [(0, 0, 0), (1, 0, 0) ,…].
Create a grid containing points within the given radius of center.
Parameters:
center (float or np.array(M,)) – Cartesian coordinates of the center of the local grid.
radius (float) – Radius of sphere around the center. When equal to np.inf, the
local grid coincides with the whole grid, which can be useful for
debugging.
orders (int) – Generates all orders with Horton order depending on the type of the multipole
moment type_mom.
centers (ndarray(M, 3)) – The centers \(\textbf{R}_c\) of the moments to compute from.
func_vals (ndarray(N,)) – The function \(f\) is evaluated at all \(N\) points on the integration
grid.
type_mom (str) – The type of multipole moments: “cartesian”, “pure”, “radial” and “pure-radial”.
return_orders (bool) – If true, it will also return a list of size \(L\) of the orders
corresponding to each integral/row of the output.
Returns:
Computes the moment integral of the function at the mth center for all orders.
If return_orders is true, then this also returns a list that describes what
each row/order is, e.g. for Cartesian, [(0, 0, 0), (1, 0, 0) ,…].
Create a grid containing points within the given radius of center.
Parameters:
center (float or np.array(M,)) – Cartesian coordinates of the center of the local grid.
radius (float) – Radius of sphere around the center. When equal to np.inf, the
local grid coincides with the whole grid, which can be useful for
debugging.
orders (int) – Generates all orders with Horton order depending on the type of the multipole
moment type_mom.
centers (ndarray(M, 3)) – The centers \(\textbf{R}_c\) of the moments to compute from.
func_vals (ndarray(N,)) – The function \(f\) is evaluated at all \(N\) points on the integration
grid.
type_mom (str) – The type of multipole moments: “cartesian”, “pure”, “radial” and “pure-radial”.
return_orders (bool) – If true, it will also return a list of size \(L\) of the orders
corresponding to each integral/row of the output.
Returns:
Computes the moment integral of the function at the mth center for all orders.
If return_orders is true, then this also returns a list that describes what
each row/order is, e.g. for Cartesian, [(0, 0, 0), (1, 0, 0) ,…].
where \(k=1,\cdots, n\). It uses the zeros of the Chebyshev polynomial.
If discontinuous, it is recommended to break the intervals at the discontinuities
and handled separately.
Create a grid containing points within the given radius of center.
Parameters:
center (float or np.array(M,)) – Cartesian coordinates of the center of the local grid.
radius (float) – Radius of sphere around the center. When equal to np.inf, the
local grid coincides with the whole grid, which can be useful for
debugging.
orders (int) – Generates all orders with Horton order depending on the type of the multipole
moment type_mom.
centers (ndarray(M, 3)) – The centers \(\textbf{R}_c\) of the moments to compute from.
func_vals (ndarray(N,)) – The function \(f\) is evaluated at all \(N\) points on the integration
grid.
type_mom (str) – The type of multipole moments: “cartesian”, “pure”, “radial” and “pure-radial”.
return_orders (bool) – If true, it will also return a list of size \(L\) of the orders
corresponding to each integral/row of the output.
Returns:
Computes the moment integral of the function at the mth center for all orders.
If return_orders is true, then this also returns a list that describes what
each row/order is, e.g. for Cartesian, [(0, 0, 0), (1, 0, 0) ,…].
where \(k=1, \cdots n - 1\) and \(n\) is the number of points. This
method is considered more practical than the first method. If discontinuous, it is
recommended to break the intervals at the discontinuities and handled separately.
Create a grid containing points within the given radius of center.
Parameters:
center (float or np.array(M,)) – Cartesian coordinates of the center of the local grid.
radius (float) – Radius of sphere around the center. When equal to np.inf, the
local grid coincides with the whole grid, which can be useful for
debugging.
orders (int) – Generates all orders with Horton order depending on the type of the multipole
moment type_mom.
centers (ndarray(M, 3)) – The centers \(\textbf{R}_c\) of the moments to compute from.
func_vals (ndarray(N,)) – The function \(f\) is evaluated at all \(N\) points on the integration
grid.
type_mom (str) – The type of multipole moments: “cartesian”, “pure”, “radial” and “pure-radial”.
return_orders (bool) – If true, it will also return a list of size \(L\) of the orders
corresponding to each integral/row of the output.
Returns:
Computes the moment integral of the function at the mth center for all orders.
If return_orders is true, then this also returns a list that describes what
each row/order is, e.g. for Cartesian, [(0, 0, 0), (1, 0, 0) ,…].
Create a grid containing points within the given radius of center.
Parameters:
center (float or np.array(M,)) – Cartesian coordinates of the center of the local grid.
radius (float) – Radius of sphere around the center. When equal to np.inf, the
local grid coincides with the whole grid, which can be useful for
debugging.
orders (int) – Generates all orders with Horton order depending on the type of the multipole
moment type_mom.
centers (ndarray(M, 3)) – The centers \(\textbf{R}_c\) of the moments to compute from.
func_vals (ndarray(N,)) – The function \(f\) is evaluated at all \(N\) points on the integration
grid.
type_mom (str) – The type of multipole moments: “cartesian”, “pure”, “radial” and “pure-radial”.
return_orders (bool) – If true, it will also return a list of size \(L\) of the orders
corresponding to each integral/row of the output.
Returns:
Computes the moment integral of the function at the mth center for all orders.
If return_orders is true, then this also returns a list that describes what
each row/order is, e.g. for Cartesian, [(0, 0, 0), (1, 0, 0) ,…].
Create a grid containing points within the given radius of center.
Parameters:
center (float or np.array(M,)) – Cartesian coordinates of the center of the local grid.
radius (float) – Radius of sphere around the center. When equal to np.inf, the
local grid coincides with the whole grid, which can be useful for
debugging.
orders (int) – Generates all orders with Horton order depending on the type of the multipole
moment type_mom.
centers (ndarray(M, 3)) – The centers \(\textbf{R}_c\) of the moments to compute from.
func_vals (ndarray(N,)) – The function \(f\) is evaluated at all \(N\) points on the integration
grid.
type_mom (str) – The type of multipole moments: “cartesian”, “pure”, “radial” and “pure-radial”.
return_orders (bool) – If true, it will also return a list of size \(L\) of the orders
corresponding to each integral/row of the output.
Returns:
Computes the moment integral of the function at the mth center for all orders.
If return_orders is true, then this also returns a list that describes what
each row/order is, e.g. for Cartesian, [(0, 0, 0), (1, 0, 0) ,…].
Create a grid containing points within the given radius of center.
Parameters:
center (float or np.array(M,)) – Cartesian coordinates of the center of the local grid.
radius (float) – Radius of sphere around the center. When equal to np.inf, the
local grid coincides with the whole grid, which can be useful for
debugging.
orders (int) – Generates all orders with Horton order depending on the type of the multipole
moment type_mom.
centers (ndarray(M, 3)) – The centers \(\textbf{R}_c\) of the moments to compute from.
func_vals (ndarray(N,)) – The function \(f\) is evaluated at all \(N\) points on the integration
grid.
type_mom (str) – The type of multipole moments: “cartesian”, “pure”, “radial” and “pure-radial”.
return_orders (bool) – If true, it will also return a list of size \(L\) of the orders
corresponding to each integral/row of the output.
Returns:
Computes the moment integral of the function at the mth center for all orders.
If return_orders is true, then this also returns a list that describes what
each row/order is, e.g. for Cartesian, [(0, 0, 0), (1, 0, 0) ,…].
Create a grid containing points within the given radius of center.
Parameters:
center (float or np.array(M,)) – Cartesian coordinates of the center of the local grid.
radius (float) – Radius of sphere around the center. When equal to np.inf, the
local grid coincides with the whole grid, which can be useful for
debugging.
orders (int) – Generates all orders with Horton order depending on the type of the multipole
moment type_mom.
centers (ndarray(M, 3)) – The centers \(\textbf{R}_c\) of the moments to compute from.
func_vals (ndarray(N,)) – The function \(f\) is evaluated at all \(N\) points on the integration
grid.
type_mom (str) – The type of multipole moments: “cartesian”, “pure”, “radial” and “pure-radial”.
return_orders (bool) – If true, it will also return a list of size \(L\) of the orders
corresponding to each integral/row of the output.
Returns:
Computes the moment integral of the function at the mth center for all orders.
If return_orders is true, then this also returns a list that describes what
each row/order is, e.g. for Cartesian, [(0, 0, 0), (1, 0, 0) ,…].
Create a grid containing points within the given radius of center.
Parameters:
center (float or np.array(M,)) – Cartesian coordinates of the center of the local grid.
radius (float) – Radius of sphere around the center. When equal to np.inf, the
local grid coincides with the whole grid, which can be useful for
debugging.
orders (int) – Generates all orders with Horton order depending on the type of the multipole
moment type_mom.
centers (ndarray(M, 3)) – The centers \(\textbf{R}_c\) of the moments to compute from.
func_vals (ndarray(N,)) – The function \(f\) is evaluated at all \(N\) points on the integration
grid.
type_mom (str) – The type of multipole moments: “cartesian”, “pure”, “radial” and “pure-radial”.
return_orders (bool) – If true, it will also return a list of size \(L\) of the orders
corresponding to each integral/row of the output.
Returns:
Computes the moment integral of the function at the mth center for all orders.
If return_orders is true, then this also returns a list that describes what
each row/order is, e.g. for Cartesian, [(0, 0, 0), (1, 0, 0) ,…].
Create a grid containing points within the given radius of center.
Parameters:
center (float or np.array(M,)) – Cartesian coordinates of the center of the local grid.
radius (float) – Radius of sphere around the center. When equal to np.inf, the
local grid coincides with the whole grid, which can be useful for
debugging.
orders (int) – Generates all orders with Horton order depending on the type of the multipole
moment type_mom.
centers (ndarray(M, 3)) – The centers \(\textbf{R}_c\) of the moments to compute from.
func_vals (ndarray(N,)) – The function \(f\) is evaluated at all \(N\) points on the integration
grid.
type_mom (str) – The type of multipole moments: “cartesian”, “pure”, “radial” and “pure-radial”.
return_orders (bool) – If true, it will also return a list of size \(L\) of the orders
corresponding to each integral/row of the output.
Returns:
Computes the moment integral of the function at the mth center for all orders.
If return_orders is true, then this also returns a list that describes what
each row/order is, e.g. for Cartesian, [(0, 0, 0), (1, 0, 0) ,…].
Create a grid containing points within the given radius of center.
Parameters:
center (float or np.array(M,)) – Cartesian coordinates of the center of the local grid.
radius (float) – Radius of sphere around the center. When equal to np.inf, the
local grid coincides with the whole grid, which can be useful for
debugging.
orders (int) – Generates all orders with Horton order depending on the type of the multipole
moment type_mom.
centers (ndarray(M, 3)) – The centers \(\textbf{R}_c\) of the moments to compute from.
func_vals (ndarray(N,)) – The function \(f\) is evaluated at all \(N\) points on the integration
grid.
type_mom (str) – The type of multipole moments: “cartesian”, “pure”, “radial” and “pure-radial”.
return_orders (bool) – If true, it will also return a list of size \(L\) of the orders
corresponding to each integral/row of the output.
Returns:
Computes the moment integral of the function at the mth center for all orders.
If return_orders is true, then this also returns a list that describes what
each row/order is, e.g. for Cartesian, [(0, 0, 0), (1, 0, 0) ,…].
Create a grid containing points within the given radius of center.
Parameters:
center (float or np.array(M,)) – Cartesian coordinates of the center of the local grid.
radius (float) – Radius of sphere around the center. When equal to np.inf, the
local grid coincides with the whole grid, which can be useful for
debugging.
orders (int) – Generates all orders with Horton order depending on the type of the multipole
moment type_mom.
centers (ndarray(M, 3)) – The centers \(\textbf{R}_c\) of the moments to compute from.
func_vals (ndarray(N,)) – The function \(f\) is evaluated at all \(N\) points on the integration
grid.
type_mom (str) – The type of multipole moments: “cartesian”, “pure”, “radial” and “pure-radial”.
return_orders (bool) – If true, it will also return a list of size \(L\) of the orders
corresponding to each integral/row of the output.
Returns:
Computes the moment integral of the function at the mth center for all orders.
If return_orders is true, then this also returns a list that describes what
each row/order is, e.g. for Cartesian, [(0, 0, 0), (1, 0, 0) ,…].
Create a grid containing points within the given radius of center.
Parameters:
center (float or np.array(M,)) – Cartesian coordinates of the center of the local grid.
radius (float) – Radius of sphere around the center. When equal to np.inf, the
local grid coincides with the whole grid, which can be useful for
debugging.
orders (int) – Generates all orders with Horton order depending on the type of the multipole
moment type_mom.
centers (ndarray(M, 3)) – The centers \(\textbf{R}_c\) of the moments to compute from.
func_vals (ndarray(N,)) – The function \(f\) is evaluated at all \(N\) points on the integration
grid.
type_mom (str) – The type of multipole moments: “cartesian”, “pure”, “radial” and “pure-radial”.
return_orders (bool) – If true, it will also return a list of size \(L\) of the orders
corresponding to each integral/row of the output.
Returns:
Computes the moment integral of the function at the mth center for all orders.
If return_orders is true, then this also returns a list that describes what
each row/order is, e.g. for Cartesian, [(0, 0, 0), (1, 0, 0) ,…].
Create a grid containing points within the given radius of center.
Parameters:
center (float or np.array(M,)) – Cartesian coordinates of the center of the local grid.
radius (float) – Radius of sphere around the center. When equal to np.inf, the
local grid coincides with the whole grid, which can be useful for
debugging.
orders (int) – Generates all orders with Horton order depending on the type of the multipole
moment type_mom.
centers (ndarray(M, 3)) – The centers \(\textbf{R}_c\) of the moments to compute from.
func_vals (ndarray(N,)) – The function \(f\) is evaluated at all \(N\) points on the integration
grid.
type_mom (str) – The type of multipole moments: “cartesian”, “pure”, “radial” and “pure-radial”.
return_orders (bool) – If true, it will also return a list of size \(L\) of the orders
corresponding to each integral/row of the output.
Returns:
Computes the moment integral of the function at the mth center for all orders.
If return_orders is true, then this also returns a list that describes what
each row/order is, e.g. for Cartesian, [(0, 0, 0), (1, 0, 0) ,…].
Create a grid containing points within the given radius of center.
Parameters:
center (float or np.array(M,)) – Cartesian coordinates of the center of the local grid.
radius (float) – Radius of sphere around the center. When equal to np.inf, the
local grid coincides with the whole grid, which can be useful for
debugging.
orders (int) – Generates all orders with Horton order depending on the type of the multipole
moment type_mom.
centers (ndarray(M, 3)) – The centers \(\textbf{R}_c\) of the moments to compute from.
func_vals (ndarray(N,)) – The function \(f\) is evaluated at all \(N\) points on the integration
grid.
type_mom (str) – The type of multipole moments: “cartesian”, “pure”, “radial” and “pure-radial”.
return_orders (bool) – If true, it will also return a list of size \(L\) of the orders
corresponding to each integral/row of the output.
Returns:
Computes the moment integral of the function at the mth center for all orders.
If return_orders is true, then this also returns a list that describes what
each row/order is, e.g. for Cartesian, [(0, 0, 0), (1, 0, 0) ,…].
Create a grid containing points within the given radius of center.
Parameters:
center (float or np.array(M,)) – Cartesian coordinates of the center of the local grid.
radius (float) – Radius of sphere around the center. When equal to np.inf, the
local grid coincides with the whole grid, which can be useful for
debugging.
orders (int) – Generates all orders with Horton order depending on the type of the multipole
moment type_mom.
centers (ndarray(M, 3)) – The centers \(\textbf{R}_c\) of the moments to compute from.
func_vals (ndarray(N,)) – The function \(f\) is evaluated at all \(N\) points on the integration
grid.
type_mom (str) – The type of multipole moments: “cartesian”, “pure”, “radial” and “pure-radial”.
return_orders (bool) – If true, it will also return a list of size \(L\) of the orders
corresponding to each integral/row of the output.
Returns:
Computes the moment integral of the function at the mth center for all orders.
If return_orders is true, then this also returns a list that describes what
each row/order is, e.g. for Cartesian, [(0, 0, 0), (1, 0, 0) ,…].
Create a grid containing points within the given radius of center.
Parameters:
center (float or np.array(M,)) – Cartesian coordinates of the center of the local grid.
radius (float) – Radius of sphere around the center. When equal to np.inf, the
local grid coincides with the whole grid, which can be useful for
debugging.
orders (int) – Generates all orders with Horton order depending on the type of the multipole
moment type_mom.
centers (ndarray(M, 3)) – The centers \(\textbf{R}_c\) of the moments to compute from.
func_vals (ndarray(N,)) – The function \(f\) is evaluated at all \(N\) points on the integration
grid.
type_mom (str) – The type of multipole moments: “cartesian”, “pure”, “radial” and “pure-radial”.
return_orders (bool) – If true, it will also return a list of size \(L\) of the orders
corresponding to each integral/row of the output.
Returns:
Computes the moment integral of the function at the mth center for all orders.
If return_orders is true, then this also returns a list that describes what
each row/order is, e.g. for Cartesian, [(0, 0, 0), (1, 0, 0) ,…].
Create a grid containing points within the given radius of center.
Parameters:
center (float or np.array(M,)) – Cartesian coordinates of the center of the local grid.
radius (float) – Radius of sphere around the center. When equal to np.inf, the
local grid coincides with the whole grid, which can be useful for
debugging.
orders (int) – Generates all orders with Horton order depending on the type of the multipole
moment type_mom.
centers (ndarray(M, 3)) – The centers \(\textbf{R}_c\) of the moments to compute from.
func_vals (ndarray(N,)) – The function \(f\) is evaluated at all \(N\) points on the integration
grid.
type_mom (str) – The type of multipole moments: “cartesian”, “pure”, “radial” and “pure-radial”.
return_orders (bool) – If true, it will also return a list of size \(L\) of the orders
corresponding to each integral/row of the output.
Returns:
Computes the moment integral of the function at the mth center for all orders.
If return_orders is true, then this also returns a list that describes what
each row/order is, e.g. for Cartesian, [(0, 0, 0), (1, 0, 0) ,…].
Create a grid containing points within the given radius of center.
Parameters:
center (float or np.array(M,)) – Cartesian coordinates of the center of the local grid.
radius (float) – Radius of sphere around the center. When equal to np.inf, the
local grid coincides with the whole grid, which can be useful for
debugging.
orders (int) – Generates all orders with Horton order depending on the type of the multipole
moment type_mom.
centers (ndarray(M, 3)) – The centers \(\textbf{R}_c\) of the moments to compute from.
func_vals (ndarray(N,)) – The function \(f\) is evaluated at all \(N\) points on the integration
grid.
type_mom (str) – The type of multipole moments: “cartesian”, “pure”, “radial” and “pure-radial”.
return_orders (bool) – If true, it will also return a list of size \(L\) of the orders
corresponding to each integral/row of the output.
Returns:
Computes the moment integral of the function at the mth center for all orders.
If return_orders is true, then this also returns a list that describes what
each row/order is, e.g. for Cartesian, [(0, 0, 0), (1, 0, 0) ,…].
Create a grid containing points within the given radius of center.
Parameters:
center (float or np.array(M,)) – Cartesian coordinates of the center of the local grid.
radius (float) – Radius of sphere around the center. When equal to np.inf, the
local grid coincides with the whole grid, which can be useful for
debugging.
orders (int) – Generates all orders with Horton order depending on the type of the multipole
moment type_mom.
centers (ndarray(M, 3)) – The centers \(\textbf{R}_c\) of the moments to compute from.
func_vals (ndarray(N,)) – The function \(f\) is evaluated at all \(N\) points on the integration
grid.
type_mom (str) – The type of multipole moments: “cartesian”, “pure”, “radial” and “pure-radial”.
return_orders (bool) – If true, it will also return a list of size \(L\) of the orders
corresponding to each integral/row of the output.
Returns:
Computes the moment integral of the function at the mth center for all orders.
If return_orders is true, then this also returns a list that describes what
each row/order is, e.g. for Cartesian, [(0, 0, 0), (1, 0, 0) ,…].
Create a grid containing points within the given radius of center.
Parameters:
center (float or np.array(M,)) – Cartesian coordinates of the center of the local grid.
radius (float) – Radius of sphere around the center. When equal to np.inf, the
local grid coincides with the whole grid, which can be useful for
debugging.
orders (int) – Generates all orders with Horton order depending on the type of the multipole
moment type_mom.
centers (ndarray(M, 3)) – The centers \(\textbf{R}_c\) of the moments to compute from.
func_vals (ndarray(N,)) – The function \(f\) is evaluated at all \(N\) points on the integration
grid.
type_mom (str) – The type of multipole moments: “cartesian”, “pure”, “radial” and “pure-radial”.
return_orders (bool) – If true, it will also return a list of size \(L\) of the orders
corresponding to each integral/row of the output.
Returns:
Computes the moment integral of the function at the mth center for all orders.
If return_orders is true, then this also returns a list that describes what
each row/order is, e.g. for Cartesian, [(0, 0, 0), (1, 0, 0) ,…].
Create a grid containing points within the given radius of center.
Parameters:
center (float or np.array(M,)) – Cartesian coordinates of the center of the local grid.
radius (float) – Radius of sphere around the center. When equal to np.inf, the
local grid coincides with the whole grid, which can be useful for
debugging.
orders (int) – Generates all orders with Horton order depending on the type of the multipole
moment type_mom.
centers (ndarray(M, 3)) – The centers \(\textbf{R}_c\) of the moments to compute from.
func_vals (ndarray(N,)) – The function \(f\) is evaluated at all \(N\) points on the integration
grid.
type_mom (str) – The type of multipole moments: “cartesian”, “pure”, “radial” and “pure-radial”.
return_orders (bool) – If true, it will also return a list of size \(L\) of the orders
corresponding to each integral/row of the output.
Returns:
Computes the moment integral of the function at the mth center for all orders.
If return_orders is true, then this also returns a list that describes what
each row/order is, e.g. for Cartesian, [(0, 0, 0), (1, 0, 0) ,…].
Create a grid containing points within the given radius of center.
Parameters:
center (float or np.array(M,)) – Cartesian coordinates of the center of the local grid.
radius (float) – Radius of sphere around the center. When equal to np.inf, the
local grid coincides with the whole grid, which can be useful for
debugging.
orders (int) – Generates all orders with Horton order depending on the type of the multipole
moment type_mom.
centers (ndarray(M, 3)) – The centers \(\textbf{R}_c\) of the moments to compute from.
func_vals (ndarray(N,)) – The function \(f\) is evaluated at all \(N\) points on the integration
grid.
type_mom (str) – The type of multipole moments: “cartesian”, “pure”, “radial” and “pure-radial”.
return_orders (bool) – If true, it will also return a list of size \(L\) of the orders
corresponding to each integral/row of the output.
Returns:
Computes the moment integral of the function at the mth center for all orders.
If return_orders is true, then this also returns a list that describes what
each row/order is, e.g. for Cartesian, [(0, 0, 0), (1, 0, 0) ,…].
Create a grid containing points within the given radius of center.
Parameters:
center (float or np.array(M,)) – Cartesian coordinates of the center of the local grid.
radius (float) – Radius of sphere around the center. When equal to np.inf, the
local grid coincides with the whole grid, which can be useful for
debugging.
orders (int) – Generates all orders with Horton order depending on the type of the multipole
moment type_mom.
centers (ndarray(M, 3)) – The centers \(\textbf{R}_c\) of the moments to compute from.
func_vals (ndarray(N,)) – The function \(f\) is evaluated at all \(N\) points on the integration
grid.
type_mom (str) – The type of multipole moments: “cartesian”, “pure”, “radial” and “pure-radial”.
return_orders (bool) – If true, it will also return a list of size \(L\) of the orders
corresponding to each integral/row of the output.
Returns:
Computes the moment integral of the function at the mth center for all orders.
If return_orders is true, then this also returns a list that describes what
each row/order is, e.g. for Cartesian, [(0, 0, 0), (1, 0, 0) ,…].
Create a grid containing points within the given radius of center.
Parameters:
center (float or np.array(M,)) – Cartesian coordinates of the center of the local grid.
radius (float) – Radius of sphere around the center. When equal to np.inf, the
local grid coincides with the whole grid, which can be useful for
debugging.
orders (int) – Generates all orders with Horton order depending on the type of the multipole
moment type_mom.
centers (ndarray(M, 3)) – The centers \(\textbf{R}_c\) of the moments to compute from.
func_vals (ndarray(N,)) – The function \(f\) is evaluated at all \(N\) points on the integration
grid.
type_mom (str) – The type of multipole moments: “cartesian”, “pure”, “radial” and “pure-radial”.
return_orders (bool) – If true, it will also return a list of size \(L\) of the orders
corresponding to each integral/row of the output.
Returns:
Computes the moment integral of the function at the mth center for all orders.
If return_orders is true, then this also returns a list that describes what
each row/order is, e.g. for Cartesian, [(0, 0, 0), (1, 0, 0) ,…].