Crates.io | RayBNN_Raytrace |
lib.rs | RayBNN_Raytrace |
version | 2.0.3 |
source | src |
created_at | 2023-10-06 02:01:32.511167 |
updated_at | 2024-06-18 06:08:17.283623 |
description | Ray tracing library using GPUs, CPUs, and FPGAs via CUDA, OpenCL, and oneAPI |
homepage | |
repository | https://github.com/BrosnanYuen/RayBNN_Raytrace |
max_upload_size | |
id | 994742 |
size | 202,201 |
Ray tracing library using GPUs, CPUs, and FPGAs via CUDA, OpenCL, and oneAPI
Raytraces intersections between rays, spheres, circles
Install the Arrayfire 3.9.0 binaries at https://arrayfire.com/binaries/
or build from source https://github.com/arrayfire/arrayfire/wiki/Getting-ArrayFire
arrayfire = { version = "3.8.1", package = "arrayfire_fork" }
rayon = "1.10.0"
num = "0.4.3"
num-traits = "0.2.19"
half = { version = "2.4.1" , features = ["num-traits"] }
RayBNN_DataLoader = "2.0.3"
RayBNN_Sparse = "2.0.2"
RayBNN_Cell = "2.0.3"
RayBNN_Raytrace = "2.0.3"
RayBNN_Raytrace::Intersect::Sphere::line_sphere_intersect(
&start_line,
&dir_line,
&circle_center,
&circle_radius,
&mut intersect
);
RayBNN_Raytrace::Intersect::Sphere::line_sphere_intersect_batch(
3,
&start_line,
&dir_line,
&circle_center,
&circle_radius,
&mut intersect
);
RayBNN_Raytrace::Intersect::Sphere::line_sphere_intersect_batchV2(
3,
1,
&circle_center,
&circle_radius,
&mut start_line,
&mut dir_line,
&mut input_idx,
&mut hidden_idx,
);
RayBNN_Raytrace::Tracing::RT3::RT3_distance_limited_directly_connected(
&modeldata_float,
&modeldata_int,
&glia_pos,
&input_pos_total,
&input_idx_total,
&hidden_pos_total,
&hidden_idx_total,
&mut WRowIdxCOO,
&mut WColIdx
);