-
Notifications
You must be signed in to change notification settings - Fork 621
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
49 changed files
with
1,606 additions
and
281 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add alternative COO format |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
#cython: language_level=3 | ||
|
||
from qutip.core.data.coo cimport COO | ||
from qutip.core.data.csr cimport CSR | ||
from qutip.core.data.dense cimport Dense | ||
from qutip.core.data.dia cimport Dia | ||
|
||
cdef void add_dense_eq_order_inplace(Dense left, Dense right, double complex scale) | ||
cpdef COO add_coo(COO left, COO right, double complex scale=*) | ||
cpdef Dense iadd_dense_coo(Dense left, COO right, double complex scale=*) | ||
|
||
cpdef CSR add_csr(CSR left, CSR right, double complex scale=*) | ||
cpdef Dense add_dense(Dense left, Dense right, double complex scale=*) | ||
cpdef Dia add_dia(Dia left, Dia right, double complex scale=*) | ||
cpdef Dense iadd_dense(Dense left, Dense right, double complex scale=*) | ||
|
||
cpdef Dense add_dense(Dense left, Dense right, double complex scale=*) | ||
cpdef Dense iadd_dense_dense(Dense left, Dense right, double complex scale=*) | ||
|
||
cdef void add_dense_eq_order_inplace(Dense left, Dense right, double complex scale) | ||
|
||
cpdef COO sub_coo(COO left, COO right) | ||
cpdef CSR sub_csr(CSR left, CSR right) | ||
cpdef Dense sub_dense(Dense left, Dense right) | ||
cpdef Dia sub_dia(Dia left, Dia right) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.