Skip to content

Commit

Permalink
some ford mods
Browse files Browse the repository at this point in the history
added graphs, private procedures, and docstring cleanups
  • Loading branch information
jacobwilliams committed Jan 21, 2024
1 parent 4ae366a commit d3b555b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 22 deletions.
3 changes: 2 additions & 1 deletion ford.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ predocmark: <
docmark_alt:
docmark: !
display: public
private
source: true
graph: false
graph: true
search: true
preprocessor: gfortran -E
extra_mods: iso_fortran_env:https://gcc.gnu.org/onlinedocs/gfortran/ISO_005fFORTRAN_005fENV.html
Expand Down
39 changes: 18 additions & 21 deletions src/polyroots_module.F90
Original file line number Diff line number Diff line change
Expand Up @@ -3592,8 +3592,8 @@ recursive subroutine cmplx_laguerre(poly, degree, root, iter, success)
!!```
integer, intent(out) :: iter !! number of iterations performed (the number of polynomial
!! evaluations and stopping criterion evaluation)
complex(wp), intent(inout) :: root !! input: guess for the value of a root
!! output: a root of the polynomial
complex(wp), intent(inout) :: root !! * input: guess for the value of a root
!! * output: a root of the polynomial
!!
!! Uses 'root' value as a starting point (!!!!!)
!! Remember to initialize 'root' to some initial guess or to
Expand Down Expand Up @@ -3793,12 +3793,12 @@ recursive subroutine cmplx_laguerre2newton(poly, degree, root, iter, success, st
!! 1 2 3
!! poly(1) x^0 + poly(2) x^1 + poly(3) x^2 + ...
!!```
complex(wp), intent(inout) :: root !! input: guess for the value of a root
!! output: a root of the polynomial
!!
!! Uses 'root' value as a starting point (!!!!!)
!! Remember to initialize 'root' to some initial guess or to
!! point (0,0) if you have no prior knowledge.
complex(wp), intent(inout) :: root !! * input: guess for the value of a root
!! * output: a root of the polynomial
!!
!! Uses 'root' value as a starting point (!!!!!)
!! Remember to initialize 'root' to some initial guess or to
!! point (0,0) if you have no prior knowledge.
integer, intent(in) :: starting_mode !! this should be by default = 2. However if you
!! choose to start with SG method put 1 instead.
!! Zero will cause the routine to
Expand Down Expand Up @@ -5262,13 +5262,10 @@ function ctest(n, a, il, i, ir)
integer,intent(in) :: il !! integers such that il<i<ir
integer,intent(in) :: ir !! integers such that il<i<ir
real(wp),intent(in) :: a(n) !! vector of double
logical :: ctest !! Result:
!!
!! * .true. if the angle formed by (il,a(il)), (i,a(i)), (ir,a(ir)) at
logical :: ctest !! * .true. if the angle formed by (il,a(il)), (i,a(i)), (ir,a(ir)) at
!! the vertex (i,a(i)), is convex up to within the tolerance
!! toler, i.e., if
!! (a(i)-a(il))*(ir-i)-(a(ir)-a(i))*(i-il)>toler.
!!
!! * .false., otherwise.

real(wp) :: s1, s2
Expand Down Expand Up @@ -6599,16 +6596,16 @@ subroutine scomqr(nm,n,low,igh,hr,hi,z,ierr)
integer,intent(in) :: igh !! low and igh are integers determined by the balancing
!! subroutine cbal. if cbal has not been used,
!! set low=1, igh=n
real(wp),intent(inout) :: hi(nm,n) !! Input: hr and hi contain the real and imaginary parts,
!! respectively, of the complex upper hessenberg matrix.
!! their lower triangles below the subdiagonal contain
!! information about the unitary transformations used in
!! the reduction by corth, if performed.
real(wp),intent(inout) :: hi(nm,n) !! * Input: hr and hi contain the real and imaginary parts,
!! respectively, of the complex upper hessenberg matrix.
!! their lower triangles below the subdiagonal contain
!! information about the unitary transformations used in
!! the reduction by corth, if performed.
!!
!! Output: the upper hessenberg portions of hr and hi have been
!! destroyed. therefore, they must be saved before
!! calling comqr if subsequent calculation of
!! eigenvectors is to be performed,
!! * Output: the upper hessenberg portions of hr and hi have been
!! destroyed. therefore, they must be saved before
!! calling comqr if subsequent calculation of
!! eigenvectors is to be performed,
real(wp),intent(inout) :: hr(nm,n) !! see `hi` description
complex(wp),intent(out) :: z(n) !! the real and imaginary parts,
!! respectively, of the eigenvalues. if an error
Expand Down

0 comments on commit d3b555b

Please sign in to comment.