Skip to main content

Crate orthos

Crate orthos 

Source
Expand description

§orthos

High-performance linear algebra library written in Rust.

§Features

  • Matrix operations: add, subtract, multiply, transpose, inverse, determinant
  • Vector operations: dot product, norm, normalize
  • Optional Python bindings via PyO3 (enable with python feature)

§Example

use orthos::{Matrix, Vector};

// Create a matrix
let m = Matrix::from_rows(vec![
    vec![1.0, 2.0],
    vec![3.0, 4.0],
]).unwrap();

// Matrix operations
let det = m.determinant().unwrap();
let transposed = m.transpose();

// Create a vector
let v = Vector::new(vec![1.0, 2.0, 3.0]);
let norm = v.norm();

Re-exports§

pub use error::MatrixError;
pub use error::VectorError;
pub use matrix::Matrix;
pub use vector::Vector;

Modules§

error
matrix
ops
vector