基于浮点运算的复杂度分析

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

FloatingPointOperationsinMatrix-VectorCalculus(Version1.3)RaphaelHungerTechnicalReport2007TechnischeUniversitätMünchenAssociateInstituteforSignalProcessingUniv.-Prof.Dr.-Ing.WolfgangUtschickHistoryVersion1.00:October2005-InitialversionVersion1.01:2006-RewriteofsesquilinearformwithareducedamountofFLOPs-SeveralTyposfixedconcerningthenumberofFLOPSrequiredfortheCholeskydecompo-sitionVersion1.2:November2006-ConditionsfortheexistenceofthestandardLLHCholeskydecompositionspecified(pos-itivedefiniteness)-OuterproductversionofLLHCholeskydecompositionremoved-FLOPsrequiredinGaxpyversionofLLHCholeskydecompositionupdated-L1DLH1Choleskydecompositionadded-Matrix-matrixproductLCaddedwithLtriangular-Matrix-matrixproductL1CaddedwithLtriangularandL1notknownapriori-InverseL11ofalowertriangularmatrixwithonesonthemaindiagonaladdedVersion1.3:September2007-FirstgloballyaccessibledocumentversionToDo:(unknownwhen)-QR-Decomposition-LR-DecompositionPleasereportanybugandsuggestiontohunger@tum.de2Contents1.Introduction42.FlopCounting52.1MatrixProducts....................................52.1.1Scalar-VectorMultiplication a.......................52.1.2Scalar-MatrixMultiplication A......................52.1.3InnerProductaHbofTwoVectors......................52.1.4OuterProductacHofTwoVectors......................52.1.5Matrix-VectorProductAb..........................62.1.6Matrix-MatrixProductAC.........................62.1.7MatrixDiagonalMatrixProductAD....................62.1.8Matrix-MatrixProductLD.........................62.1.9Matrix-MatrixProductL1D.........................62.1.10Matrix-MatrixProductLCwithLLowerTriangular............62.1.11GramAHAofA...............................62.1.12SquaredFrobeniusNormkAk2F=tr(AHA)................72.1.13SesquilinearFormcHAb...........................72.1.14HermitianFormaHRa............................72.1.15GramLHLofaLowerTriangularMatrixL.................72.2Decompositions....................................82.2.1CholeskyDecompositionR=LLH(GaxpyVersion)...........82.2.2CholeskyDecompositionR=L1DLH1...................102.3InversesofMatrices..................................112.3.1InverseL1ofaLowerTriangularMatrixL................112.3.2InverseL11ofaLowerTriangularMatrixL1withOnesontheMainDi-agonal.....................................122.3.3InverseR1ofaPositiveDefiniteMatrixR.................132.4SolvingSystemsofEquations............................132.4.1ProductL1CwithL1notknownapriori.................133.Overview14Appendix15Bibliography1631.IntroductionForthedesignofefficientundlow-complexityalgorithmsinmanysignal-processingtasks,ade-tailedanalysisoftherequirednumberoffloating-pointoperations(FLOPs)isofteninevitable.Mostfrequently,matrixoperationsareinvolved,suchasmatrix-matrixproductsandinversesofmatrices.StructureslikeHermitenessortriangularityforexamplecanbeexploitedtoreducethenumberofneededFLOPsandwillbediscussedhere.Inthistechnicalreport,wederiveexpressionsforthenumberofmultiplicationsandsummationsthatamajorityofsignalprocessingalgorithmsinmobilecommunicationsbringwiththem.Acknowledgments:TheauthorwouldliketothankDipl.-Ing.DavidA.SchmidtandDipl.-Ing.GuidoDietlforthefruitfuldiscussionsonthistopic.42.FlopCountingInthischapter,weofferexpressionsforthenumberofcomplexmultiplicationsandsummationsrequiredforseveralmatrix-vectoroperations.Afloating-pointoperation(FLOP)isassumedtobeeitheracomplexmultiplicationoracomplexsummationhere,despitethefactthatacomplexmul-tiplicationrequires4realmultiplicationsand2realsummationswhereasacomplexsummationsconstistsofonly2realsummations,makingamultiplicationmoreexpensivethanasummation.However,wecounteachoperationasoneFLOP.Throughoutthisreport,weassume 2Ctobeascalar,thevectorsa2CN,b2CN,andc2CMtohavedimensionN,N,andM,respectively.ThematricesA2CMN,B2CNN,andC2CNLareassumedtohavenospecialstructure,whereasR=RH2CNNisHermitianandD=diagfd`gN`=12CNNisdiagonal.LisalowertriangularNNmatrix,endenotestheunitvectorwitha1inthen-throwandzeroselsewhere.Itsdimensionalityischosensuchthattherespectivematrix-vectorproductexists.Finally,[A]a;bdenotestheelementinthea-throwandb-thcolumnofA,[A]a:b;c:dselectsthesubmatrixofAconsistingofrowsatobandcolumnsctod.0abistheabzeromatrix.Transposition,Hermitiantransposition,conjugate,andreal-partoperatoraredenotedby()T,()H,(),andfg,respectively,andrequirenoFLOP.2.1MatrixProductsFrequentlyarisingmatrixproductsandtheamountofFLOPsrequiredfortheircomputationwillbediscussedinthissection.2.1.1Scalar-VectorMultiplication aAsimplemultiplication aofavectorawithascalar requiresNmultiplicationsandnosum-mation.2.1.2Scalar-MatrixMultiplication AExtendingtheresultfromSubsection2.1.1toascalarmatrixmultiplication ArequiresNMmultiplicationsandagainnosummation.2.1.3InnerProductaHbofTwoVectorsAninnerproductaHbrequiresNmultiplicationsandN1summations,i.e.,2N1FLOPs.2.1.4OuterProductacHofTwoVectorsAnouterproductacHrequiresNMmultiplicationsandnosummation.562.FlopCounting2.1.5Matrix-VectorProductAbComputingAbcorrespondstoapplyingtheinnerproductruleaHibfromSubsecti

1 / 16
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功