diff options
| author | hachem <im@hachem.wtf> | 2024-09-22 13:07:30 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2024-09-22 13:07:30 +0200 |
| commit | 1a9ef4a7f0cbd4ed848ccf0903ebbbd4fdab6adf (patch) | |
| tree | 541a12284ab1508690170bb6751566661a0ab88c /libpsi/src/maths | |
| parent | d3fa0e946c2b88ec0534353e09d704ed73712d1a (diff) | |
First quantum calculation
Diffstat (limited to 'libpsi/src/maths')
| -rw-r--r-- | libpsi/src/maths/vector.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libpsi/src/maths/vector.rs b/libpsi/src/maths/vector.rs index 0c13e4c..243061d 100644 --- a/libpsi/src/maths/vector.rs +++ b/libpsi/src/maths/vector.rs @@ -43,6 +43,7 @@ pub trait VectorMatrix<T: Float> { fn to_matrix(&self) -> Matrix<T>; } +#[derive(Clone)] pub struct VectorImpl<T: Float, const ROWS: usize, const COLS: usize>(Vec<T>); pub type RowVector<T> = VectorImpl<T, 1, 0>; pub type ColumnVector<T> = VectorImpl<T, 0, 1>; |
