Skip to content

@graphty/algorithms / index / accelerated

Function: accelerated() ​

accelerated(acc): AcceleratedAlgorithms

Defined in: indexed/accelerator.ts:771

Build the dispatcher for an accelerator, or for none.

Parameters ​

acc ​

AlgorithmAccelerator | null | undefined

The injected accelerator, or null / undefined for the CPU path

Returns ​

AcceleratedAlgorithms

A dispatcher whose methods delegate where they can and run the CPU port otherwise