Coverage for kwant/operator.pxd : 100%
Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1from .graph.defs cimport gint
2from .graph.defs import gint_dtype
5cdef gint _bisect(gint[:] a, gint x)
7cdef int _is_hermitian(
8 complex[:, :] a, double atol=*, double rtol=*
9) except -1
11cdef int _is_hermitian_3d(
12 complex[:, :, :] a, double atol=*, double rtol=*
13) except -1
15cdef _select(gint[:, :] arr, gint[:] indexes)
17cdef int _check_onsite(complex[:, :] M, gint norbs,
18 int check_hermiticity) except -1
20cdef int _check_onsites(complex[:, :, :] M, gint norbs,
21 int check_hermiticity) except -1
23cdef int _check_hams(complex[:, :, :] H, gint to_norbs, gint from_norbs,
24 int check_hermiticity) except -1
26cdef void _get_orbs(gint[:, :] site_ranges, gint site,
27 gint *start_orb, gint *norbs)
30cdef class BlockSparseMatrix:
31 cdef public gint[:, :] block_offsets, block_shapes
32 cdef public gint[:] data_offsets
33 cdef public complex[:] data
35 cdef complex* get(self, gint block_idx)
38cdef class _LocalOperator:
39 cdef public int check_hermiticity, sum
40 cdef public object syst, onsite, _onsite_param_names, _terms
41 cdef public gint[:, :] where, _site_ranges
42 cdef public BlockSparseMatrix _bound_onsite, _bound_hamiltonian
44 cdef BlockSparseMatrix _eval_onsites(self, args, params)
45 cdef BlockSparseMatrix _eval_hamiltonian(self, args, params)
48cdef class Density(_LocalOperator):
49 pass
52cdef class Current(_LocalOperator):
53 pass
56cdef class Source(_LocalOperator):
57 pass