rustebra 0.2.1

A hybrid no_std/alloc linear algebra crate for Rust, scaling from embedded targets to dynamic Krylov subspace solvers.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#[cfg(feature = "alloc")]
#[test]
fn dynamic_storage_construction_and_access() {
    use rustebra::storage::{DynamicStorage, Storage};

    let storage = DynamicStorage::new(vec![1, 2, 3]);

    assert_eq!(storage.len(), 3);
    assert!(!storage.is_empty());
    assert_eq!(storage.get(1), Some(&2));
    assert_eq!(storage.get(3), None);
}