Skip to content

Commit

Permalink
mul
Browse files Browse the repository at this point in the history
  • Loading branch information
tianyibigdata committed May 14, 2021
1 parent f72b581 commit 7c93418
Show file tree
Hide file tree
Showing 10,969 changed files with 2,839,945 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
Binary file added BLAS-3.8.0/._Makefile
Binary file not shown.
Binary file added BLAS-3.8.0/._caxpy.f
Binary file not shown.
Binary file added BLAS-3.8.0/._ccopy.f
Binary file not shown.
Binary file added BLAS-3.8.0/._cdotc.f
Binary file not shown.
Binary file added BLAS-3.8.0/._cdotu.f
Binary file not shown.
Binary file added BLAS-3.8.0/._cgbmv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._cgemm.f
Binary file not shown.
Binary file added BLAS-3.8.0/._cgemv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._cgerc.f
Binary file not shown.
Binary file added BLAS-3.8.0/._cgeru.f
Binary file not shown.
Binary file added BLAS-3.8.0/._chbmv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._chemm.f
Binary file not shown.
Binary file added BLAS-3.8.0/._chemv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._cher.f
Binary file not shown.
Binary file added BLAS-3.8.0/._cher2.f
Binary file not shown.
Binary file added BLAS-3.8.0/._cher2k.f
Binary file not shown.
Binary file added BLAS-3.8.0/._cherk.f
Binary file not shown.
Binary file added BLAS-3.8.0/._chpmv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._chpr.f
Binary file not shown.
Binary file added BLAS-3.8.0/._chpr2.f
Binary file not shown.
Binary file added BLAS-3.8.0/._crotg.f
Binary file not shown.
Binary file added BLAS-3.8.0/._cscal.f
Binary file not shown.
Binary file added BLAS-3.8.0/._csrot.f
Binary file not shown.
Binary file added BLAS-3.8.0/._csscal.f
Binary file not shown.
Binary file added BLAS-3.8.0/._cswap.f
Binary file not shown.
Binary file added BLAS-3.8.0/._csymm.f
Binary file not shown.
Binary file added BLAS-3.8.0/._csyr2k.f
Binary file not shown.
Binary file added BLAS-3.8.0/._csyrk.f
Binary file not shown.
Binary file added BLAS-3.8.0/._ctbmv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._ctbsv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._ctpmv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._ctpsv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._ctrmm.f
Binary file not shown.
Binary file added BLAS-3.8.0/._ctrmv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._ctrsm.f
Binary file not shown.
Binary file added BLAS-3.8.0/._ctrsv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._dasum.f
Binary file not shown.
Binary file added BLAS-3.8.0/._daxpy.f
Binary file not shown.
Binary file added BLAS-3.8.0/._dcabs1.f
Binary file not shown.
Binary file added BLAS-3.8.0/._dcopy.f
Binary file not shown.
Binary file added BLAS-3.8.0/._ddot.f
Binary file not shown.
Binary file added BLAS-3.8.0/._dgbmv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._dgemm.f
Binary file not shown.
Binary file added BLAS-3.8.0/._dgemv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._dger.f
Binary file not shown.
Binary file added BLAS-3.8.0/._dnrm2.f
Binary file not shown.
Binary file added BLAS-3.8.0/._drot.f
Binary file not shown.
Binary file added BLAS-3.8.0/._drotg.f
Binary file not shown.
Binary file added BLAS-3.8.0/._drotm.f
Binary file not shown.
Binary file added BLAS-3.8.0/._drotmg.f
Binary file not shown.
Binary file added BLAS-3.8.0/._dsbmv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._dscal.f
Binary file not shown.
Binary file added BLAS-3.8.0/._dsdot.f
Binary file not shown.
Binary file added BLAS-3.8.0/._dspmv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._dspr.f
Binary file not shown.
Binary file added BLAS-3.8.0/._dspr2.f
Binary file not shown.
Binary file added BLAS-3.8.0/._dswap.f
Binary file not shown.
Binary file added BLAS-3.8.0/._dsymm.f
Binary file not shown.
Binary file added BLAS-3.8.0/._dsymv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._dsyr.f
Binary file not shown.
Binary file added BLAS-3.8.0/._dsyr2.f
Binary file not shown.
Binary file added BLAS-3.8.0/._dsyr2k.f
Binary file not shown.
Binary file added BLAS-3.8.0/._dsyrk.f
Binary file not shown.
Binary file added BLAS-3.8.0/._dtbmv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._dtbsv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._dtpmv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._dtpsv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._dtrmm.f
Binary file not shown.
Binary file added BLAS-3.8.0/._dtrmv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._dtrsm.f
Binary file not shown.
Binary file added BLAS-3.8.0/._dtrsv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._dzasum.f
Binary file not shown.
Binary file added BLAS-3.8.0/._dznrm2.f
Binary file not shown.
Binary file added BLAS-3.8.0/._icamax.f
Binary file not shown.
Binary file added BLAS-3.8.0/._idamax.f
Binary file not shown.
Binary file added BLAS-3.8.0/._isamax.f
Binary file not shown.
Binary file added BLAS-3.8.0/._izamax.f
Binary file not shown.
Binary file added BLAS-3.8.0/._lsame.f
Binary file not shown.
Binary file added BLAS-3.8.0/._make.inc
Binary file not shown.
Binary file added BLAS-3.8.0/._sasum.f
Binary file not shown.
Binary file added BLAS-3.8.0/._saxpy.f
Binary file not shown.
Binary file added BLAS-3.8.0/._scabs1.f
Binary file not shown.
Binary file added BLAS-3.8.0/._scasum.f
Binary file not shown.
Binary file added BLAS-3.8.0/._scnrm2.f
Binary file not shown.
Binary file added BLAS-3.8.0/._scopy.f
Binary file not shown.
Binary file added BLAS-3.8.0/._sdot.f
Binary file not shown.
Binary file added BLAS-3.8.0/._sdsdot.f
Binary file not shown.
Binary file added BLAS-3.8.0/._sgbmv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._sgemm.f
Binary file not shown.
Binary file added BLAS-3.8.0/._sgemv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._sger.f
Binary file not shown.
Binary file added BLAS-3.8.0/._snrm2.f
Binary file not shown.
Binary file added BLAS-3.8.0/._srot.f
Binary file not shown.
Binary file added BLAS-3.8.0/._srotg.f
Binary file not shown.
Binary file added BLAS-3.8.0/._srotm.f
Binary file not shown.
Binary file added BLAS-3.8.0/._srotmg.f
Binary file not shown.
Binary file added BLAS-3.8.0/._ssbmv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._sscal.f
Binary file not shown.
Binary file added BLAS-3.8.0/._sspmv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._sspr.f
Binary file not shown.
Binary file added BLAS-3.8.0/._sspr2.f
Binary file not shown.
Binary file added BLAS-3.8.0/._sswap.f
Binary file not shown.
Binary file added BLAS-3.8.0/._ssymm.f
Binary file not shown.
Binary file added BLAS-3.8.0/._ssymv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._ssyr.f
Binary file not shown.
Binary file added BLAS-3.8.0/._ssyr2.f
Binary file not shown.
Binary file added BLAS-3.8.0/._ssyr2k.f
Binary file not shown.
Binary file added BLAS-3.8.0/._ssyrk.f
Binary file not shown.
Binary file added BLAS-3.8.0/._stbmv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._stbsv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._stpmv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._stpsv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._strmm.f
Binary file not shown.
Binary file added BLAS-3.8.0/._strmv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._strsm.f
Binary file not shown.
Binary file added BLAS-3.8.0/._strsv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._xerbla.f
Binary file not shown.
Binary file added BLAS-3.8.0/._xerbla_array.f
Binary file not shown.
Binary file added BLAS-3.8.0/._zaxpy.f
Binary file not shown.
Binary file added BLAS-3.8.0/._zcopy.f
Binary file not shown.
Binary file added BLAS-3.8.0/._zdotc.f
Binary file not shown.
Binary file added BLAS-3.8.0/._zdotu.f
Binary file not shown.
Binary file added BLAS-3.8.0/._zdrot.f
Binary file not shown.
Binary file added BLAS-3.8.0/._zdscal.f
Binary file not shown.
Binary file added BLAS-3.8.0/._zgbmv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._zgemm.f
Binary file not shown.
Binary file added BLAS-3.8.0/._zgemv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._zgerc.f
Binary file not shown.
Binary file added BLAS-3.8.0/._zgeru.f
Binary file not shown.
Binary file added BLAS-3.8.0/._zhbmv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._zhemm.f
Binary file not shown.
Binary file added BLAS-3.8.0/._zhemv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._zher.f
Binary file not shown.
Binary file added BLAS-3.8.0/._zher2.f
Binary file not shown.
Binary file added BLAS-3.8.0/._zher2k.f
Binary file not shown.
Binary file added BLAS-3.8.0/._zherk.f
Binary file not shown.
Binary file added BLAS-3.8.0/._zhpmv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._zhpr.f
Binary file not shown.
Binary file added BLAS-3.8.0/._zhpr2.f
Binary file not shown.
Binary file added BLAS-3.8.0/._zrotg.f
Binary file not shown.
Binary file added BLAS-3.8.0/._zscal.f
Binary file not shown.
Binary file added BLAS-3.8.0/._zswap.f
Binary file not shown.
Binary file added BLAS-3.8.0/._zsymm.f
Binary file not shown.
Binary file added BLAS-3.8.0/._zsyr2k.f
Binary file not shown.
Binary file added BLAS-3.8.0/._zsyrk.f
Binary file not shown.
Binary file added BLAS-3.8.0/._ztbmv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._ztbsv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._ztpmv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._ztpsv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._ztrmm.f
Binary file not shown.
Binary file added BLAS-3.8.0/._ztrmv.f
Binary file not shown.
Binary file added BLAS-3.8.0/._ztrsm.f
Binary file not shown.
Binary file added BLAS-3.8.0/._ztrsv.f
Binary file not shown.
171 changes: 171 additions & 0 deletions BLAS-3.8.0/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,171 @@
include make.inc

