Embody


Accelerators Module

Functions and values

Function or value Description

allBodiesConnected positions gravitationalParameters

Full Usage: allBodiesConnected positions gravitationalParameters

Parameters:
Returns: NumericalVector3<MeasureProduct<MeasureInverse<MeasureProduct<'t, 't>>, MeasureProduct<'l, MeasureOne>>> array
Modifiers: inline
Type parameters: 'l, 't

Accelerator that calculates forces between every pair of bodies. TODO: optimize: r_ij and r_ji are currently calculated separately, even though r_ij = -r_ji.

positions : NumericalVector3<'l> array
gravitationalParameters : float<MeasureProduct<MeasureInverse<MeasureProduct<'t, 't>>, MeasureProduct<MeasureProduct<'l, MeasureProduct<'l, 'l>>, MeasureOne>>> array
Returns: NumericalVector3<MeasureProduct<MeasureInverse<MeasureProduct<'t, 't>>, MeasureProduct<'l, MeasureOne>>> array