SCALAPACK 2.2.2
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches

◆ pbctr2af()

subroutine pbctr2af ( integer  icontxt,
character*1  adist,
integer  m,
integer  n,
integer  nb,
complex, dimension( lda, * )  a,
integer  lda,
complex  beta,
complex, dimension( ldb, * )  b,
integer  ldb,
integer  lcmp,
integer  lcmq,
integer  nint 
)

Definition at line 791 of file pbctran.f.

793*
794* -- PB-BLAS routine (version 2.1) --
795* University of Tennessee, Knoxville, Oak Ridge National Laboratory.
796* April 28, 1996
797*
798* .. Scalar Arguments ..
799 CHARACTER*1 ADIST
800 INTEGER ICONTXT, M, N, NB, LDA, LDB, LCMP, LCMQ, NINT
801 COMPLEX BETA
802* ..
803* .. Array Arguments ..
804 COMPLEX A( LDA, * ), B( LDB, * )
805* ..
806*
807* Purpose
808* =======
809*
810* PBCTR2AF forms T <== A + BETA*T, where T is a scattered block
811* row (or column) copied from a (condensed) block column (or row) of A
812*
813* =====================================================================
814*
815* .. Parameters ..
816 COMPLEX ONE
817 parameter( one = ( 1.0e+0, 0.0e+0 ) )
818* ..
819* .. Local Scalars ..
820 INTEGER JA, JB, K, INTV
821* ..
822* .. External Functions ..
823 LOGICAL LSAME
824 INTEGER ICEIL
825 EXTERNAL lsame, iceil
826* ..
827* .. Intrinsic Functions ..
828 INTRINSIC min
829* ..
830* .. Executable Statements ..
831*
832 IF( lsame( adist, 'R' ) ) THEN
833 intv = nb * lcmq
834 ja = 1
835 jb = 1
836 DO 10 k = 1, iceil( nint, nb )
837 CALL pbcmatadd( icontxt, 'G', m, min( n-jb+1, nb ), one,
838 $ a(1,ja), lda, beta, b(1,jb), ldb )
839 ja = ja + nb
840 jb = jb + intv
841 10 CONTINUE
842*
843* if( LSAME( ADIST, 'C' ) ) then
844*
845 ELSE
846 intv = nb * lcmp
847 ja = 1
848 jb = 1
849 DO 20 k = 1, iceil( nint, nb )
850 CALL pbcmatadd( icontxt, 'G', min( m-jb+1, nb ), n, one,
851 $ a(ja,1), lda, beta, b(jb,1), ldb )
852 ja = ja + nb
853 jb = jb + intv
854 20 CONTINUE
855 END IF
856*
857 RETURN
858*
859* End of PBCTR2AF
860*
integer function iceil(inum, idenom)
Definition iceil.f:2
subroutine pbcmatadd(icontxt, mode, m, n, alpha, a, lda, beta, b, ldb)
Definition pbcmatadd.f:3
#define min(A, B)
Definition pcgemr.c:181
logical function lsame(ca, cb)
Definition tools.f:1724
Here is the call graph for this function:
Here is the caller graph for this function: