mod pcg64;
mod philox;
mod threefry;
mod xoshiro256;
pub use pcg64::{launch_pcg64_randn, launch_pcg64_uniform};
pub use philox::{launch_philox_randn, launch_philox_uniform};
pub use threefry::{launch_threefry_randn, launch_threefry_uniform};
pub use xoshiro256::{launch_xoshiro256_randn, launch_xoshiro256_uniform};
use crate::dtype::DType;
use crate::error::{Error, Result};
fn check_float_dtype(dtype: DType, op: &'static str) -> Result<()> {
match dtype {
DType::F32 => Ok(()),
_ => Err(Error::UnsupportedDType { dtype, op }),
}
}