Pairwise distances can use the cudaverse CUDA path. Kernel construction and eigendecomposition currently run on the CPU.
Arguments
- x
Numeric observation-by-feature matrix, compatible cudaverse result, or a
SingleCellExperimentwith a reduced dimension.- n_components
Output dimensions.
- sigma
Gaussian kernel bandwidth. Defaults to the median positive pairwise distance.
- diffusion_time
Non-negative diffusion time exponent.
- metric
Euclidean or cosine distance.
- device
Device passed to
cuda_distance().- reduced_dim
For a
SingleCellExperiment, the reduced-dimension name to embed. Seecuda_umap()for automatic selection.
Value
A cuda_embedding with the stable fields documented by
cuda_umap(), stage-level distance/kernel/eigendecomposition provenance,
an optional distance_input stage when resident native storage is reused,
and an additional eigenvalues element.