Explore Enterprise Education Gitee Premium Gitee AI AI teammates
Fetch the repository succeeded.
Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
Already have an account? Sign in
文件
develop
Branches (57)
Tags (69)
develop
gh-pages
release-0.3.0
issue5267
revert-5565-jn/makefile-rule-dynamic
revert-5643-neov2_param
revert-5479-forklock
revert-4741-Pthread_Scalability_Improvement
gemm_batch
revert-5180-openmp_use_cmake
revert-5251-issue5250
timeout-riscv-ci
revert-4920-issue4917
revert-4628-CI-c910v-mips64-loongarch64
risc-v
revert-4153-dgemv
jenkins
revert-4103-windows_perf
utest-riscv
revert-3518-elbrus
v0.3.33
v0.3.32
v0.3.31
v0.3.30
v0.3.29
v0.3.28
v0.3.27
v0.3.26
v0.3.25
v0.3.24
v0.3.23
v0.3.22
v0.3.21
v0.3.20
v0.3.19
v0.3.18
v0.3.17
v0.3.16
v0.3.15
v0.3.14
develop
Branches (57)
Tags (69)
develop
gh-pages
release-0.3.0
issue5267
revert-5565-jn/makefile-rule-dynamic
revert-5643-neov2_param
revert-5479-forklock
revert-4741-Pthread_Scalability_Improvement
gemm_batch
revert-5180-openmp_use_cmake
revert-5251-issue5250
timeout-riscv-ci
revert-4920-issue4917
revert-4628-CI-c910v-mips64-loongarch64
risc-v
revert-4153-dgemv
jenkins
revert-4103-windows_perf
utest-riscv
revert-3518-elbrus
v0.3.33
v0.3.32
v0.3.31
v0.3.30
v0.3.29
v0.3.28
v0.3.27
v0.3.26
v0.3.25
v0.3.24
v0.3.23
v0.3.22
v0.3.21
v0.3.20
v0.3.19
v0.3.18
v0.3.17
v0.3.16
v0.3.15
v0.3.14
Clone or Download
Clone/Download
Prompt
To download the code, please copy the following command and execute it in the terminal
To ensure that your submitted code identity is correctly recognized by Gitee, please execute the following command.
When using the SSH protocol for the first time to clone or push code, follow the prompts below to complete the SSH configuration.
1 Generate RSA keys.
2 Obtain the content of the RSA public key and configure it in SSH Public Keys
To use SVN on Gitee, please visit the usage guide
When using the HTTPS protocol, the command line will prompt for account and password verification as follows. For security reasons, Gitee recommends configure and use personal access tokens instead of login passwords for cloning, pushing, and other operations.
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # Private Token
develop
Branches (57)
Tags (69)
develop
gh-pages
release-0.3.0
issue5267
revert-5565-jn/makefile-rule-dynamic
revert-5643-neov2_param
revert-5479-forklock
revert-4741-Pthread_Scalability_Improvement
gemm_batch
revert-5180-openmp_use_cmake
revert-5251-issue5250
timeout-riscv-ci
revert-4920-issue4917
revert-4628-CI-c910v-mips64-loongarch64
risc-v
revert-4153-dgemv
jenkins
revert-4103-windows_perf
utest-riscv
revert-3518-elbrus
v0.3.33
v0.3.32
v0.3.31
v0.3.30
v0.3.29
v0.3.28
v0.3.27
v0.3.26
v0.3.25
v0.3.24
v0.3.23
v0.3.22
v0.3.21
v0.3.20
v0.3.19
v0.3.18
v0.3.17
v0.3.16
v0.3.15
v0.3.14
OpenBLAS
/
reference
/
cher2f.f
OpenBLAS
/
reference
/
cher2f.f
cher2f.f 8.22 KB
Copy Edit Raw Blame History
Zhang Xianyi authored 2011年01月24日 22:54 +08:00 . Import GotoBLAS2 1.13 BSD version codes.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249
SUBROUTINECHER2F(UPLO,N,ALPHA,X,INCX,Y,INCY,A,LDA)
*..ScalarArguments..
COMPLEXALPHA
INTEGERINCX,INCY,LDA,N
CHARACTER*1UPLO
*..ArrayArguments..
COMPLEXA(LDA,*),X(*),Y(*)
*..
*
*Purpose
*=======
*
*CHER2performsthehermitianrank2operation
*
*A:=alpha*x*conjg(y' ) + conjg( alpha )*y*conjg( x')+A,
*
*wherealphaisascalar,xandyarenelementvectorsandAisann
*bynhermitianmatrix.
*
*Parameters
*==========
*
*UPLO-CHARACTER*1.
*Onentry,UPLOspecifieswhethertheupperorlower
*triangularpartofthearrayAistobereferencedas
*follows:
*
*UPLO='U'or'u'OnlytheuppertriangularpartofA
*istobereferenced.
*
*UPLO='L'or'l'OnlythelowertriangularpartofA
*istobereferenced.
*
*Unchangedonexit.
*
*N-INTEGER.
*Onentry,NspecifiestheorderofthematrixA.
*Nmustbeatleastzero.
*Unchangedonexit.
*
*ALPHA-COMPLEX.
*Onentry,ALPHAspecifiesthescalaralpha.
*Unchangedonexit.
*
*X-COMPLEXarrayofdimensionatleast
*(1+(n-1)*abs(INCX)).
*Beforeentry,theincrementedarrayXmustcontainthen
*elementvectorx.
*Unchangedonexit.
*
*INCX-INTEGER.
*Onentry,INCXspecifiestheincrementfortheelementsof
*X.INCXmustnotbezero.
*Unchangedonexit.
*
*Y-COMPLEXarrayofdimensionatleast
*(1+(n-1)*abs(INCY)).
*Beforeentry,theincrementedarrayYmustcontainthen
*elementvectory.
*Unchangedonexit.
*
*INCY-INTEGER.
*Onentry,INCYspecifiestheincrementfortheelementsof
*Y.INCYmustnotbezero.
*Unchangedonexit.
*
*A-COMPLEXarrayofDIMENSION(LDA,n).
*BeforeentrywithUPLO='U'or'u',theleadingnbyn
*uppertriangularpartofthearrayAmustcontaintheupper
*triangularpartofthehermitianmatrixandthestrictly
*lowertriangularpartofAisnotreferenced.Onexit,the
*uppertriangularpartofthearrayAisoverwrittenbythe
*uppertriangularpartoftheupdatedmatrix.
*BeforeentrywithUPLO='L'or'l',theleadingnbyn
*lowertriangularpartofthearrayAmustcontainthelower
*triangularpartofthehermitianmatrixandthestrictly
*uppertriangularpartofAisnotreferenced.Onexit,the
*lowertriangularpartofthearrayAisoverwrittenbythe
*lowertriangularpartoftheupdatedmatrix.
*Notethattheimaginarypartsofthediagonalelementsneed
*notbeset,theyareassumedtobezero,andonexitthey
*aresettozero.
*
*LDA-INTEGER.
*Onentry,LDAspecifiesthefirstdimensionofAasdeclared
*inthecalling(sub)program.LDAmustbeatleast
*max(1,n).
*Unchangedonexit.
*
*
*Level2Blasroutine.
*
*--Writtenon22-October-1986.
*JackDongarra,ArgonneNationalLab.
*JeremyDuCroz,NagCentralOffice.
*SvenHammarling,NagCentralOffice.
*RichardHanson,SandiaNationalLabs.
*
*
*..Parameters..
COMPLEXZERO
PARAMETER(ZERO=(0.0E+0,0.0E+0))
*..LocalScalars..
COMPLEXTEMP1,TEMP2
INTEGERI,INFO,IX,IY,J,JX,JY,KX,KY
*..ExternalFunctions..
LOGICALLSAME
EXTERNALLSAME
*..ExternalSubroutines..
EXTERNALXERBLA
*..IntrinsicFunctions..
INTRINSICCONJG,MAX,REAL
*..
*..ExecutableStatements..
*
*Testtheinputparameters.
*
INFO=0
IF(.NOT.LSAME(UPLO,'U').AND.
$.NOT.LSAME(UPLO,'L'))THEN
INFO=1
ELSEIF(N.LT.0)THEN
INFO=2
ELSEIF(INCX.EQ.0)THEN
INFO=5
ELSEIF(INCY.EQ.0)THEN
INFO=7
ELSEIF(LDA.LT.MAX(1,N))THEN
INFO=9
ENDIF
IF(INFO.NE.0)THEN
CALLXERBLA('CHER2 ',INFO)
RETURN
ENDIF
*
*Quickreturnifpossible.
*
IF((N.EQ.0).OR.(ALPHA.EQ.ZERO))
$RETURN
*
*SetupthestartpointsinXandYiftheincrementsarenotboth
*unity.
*
IF((INCX.NE.1).OR.(INCY.NE.1))THEN
IF(INCX.GT.0)THEN
KX=1
ELSE
KX=1-(N-1)*INCX
ENDIF
IF(INCY.GT.0)THEN
KY=1
ELSE
KY=1-(N-1)*INCY
ENDIF
JX=KX
JY=KY
ENDIF
*
*Starttheoperations.InthisversiontheelementsofAare
*accessedsequentiallywithonepassthroughthetriangularpart
*ofA.
*
IF(LSAME(UPLO,'U'))THEN
*
*FormAwhenAisstoredintheuppertriangle.
*
IF((INCX.EQ.1).AND.(INCY.EQ.1))THEN
DO20,J=1,N
IF((X(J).NE.ZERO).OR.(Y(J).NE.ZERO))THEN
TEMP1=ALPHA*CONJG(Y(J))
TEMP2=CONJG(ALPHA*X(J))
DO10,I=1,J-1
A(I,J)=A(I,J)+X(I)*TEMP1+Y(I)*TEMP2
10CONTINUE
A(J,J)=REAL(A(J,J))+
$REAL(X(J)*TEMP1+Y(J)*TEMP2)
ELSE
A(J,J)=REAL(A(J,J))
ENDIF
20CONTINUE
ELSE
DO40,J=1,N
IF((X(JX).NE.ZERO).OR.(Y(JY).NE.ZERO))THEN
TEMP1=ALPHA*CONJG(Y(JY))
TEMP2=CONJG(ALPHA*X(JX))
IX=KX
IY=KY
DO30,I=1,J-1
A(I,J)=A(I,J)+X(IX)*TEMP1
$+Y(IY)*TEMP2
IX=IX+INCX
IY=IY+INCY
30CONTINUE
A(J,J)=REAL(A(J,J))+
$REAL(X(JX)*TEMP1+Y(JY)*TEMP2)
ELSE
A(J,J)=REAL(A(J,J))
ENDIF
JX=JX+INCX
JY=JY+INCY
40CONTINUE
ENDIF
ELSE
*
*FormAwhenAisstoredinthelowertriangle.
*
IF((INCX.EQ.1).AND.(INCY.EQ.1))THEN
DO60,J=1,N
IF((X(J).NE.ZERO).OR.(Y(J).NE.ZERO))THEN
TEMP1=ALPHA*CONJG(Y(J))
TEMP2=CONJG(ALPHA*X(J))
A(J,J)=REAL(A(J,J))+
$REAL(X(J)*TEMP1+Y(J)*TEMP2)
DO50,I=J+1,N
A(I,J)=A(I,J)+X(I)*TEMP1+Y(I)*TEMP2
50CONTINUE
ELSE
A(J,J)=REAL(A(J,J))
ENDIF
60CONTINUE
ELSE
DO80,J=1,N
IF((X(JX).NE.ZERO).OR.(Y(JY).NE.ZERO))THEN
TEMP1=ALPHA*CONJG(Y(JY))
TEMP2=CONJG(ALPHA*X(JX))
A(J,J)=REAL(A(J,J))+
$REAL(X(JX)*TEMP1+Y(JY)*TEMP2)
IX=JX
IY=JY
DO70,I=J+1,N
IX=IX+INCX
IY=IY+INCY
A(I,J)=A(I,J)+X(IX)*TEMP1
$+Y(IY)*TEMP2
70CONTINUE
ELSE
A(J,J)=REAL(A(J,J))
ENDIF
JX=JX+INCX
JY=JY+INCY
80CONTINUE
ENDIF
ENDIF
*
RETURN
*
*EndofCHER2.
*
END
Loading...
Report
Report success
We will send you the feedback within 2 working days through the letter!
Please fill in the reason for the report carefully. Provide as detailed a description as possible.
Please select a report type
Cancel
Send
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

About

No description
Cancel

Releases (1)

All

Contributors

All

Activities

can not load any more
Edit
About
Homepage
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mll/OpenBLAS.git
git@gitee.com:mll/OpenBLAS.git
mll
OpenBLAS
OpenBLAS
develop
Going to Help Center

Search

Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register

AltStyle によって変換されたページ (->オリジナル) /