#######################################################################
# This is the makefile to create a library for the BLAS.
# The files are grouped as follows:
#
# SBLAS1 -- Single precision real BLAS routines
# CBLAS1 -- Single precision complex BLAS routines
# DBLAS1 -- Double precision real BLAS routines
# ZBLAS1 -- Double precision complex BLAS routines
#
# CB1AUX -- Real BLAS routines called by complex routines
# ZB1AUX -- D.P. real BLAS routines called by d.p. complex
# routines
#
# ALLBLAS -- Auxiliary routines for Level 2 and 3 BLAS
#
# SBLAS2 -- Single precision real BLAS2 routines
# CBLAS2 -- Single precision complex BLAS2 routines
# DBLAS2 -- Double precision real BLAS2 routines
# ZBLAS2 -- Double precision complex BLAS2 routines
#
# SBLAS3 -- Single precision real BLAS3 routines
# CBLAS3 -- Single precision complex BLAS3 routines
# DBLAS3 -- Double precision real BLAS3 routines
# ZBLAS3 -- Double precision complex BLAS3 routines
#
# The library can be set up to include routines for any combination
# of the four precisions. To create or add to the library, enter make
# followed by one or more of the precisions desired. Some examples:
# make single
# make single complex
# make single double complex complex16
# Note that these commands are not safe for parallel builds.
#
# Alternatively, the commands
# make all
# or
# make
# without any arguments creates a library of all four precisions.
# The name of the library is held in BLASLIB, which is set in the
# make.inc
#
# To remove the object files after the library is created, enter
# make clean
# To force the source files to be recompiled, enter, for example,
# make single FRC=FRC
#
#---------------------------------------------------------------------
#
# Edward Anderson, University of Tennessee
# March 26, 1990
# Susan Ostrouchov, September 30, 1994
# Julie Langou, December 2017
#
#######################################################################

all: $(BLASLIB)

#---------------------------------------------------------
# Comment out the next 6 definitions if you already have
# the Level 1 BLAS.
#---------------------------------------------------------
SBLAS1 = isamax.o sasum.o saxpy.o scopy.o sdot.o snrm2.o \
srot.o srotg.o sscal.o sswap.o sdsdot.o srotmg.o srotm.o
$(SBLAS1): $(FRC)

CBLAS1 = scabs1.o scasum.o scnrm2.o icamax.o caxpy.o ccopy.o \
cdotc.o cdotu.o csscal.o crotg.o cscal.o cswap.o csrot.o
$(CBLAS1): $(FRC)

DBLAS1 = idamax.o dasum.o daxpy.o dcopy.o ddot.o dnrm2.o \
drot.o drotg.o dscal.o dsdot.o dswap.o drotmg.o drotm.o
$(DBLAS1): $(FRC)

ZBLAS1 = dcabs1.o dzasum.o dznrm2.o izamax.o zaxpy.o zcopy.o \
zdotc.o zdotu.o zdscal.o zrotg.o zscal.o zswap.o zdrot.o
$(ZBLAS1): $(FRC)

CB1AUX = isamax.o sasum.o saxpy.o scopy.o snrm2.o sscal.o
$(CB1AUX): $(FRC)

