General Info
isotope
constant
unit
cartesian
summation
User Guide
Contributor Guide
Functions for repeating arrays of varying dimensions.
exa.math.misc.repeat.
repeat_count
Repeat each element of an array n times.
repeat_counts_f8_1d
Repeat each element of an array n times (with variable n).
repeat_counts_f8_2d
Fast algorithms for various types of (commonly used) summations.
exa.math.misc.summation.
sum_product_pair
Sum each pair of elements coming from product().
product()
sum_product_pair_f8
Sum each pair of elements from two 1 dimensional arrays.
x = np.array([1., 2., 3.]) y = np.array([4., 1., 2.]) sum_product_pair_f8(x, y) # array([5.0, 2.0, 3.0, 6.0, 3.0, 4.0, 7.0, 4.0, 5.0])