pulgamecanica_matrix/lib.rs
1//! # Pulgamecanica - Vector and Matrix Library
2//!
3//! This library provides functionality for working with vectors and matrices.
4//! It includes utility functions for operations like calculating size, reshaping, and printing.
5
6/// The top-level namespace for the Pulgamecanica library.
7pub mod pulgamecanica {
8 /// The scalar module provides a trait generic for scalars.
9 pub mod scalar;
10
11 /// The vector module provides a generic `Vector` struct and related methods.
12 pub mod vector;
13
14 /// The matrix module provides a generic `Matrix` struct and related methods.
15 pub mod matrix;
16
17 /// The complex module provides a representation of Complex Numbers which implements Scalar.
18 pub mod complex;
19
20 /// The linear interpolation module provides a generic function implementation to apply an interpolation.
21 pub mod linear_interpolation;
22
23 /// The projection matrix module provides a function to generate projection matrices.
24 pub mod projection_matrix;
25
26 // Optionally, re-export types for easier access from the top-level namespace.
27 pub use vector::Vector;
28 pub use matrix::Matrix;
29 pub use scalar::Scalar;
30 pub use complex::Complex;
31 pub use linear_interpolation::lerp;
32 pub use projection_matrix::projection;
33}