ZB1AUX = idamax.o dasum.o daxpy.o dcopy.o dnrm2.o dscal.o
$(ZB1AUX): $(FRC)

#---------------------------------------------------------------------
# The following line defines auxiliary routines needed by both the
# Level 2 and Level 3 BLAS. Comment it out only if you already have
# both the Level 2 and 3 BLAS.
#---------------------------------------------------------------------
ALLBLAS = lsame.o xerbla.o xerbla_array.o
$(ALLBLAS) : $(FRC)

#---------------------------------------------------------
# Comment out the next 4 definitions if you already have
# the Level 2 BLAS.
#---------------------------------------------------------
SBLAS2 = sgemv.o sgbmv.o ssymv.o ssbmv.o sspmv.o \
strmv.o stbmv.o stpmv.o strsv.o stbsv.o stpsv.o \
sger.o ssyr.o sspr.o ssyr2.o sspr2.o
$(SBLAS2): $(FRC)

CBLAS2 = cgemv.o cgbmv.o chemv.o chbmv.o chpmv.o \
ctrmv.o ctbmv.o ctpmv.o ctrsv.o ctbsv.o ctpsv.o \
cgerc.o cgeru.o cher.o chpr.o cher2.o chpr2.o
$(CBLAS2): $(FRC)

DBLAS2 = dgemv.o dgbmv.o dsymv.o dsbmv.o dspmv.o \
dtrmv.o dtbmv.o dtpmv.o dtrsv.o dtbsv.o dtpsv.o \
dger.o dsyr.o dspr.o dsyr2.o dspr2.o
$(DBLAS2): $(FRC)

ZBLAS2 = zgemv.o zgbmv.o zhemv.o zhbmv.o zhpmv.o \
ztrmv.o ztbmv.o ztpmv.o ztrsv.o ztbsv.o ztpsv.o \
zgerc.o zgeru.o zher.o zhpr.o zher2.o zhpr2.o
$(ZBLAS2): $(FRC)

#---------------------------------------------------------
# Comment out the next 4 definitions if you already have
# the Level 3 BLAS.
#---------------------------------------------------------
SBLAS3 = sgemm.o ssymm.o ssyrk.o ssyr2k.o strmm.o strsm.o
$(SBLAS3): $(FRC)

CBLAS3 = cgemm.o csymm.o csyrk.o csyr2k.o ctrmm.o ctrsm.o \
chemm.o cherk.o cher2k.o
$(CBLAS3): $(FRC)

DBLAS3 = dgemm.o dsymm.o dsyrk.o dsyr2k.o dtrmm.o dtrsm.o
$(DBLAS3): $(FRC)

ZBLAS3 = zgemm.o zsymm.o zsyrk.o zsyr2k.o ztrmm.o ztrsm.o \
zhemm.o zherk.o zher2k.o
$(ZBLAS3): $(FRC)

ALLOBJ=$(SBLAS1) $(SBLAS2) $(SBLAS3) $(DBLAS1) $(DBLAS2) $(DBLAS3) \
$(CBLAS1) $(CBLAS2) $(CBLAS3) $(ZBLAS1) \
$(ZBLAS2) $(ZBLAS3) $(ALLBLAS)

$(BLASLIB): $(ALLOBJ)
$(ARCH) $(ARCHFLAGS) $@ $(ALLOBJ)
$(RANLIB) $@

single: $(SBLAS1) $(ALLBLAS) $(SBLAS2) $(SBLAS3)
$(ARCH) $(ARCHFLAGS) $(BLASLIB) $(SBLAS1) $(ALLBLAS) \
$(SBLAS2) $(SBLAS3)
$(RANLIB) $(BLASLIB)

double: $(DBLAS1) $(ALLBLAS) $(DBLAS2) $(DBLAS3)
$(ARCH) $(ARCHFLAGS) $(BLASLIB) $(DBLAS1) $(ALLBLAS) \
$(DBLAS2) $(DBLAS3)
$(RANLIB) $(BLASLIB)

complex: $(CBLAS1) $(CB1AUX) $(ALLBLAS) $(CBLAS2) $(CBLAS3)
$(ARCH) $(ARCHFLAGS) $(BLASLIB) $(CBLAS1) $(CB1AUX) \
$(ALLBLAS) $(CBLAS2) $(CBLAS3)
$(RANLIB) $(BLASLIB)

complex16: $(ZBLAS1) $(ZB1AUX) $(ALLBLAS) $(ZBLAS2) $(ZBLAS3)
$(ARCH) $(ARCHFLAGS) $(BLASLIB) $(ZBLAS1) $(ZB1AUX) \
$(ALLBLAS) $(ZBLAS2) $(ZBLAS3)
$(RANLIB) $(BLASLIB)

FRC:
@FRC=$(FRC)

clean:
rm -f *.o

.f.o:
$(FORTRAN) $(OPTS) -c $< -o $@
139 changes: 139 additions & 0 deletions BLAS-3.8.0/caxpy.f
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
*> \brief \b CAXPY
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
* Definition:
* ===========
*
* SUBROUTINE CAXPY(N,CA,CX,INCX,CY,INCY)
*
* .. Scalar Arguments ..
* COMPLEX CA
* INTEGER INCX,INCY,N
* ..
* .. Array Arguments ..
* COMPLEX CX(*),CY(*)
* ..
*
*
*> \par Purpose:
* =============
*>
*> \verbatim
*>
*> CAXPY constant times a vector plus a vector.
*> \endverbatim
*
* Arguments:
* ==========
*
*> \param[in] N
*> \verbatim
*> N is INTEGER
*> number of elements in input vector(s)
*> \endverbatim
*>
*> \param[in] CA
*> \verbatim
*> CA is COMPLEX
*> On entry, CA specifies the scalar alpha.
*> \endverbatim
*>
*> \param[in] CX
*> \verbatim
*> CX is COMPLEX array, dimension ( 1 + ( N - 1 )*abs( INCX ) )
*> \endverbatim
*>
*> \param[in] INCX
*> \verbatim
*> INCX is INTEGER
*> storage spacing between elements of CX
*> \endverbatim
*>
*> \param[in,out] CY
*> \verbatim
*> CY is COMPLEX array, dimension ( 1 + ( N - 1 )*abs( INCY ) )
*> \endverbatim
*>
*> \param[in] INCY
*> \verbatim
*> INCY is INTEGER
*> storage spacing between elements of CY
*> \endverbatim
*
* Authors:
* ========
*
*> \author Univ. of Tennessee
*> \author Univ. of California Berkeley
*> \author Univ. of Colorado Denver
*> \author NAG Ltd.
*
*> \date November 2017
*
*> \ingroup complex_blas_level1
*
*> \par Further Details:
* =====================
*>
*> \verbatim
*>
*> jack dongarra, linpack, 3/11/78.
*> modified 12/3/93, array(1) declarations changed to array(*)
*> \endverbatim
*>
* =====================================================================
SUBROUTINE CAXPY(N,CA,CX,INCX,CY,INCY)
*
* -- Reference BLAS level1 routine (version 3.8.0) --
* -- Reference BLAS is a software package provided by Univ. of Tennessee, --
* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
* November 2017
*
* .. Scalar Arguments ..
COMPLEX CA
INTEGER INCX,INCY,N
* ..
* .. Array Arguments ..
COMPLEX CX(*),CY(*)
* ..
*
* =====================================================================
*
* .. Local Scalars ..
INTEGER I,IX,IY
* ..
* .. External Functions ..
REAL SCABS1
EXTERNAL SCABS1
* ..
IF (N.LE.0) RETURN
IF (SCABS1(CA).EQ.0.0E+0) RETURN
IF (INCX.EQ.1 .AND. INCY.EQ.1) THEN
*
* code for both increments equal to 1
*
DO I = 1,N
CY(I) = CY(I) + CA*CX(I)
END DO
ELSE
*
* code for unequal increments or equal increments
* not equal to 1
*
IX = 1
IY = 1
IF (INCX.LT.0) IX = (-N+1)*INCX + 1
IF (INCY.LT.0) IY = (-N+1)*INCY + 1
DO I = 1,N
CY(IY) = CY(IY) + CA*CX(IX)
IX = IX + INCX
IY = IY + INCY
END DO
END IF
*
RETURN
END
Binary file added BLAS-3.8.0/caxpy.o
Binary file not shown.
Loading

0 comments on commit 7c93418

Please sign in to comment.