{"id":18517426,"url":"https://github.com/brosnanyuen/raybnn_cell","last_synced_at":"2026-01-21T15:32:34.410Z","repository":{"id":199842597,"uuid":"703876616","full_name":"BrosnanYuen/RayBNN_Cell","owner":"BrosnanYuen","description":"Cell Position Generator for RayBNN","archived":false,"fork":false,"pushed_at":"2024-06-18T05:54:39.000Z","size":112,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-23T17:13:48.939Z","etag":null,"topics":["biological-simulations","biology","cell","cells","cuda","gpu","opencl","parallel","physics","raybnn","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BrosnanYuen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-12T05:14:07.000Z","updated_at":"2024-06-18T05:54:42.000Z","dependencies_parsed_at":"2025-02-13T18:44:28.203Z","dependency_job_id":null,"html_url":"https://github.com/BrosnanYuen/RayBNN_Cell","commit_stats":{"total_commits":146,"total_committers":2,"mean_commits":73.0,"dds":0.006849315068493178,"last_synced_commit":"c854929491e0abff9fbfbcbf6bc3069e01d19e49"},"previous_names":["brosnanyuen/raybnn_cell"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/BrosnanYuen/RayBNN_Cell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrosnanYuen%2FRayBNN_Cell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrosnanYuen%2FRayBNN_Cell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrosnanYuen%2FRayBNN_Cell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrosnanYuen%2FRayBNN_Cell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BrosnanYuen","download_url":"https://codeload.github.com/BrosnanYuen/RayBNN_Cell/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrosnanYuen%2FRayBNN_Cell/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28635865,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T15:01:31.228Z","status":"ssl_error","status_checked_at":"2026-01-21T14:42:58.942Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["biological-simulations","biology","cell","cells","cuda","gpu","opencl","parallel","physics","raybnn","rust"],"created_at":"2024-11-06T17:03:25.499Z","updated_at":"2026-01-21T15:32:34.391Z","avatar_url":"https://github.com/BrosnanYuen.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RayBNN_Cell\n\nCell posiition generation library for RayBNN using GPUs, CPUs, and FPGAs via CUDA, OpenCL, and oneAPI \n\n\n\n# Install Arrayfire\n\nInstall the Arrayfire 3.9.0 binaries at [https://arrayfire.com/binaries/](https://arrayfire.com/binaries/)\n\nor build from source\n[https://github.com/arrayfire/arrayfire/wiki/Getting-ArrayFire](https://github.com/arrayfire/arrayfire/wiki/Getting-ArrayFire)\n\n\n\n\n# Add to Cargo.toml\n```\narrayfire = { version = \"3.8.1\", package = \"arrayfire_fork\" }\nrayon = \"1.7.0\"\nnum = \"0.4.1\"\nnum-traits = \"0.2.16\"\nhalf = { version = \"2.3.1\" , features = [\"num-traits\"] }\nRayBNN_DataLoader = \"2.0.3\"\nRayBNN_Cell = \"2.0.3\"\n```\n\n# List of Examples\n\n\n# Generate Cells and Check them for Collisions\n```\n\n//Generate Random Uniform Cells within a Sphere\nlet mut cell_pos: arrayfire::Array\u003cf32\u003e  = RayBNN_Cell::Hidden::Sphere::generate_uniform_sphere_position(\u0026modeldata_float, \u0026modeldata_int);\n\n\n//Get indicies of non colliding cells\nlet idx = RayBNN_Cell::Hidden::Sphere::check_cell_collision_minibatch(\n    \u0026modeldata_float, \n    \u0026cell_pos\n);\n\nlet idx = arrayfire::locate(\u0026idx);\n\n//Select non colliding cells\ncell_pos = arrayfire::lookup(\u0026cell_pos, \u0026idx, 0);\n\n```\n\n# Types of cell collision checkers\n```\n//Checks One by one\nlet idx = RayBNN_Cell::Hidden::Sphere::check_cell_collision_serial(\n    \u0026modeldata_float, \n    \u0026cell_pos\n);\n\n//Checks All cells at once\nlet idx = RayBNN_Cell::Hidden::Sphere::check_cell_collision_batch(\n    \u0026modeldata_float, \n    \u0026cell_pos\n);\n\n//Checks in minibatches\nlet idx = RayBNN_Cell::Hidden::Sphere::check_cell_collision_minibatch(\n    \u0026modeldata_float, \n    \u0026cell_pos\n);\n\n```\n\n\n# Generate Input Neuron Positions\n\n```\nlet input_neurons: arrayfire::Array\u003cf64\u003e = RayBNN_Cell::Input::Sphere::create_spaced_neurons_1D(\n    sphere_rad,\n    input_size,\n);\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrosnanyuen%2Fraybnn_cell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrosnanyuen%2Fraybnn_cell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrosnanyuen%2Fraybnn_cell/lists"}