outer_integral

pyoptex.utils.comp.outer_integral(arr)[source]

Computes the integral of the outer products of the array rows using the Monte-Carlo approximation, up to the volume factor. This is a simple average of the outer products.

Parameters

arrnp.array(2d)

The array

Returns

outnp.array(2d)

The integral of the outer product, up to the volume factor.