Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
kwant
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Joseph Weston
kwant
Commits
874367dc
Commit
874367dc
authored
12 years ago
by
Christoph Groth
Browse files
Options
Downloads
Patches
Plain Diff
sparse solver: docstring fixes
parent
2826d3df
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kwant/solvers/sparse.py
+12
-12
12 additions, 12 deletions
kwant/solvers/sparse.py
with
12 additions
and
12 deletions
kwant/solvers/sparse.py
+
12
−
12
View file @
874367dc
...
...
@@ -80,12 +80,12 @@ def make_linear_sys(sys, out_leads, in_leads, energy=0, force_realspace=False):
sys : kwant.system.FiniteSystem
low level system, containing the leads and the Hamiltonian of a
scattering region.
energy : numb
er
excitation energy at which to solve the scattering problem.
out_leads : list of integ
er
s
numbers of leads where current or wave function is extracted
in_leads : list of integers
numbers of leads in which current or wave function is injected.
out_leads : list of integ
er
s
numbers of leads where current or wave function is exctracted
energy : numb
er
excitation energy at which to solve the scattering problem.
force_realspace : bool
calculate Green
'
s function between the outermost lead
sites, instead of lead modes. This is almost always
...
...
@@ -94,9 +94,9 @@ def make_linear_sys(sys, out_leads, in_leads, energy=0, force_realspace=False):
Returns
-------
(h_sys, rhs, keep_vars) : LinearSys
`h_sys` is a numpy.sparse.csc_matrix, containing the
righ
t hand side
of the system of equations, `rhs` is
the
list of matrices with the
lef
t hand side, `keep_vars` is a list
with
numbers of variables in the
`h_sys` is a numpy.sparse.csc_matrix, containing the
lef
t hand side
of the system of equations, `rhs` is
a
list of matrices with the
righ
t hand side, `keep_vars` is a list
of
numbers of variables in the
solution that have to be stored (typically a small part of the
complete solution).
lead_info : list of objects
...
...
@@ -107,7 +107,7 @@ def make_linear_sys(sys, out_leads, in_leads, energy=0, force_realspace=False):
Notes
-----
Both incom
d
ing and outgoing leads can be defined via either self-energy,
Both incoming and outgoing leads can be defined via either self-energy,
or a low-level translationally invariant system.
The system of equations that is created is described in
kwant/doc/other/linear_system.pdf
...
...
@@ -226,7 +226,7 @@ def solve_linear_sys(a, b, keep_vars=None):
Notes
-----
This function is largely a wrapper to
a scipy.sparse.linalg.
factorized.
This function is largely a wrapper to
`
factorized
`
.
"""
a
=
sp
.
csc_matrix
(
a
)
...
...
@@ -256,10 +256,10 @@ def solve(sys, energy=0, out_leads=None, in_leads=None, force_realspace=False):
scattering region.
energy : number
excitation energy at which to solve the scattering problem.
out_leads : list of integers
numbers of leads where current or wave function is extracted
in_leads : list of integers
numbers of leads in which current or wave function is injected.
out_leads : list of integers
numbers of leads where current or wave function is exctracted
force_realspace : bool
calculate Green
'
s function between the outermost lead
sites, instead of lead modes. This is almost always
...
...
@@ -273,7 +273,7 @@ def solve(sys, energy=0, out_leads=None, in_leads=None, force_realspace=False):
Notes
-----
Both in_leads and out_leads
should
be sorted and
should
only contain
Both in_leads and out_leads
must
be sorted and
must
only contain
unique entries.
Returns the Green
'
s function elements between in_leads and out_leads. If
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment