Crates.io | floatx4 |
lib.rs | floatx4 |
version | 1.1.0 |
source | src |
created_at | 2024-07-31 21:18:46.63092 |
updated_at | 2024-07-31 22:05:10.117969 |
description | A library that can perform 4 float operations simultaneously. |
homepage | https://github.com/yIllusionSky/floatx4-rs |
repository | https://github.com/yIllusionSky/floatx4-rs |
max_upload_size | |
id | 1321327 |
size | 20,565 |
A library that can perform 4 float operations simultaneously
use floatx4::Floatx4;
// let array = Floatx4::from_scalar(2.);
let array = Floatx4::from_array([1.,2.,3.,4.]);
// +,-,*,/ ...
let mut new_array = array * array ;
new_array+=array;
// print
for value in new_array{
println!("{value:?}");
}