-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cholesky factorization now solves a linear system.
- Loading branch information
Showing
5 changed files
with
59 additions
and
47 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
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,6 +1,7 @@ | ||
interface | ||
subroutine Print_Matrix(a) | ||
subroutine Print_Matrix(message, matrix) | ||
implicit none | ||
real, dimension(:,:) :: a | ||
character(len=*) :: message | ||
real, dimension(:,:) :: matrix | ||
end subroutine Print_Matrix | ||
end interface |
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,18 @@ | ||
!======================================================================! | ||
subroutine Print_Vector(a) | ||
subroutine Print_Vector(message, vector) | ||
!----------------------------------------------------------------------! | ||
implicit none | ||
!----------------------------------------------------------------------! | ||
real, dimension(:) :: a | ||
character(len=*) :: message | ||
real, dimension(:) :: vector | ||
!----------------------------------------------------------------------! | ||
integer :: row, col | ||
integer :: row | ||
!----------------------------------------------------------------------! | ||
|
||
do row = 1, size(a) | ||
write(*,"(f8.3)") a(row) | ||
write(*,*) message | ||
|
||
do row = 1, size(vector) | ||
write(*,"(f8.3)") vector(row) | ||
end do | ||
|
||
end subroutine Print_Vector |
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,6 +1,7 @@ | ||
interface | ||
subroutine Print_Vector(a) | ||
subroutine Print_Vector(message, vector) | ||
implicit none | ||
real, dimension(:) :: a | ||
character(len=*) :: message | ||
real, dimension(:) :: vector | ||
end subroutine Print_Vector | ||
end interface |