opensrdk-linear-algebra 0.6.3

Standard linear algebra library using blas and lapack for OpenSRDK toolchain.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::matrix::Matrix;
use crate::number::c64;

impl Matrix<c64> {
    pub fn adjoint(&self) -> Matrix<c64> {
        let mut new_matrix = Matrix::<c64>::new(self.cols, self.rows);

        for j in 0..new_matrix.cols {
            for i in 0..new_matrix.rows {
                new_matrix[j][i] = c64::new(self[i][j].re, -1.0 * self[i][j].im);
            }
        }

        new_matrix
    }
}