yalal 0.0.1

Yet Another Linear Algebra Library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
type E=f64;

pub struct Vector {
    elements: Box<[E]>,
}

impl Vector {
    pub fn from(elements: &[E]) -> Vector {
        Vector {
            elements: Box::from(elements),
        }
    }

    pub fn to_column(&self) -> super::matrix::Matrix {
        super::matrix::Matrix::from(self.elements.len(), 1, &self.elements)
    }
}