rayon_naive_sqrt: Perform a sample multithreaded operation (rayon)

Description Usage Arguments Details Value

View source: R/extendr-wrappers.R

Description

Demonstrates the performance of multithreaded tasks using rayon in Rust

Usage

1

Arguments

f

a double vector to calculate the square root of

Details

This function uses the rayon crate to parallelize calculating the square root of each number in a slice of floats. The algorithm is the "Babylonian Method" of calculating square roots.

Value

a double vector of square roots


ericwburden/rustbind documentation built on April 10, 2021, 12:31 p.m.