小编Vla*_*ada的帖子

将 Intel MKL 中的 LAPACK 与 gfortran 链接

我在将 lapack 链接到 fortran 示例程序时遇到问题。这是程序示例.f95

Program LinearEquations
! solving the matrix equation A*x=b using LAPACK
Implicit none

! declarations
double precision :: A(3,3), b(3)
integer :: i, pivot(3), ok

! matrix A
A(1,:)=(/3, 1, 3/)
A(2,:)=(/1, 5, 9/)
A(3,:)=(/2, 6, 5/)

! vector b
b(:)=(/-1, 3, -3/)
!b(:)=(/2, 2, 9/)

! find the solution using the LAPACK routine DGESV
call DGESV(3, 1, A, 3, pivot, b, 3, ok)

! print the solution x
do i=1, 3
  write(*,9) i, b(i)
end …
Run Code Online (Sandbox Code Playgroud)

linux fortran lapack intel-mkl

5
推荐指数
1
解决办法
4776
查看次数

标签 统计

fortran ×1

intel-mkl ×1

lapack ×1

linux ×1