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
use rustebra::storage::{StaticStorage, Storage};

#[test]
fn static_storage_construction_and_access() {
    let storage = StaticStorage::new([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);
}