LAPACK

LAPACK (Netlib reference implementation)
Initial release1992; 32 years ago (1992)
Stable release
3.12.0[1] Edit this on Wikidata / 24 November 2023; 12 months ago (24 November 2023)
Repository
Written inFortran 90
TypeSoftware library
LicenseBSD-new
Websitenetlib.org/lapack/ Edit this on Wikidata

LAPACK ("Linear Algebra Package") is a standard software library for numerical linear algebra. It provides routines for solving systems of linear equations and linear least squares, eigenvalue problems, and singular value decomposition. It also includes routines to implement the associated matrix factorizations such as LU, QR, Cholesky and Schur decomposition.[2] LAPACK was originally written in FORTRAN 77, but moved to Fortran 90 in version 3.2 (2008).[3] The routines handle both real and complex matrices in both single and double precision. LAPACK relies on an underlying BLAS implementation to provide efficient and portable computational building blocks for its routines.[2]: "The BLAS as the Key to Portability"

LAPACK was designed as the successor to the linear equations and linear least-squares routines of LINPACK and the eigenvalue routines of EISPACK. LINPACK, written in the 1970s and 1980s, was designed to run on the then-modern vector computers with shared memory. LAPACK, in contrast, was designed to effectively exploit the caches on modern cache-based architectures and the instruction-level parallelism of modern superscalar processors,[2]: "Factors that Affect Performance" and thus can run orders of magnitude faster than LINPACK on such machines, given a well-tuned BLAS implementation.[2]: "The BLAS as the Key to Portability" LAPACK has also been extended to run on distributed memory systems in later packages such as ScaLAPACK and PLAPACK.[4]

Netlib LAPACK is licensed under a three-clause BSD style license, a permissive free software license with few restrictions.[5]

Naming scheme

Subroutines in LAPACK have a naming convention which makes the identifiers very compact. This was necessary as the first Fortran standards only supported identifiers up to six characters long, so the names had to be shortened to fit into this limit.[2]: "Naming Scheme"

A LAPACK subroutine name is in the form pmmaaa, where:

  • p is a one-letter code denoting the type of numerical constants used. S, D stand for real floating-point arithmetic respectively in single and double precision, while C and Z stand for complex arithmetic with respectively single and double precision. The newer version, LAPACK95, uses generic subroutines in order to overcome the need to explicitly specify the data type.
  • mm is a two-letter code denoting the kind of matrix expected by the algorithm. The codes for the different kind of matrices are reported below; the actual data are stored in a different format depending on the specific kind; e.g., when the code DI is given, the subroutine expects a vector of length n containing the elements on the diagonal, while when the code GE is given, the subroutine expects an n×n array containing the entries of the matrix.
  • aaa is a one- to three-letter code describing the actual algorithm implemented in the subroutine, e.g. SV denotes a subroutine to solve linear system, while R denotes a rank-1 update.

For example, the subroutine to solve a linear system with a general (non-structured) matrix using real double-precision arithmetic is called DGESV.[2]: "Linear Equations"

Matrix types in the LAPACK naming scheme
Name Description
BD bidiagonal matrix
DI diagonal matrix
GB general band matrix
GE general matrix (i.e., unsymmetric, in some cases rectangular)
GG general matrices, generalized problem (i.e., a pair of general matrices)
GT general tridiagonal matrix
HB (complex) Hermitian band matrix
HE (complex) Hermitian matrix
HG upper Hessenberg matrix, generalized problem (i.e. a Hessenberg and a triangular matrix)
HP (complex) Hermitian, packed storage matrix
HS upper Hessenberg matrix
OP (real) orthogonal matrix, packed storage matrix
OR (real) orthogonal matrix
PB symmetric matrix or Hermitian matrix positive definite band
PO symmetric matrix or Hermitian matrix positive definite
PP symmetric matrix or Hermitian matrix positive definite, packed storage matrix
PT symmetric matrix or Hermitian matrix positive definite tridiagonal matrix
SB (real) symmetric band matrix
SP symmetric, packed storage matrix
ST (real) symmetric matrix tridiagonal matrix
SY symmetric matrix
TB triangular band matrix
TG triangular matrices, generalized problem (i.e., a pair of triangular matrices)
TP triangular, packed storage matrix
TR triangular matrix (or in some cases quasi-triangular)
TZ trapezoidal matrix
UN (complex) unitary matrix
UP (complex) unitary, packed storage matrix

Use with other programming languages and libraries

Many programming environments today support the use of libraries with C binding (LAPACKE, a standardised C interface,[6] has been part of LAPACK since version 3.4.0[7]), allowing LAPACK routines to be used directly so long as a few restrictions are observed. Additionally, many other software libraries and tools for scientific and numerical computing are built on top of LAPACK, such as R,[8] MATLAB,[9] and SciPy.[10]

Several alternative language bindings are also available:

Implementations

As with BLAS, LAPACK is sometimes forked or rewritten to provide better performance on specific systems. Some of the implementations are:

Accelerate
Apple's framework for macOS and iOS, which includes tuned versions of BLAS and LAPACK.[11][12]
Netlib LAPACK
The official LAPACK.
Netlib ScaLAPACK
Scalable (multicore) LAPACK, built on top of PBLAS.
Intel MKL
Intel's Math routines for their x86 CPUs.
OpenBLAS
Open-source reimplementation of BLAS and LAPACK.
Gonum LAPACK
A partial native Go implementation.

Since LAPACK typically calls underlying BLAS routines to perform the bulk of its computations, simply linking to a better-tuned BLAS implementation can be enough to significantly improve performance. As a result, LAPACK is not reimplemented as often as BLAS is.

Similar projects

These projects provide a similar functionality to LAPACK, but with a main interface differing from that of LAPACK:

Libflame
A dense linear algebra library. Has a LAPACK-compatible wrapper. Can be used with any BLAS, although BLIS is the preferred implementation.[13]
Eigen
A header library for linear algebra. Has a BLAS and a partial LAPACK implementation for compatibility.
MAGMA
Matrix Algebra on GPU and Multicore Architectures (MAGMA) project develops a dense linear algebra library similar to LAPACK but for heterogeneous and hybrid architectures including multicore systems accelerated with GPGPUs.
PLASMA
The Parallel Linear Algebra for Scalable Multi-core Architectures (PLASMA) project is a modern replacement of LAPACK for multi-core architectures. PLASMA is a software framework for development of asynchronous operations and features out of order scheduling with a runtime scheduler called QUARK that may be used for any code that expresses its dependencies with a directed acyclic graph.[14]

See also

References

  1. ^ "Release 3.12.0". 24 November 2023. Retrieved 19 December 2023.
  2. ^ a b c d e f Anderson, E.; Bai, Z.; Bischof, C.; Blackford, S.; Demmel, J.; Dongarra, J.; Du Croz, J.; Greenbaum, A.; Hammarling, S.; McKenney, A.; Sorensen, D. (1999). LAPACK Users' Guide (Third ed.). Philadelphia, PA: Society for Industrial and Applied Mathematics. ISBN 0-89871-447-8. Retrieved 28 May 2022.
  3. ^ "LAPACK 3.2 Release Notes". 16 November 2008.
  4. ^ "PLAPACK: Parallel Linear Algebra Package". www.cs.utexas.edu. University of Texas at Austin. 12 June 2007. Retrieved 20 April 2017.
  5. ^ "LICENSE.txt". Netlib. Retrieved 28 May 2022.
  6. ^ "The LAPACKE C Interface to LAPACK". LAPACK — Linear Algebra PACKage. Retrieved 2024-09-22.
  7. ^ "LAPACK 3.4.0". LAPACK — Linear Algebra PACKage. Retrieved 2024-09-22.
  8. ^ "R: LAPACK Library". stat.ethz.ch. Retrieved 2022-03-19.
  9. ^ "LAPACK in MATLAB". Mathworks Help Center. Retrieved 28 May 2022.
  10. ^ "Low-level LAPACK functions". SciPy v1.8.1 Manual. Retrieved 28 May 2022.
  11. ^ "Guides and Sample Code". developer.apple.com. Retrieved 2017-07-07.
  12. ^ "Guides and Sample Code". developer.apple.com. Retrieved 2017-07-07.
  13. ^ "amd/libflame: High-performance object-based library for DLA computations". GitHub. AMD. 25 August 2020.
  14. ^ "ICL". icl.eecs.utk.edu. Retrieved 2017-07-07.

Read other articles:

Oscar GoodmanWali kota Las Vegas 20Masa jabatan8 Juni 1999 – 6 Juli 2011PendahuluJan Laverty JonesPenggantiCarolyn Goodman Informasi pribadiLahir26 Juni 1939 (umur 84)Philadelphia, PennsylvaniaPartai politikDemokratSuami/istriCarolyn GoodmanAlma materPerguruan Tinggi Haverford, Sekolah Hukum Universitas PennsylvaniaPekerjaanPengacaraSunting kotak info • L • B Oscar Baylin Goodman (lahir 26 Juni 1939) adalah seorang pengacara dan Wali kota Las Vegas, Nevada. W...

 

Borough de North Slope Borough Ubicación del borough en Alaska Ubicación de Alaska en EE. UU.Coordenadas 69°18′N 153°27′O / 69.3, -153.45Capital UtqiagvikCiudad más poblada BarrowEntidad Borough • País  Estados Unidos • Estado  Alaska • Sede BarrowFundación 1972Superficie   • Total 245 435 km²  • Tierra 230,035 km² • Agua (6.27%) 15,400 km²Población (2000)   • Total 7,385...

 

Raden AriaWira Tanu IBupati Cianjur 1Masa jabatan1677–1691PenggantiR.A. Wira Tanu II Informasi pribadiLahir1603Padaleman Sagaraherang, SubangMeninggal1691Cikundul, Cikalongkulon, CianjurAnakWiramangalaMartayuda TirtaNatadimanggalaWiradimanggalaSuriadiwangsaNyi Mas KaluntarNyi Mas KaranganNyi Mas BogemNyi Mas KaraNyi Mas JenggotOrang tuaRaden Aria Wangsa GoparanaProfesiRaja, Senapati, UlamaSunting kotak info • L • B Pendopo regent (Kabupaten) Cianjur taun 1915-1925 Raden Ar...

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (يوليو 2019) اليكسي ايفانوف معلومات شخصية الميلاد 5 يناير 1985 (38 سنة)  تيندا  مواطنة روسيا  الوزن 192 رطل  الحياة العملية المهنة لاعب هوكي الجليد  اللغات الروسية&...

 

سلسلة هواوي ميتمعلومات عامةالنوع فابلت الصانع هواوي المطور هواويأهم التواريختاريخ الإصدار 2013 الخصائصنظام التشغيل أندرويدهونغ منغ تعديل - تعديل مصدري - تعديل ويكي بيانات سلسلة هواوي ميت (سابقا سلسلة هواوي ميت ايسند) هي الهواتف الرائدة التي تقدم فيها هواوي أحدث وأعلى التقني

 

Football clubCaja Oblatos C.F.D.Full nameCaja Oblatos Club de Fútbol DeportivoFoundedJuly 2019; 4 years ago (2019-07)GroundClub Deportivo ZapotlanejoZapotlanejo, MexicoCapacity1,000OwnerCaja Popular OblatosChairmanJosé Bruno Arce Contreras[1]ManagerJulio SánchezLeagueLiga Premier – Serie B2023–24Pre–season Home colours Away colours Caja Oblatos C.F.D. is a football club that plays in the Liga Premier – Serie B. It is based in Zapotlanejo, Mexico. Hist...

South Korean online magazine Visla MagazineType of siteOnline magazineAvailable inKoreanURLvisla.krLaunched2012Current statusActive Visla Magazine (Korean: 비슬라 매거진) is a South Korean online magazine that publishs articles, columns, and interviews of various subcultures such as music, arts, and fashion.[1][2][3] History Visla Magazine was founded in December 2012.[4] The magazine was conducted in the form of 2 publishers, and 2 edi...

 

American college football season 1914 Chicago Maroons footballConferenceWestern ConferenceRecord4–2–1 (4–2–1 Western)Head coachAmos Alonzo Stagg (23rd season)Home stadiumStagg FieldSeasons← 19131915 → 1914 Western Conference football standings vte Conf Overall Team W   L   T W   L   T Illinois $ 6 – 0 – 0 7 – 0 – 0 Minnesota 3 – 1 – 0 6 – 1 – 0 Chicago 4 – 2 – 1 4 – 2 ...

 

У Вікіпедії є статті про інші значення цього терміна: Оповідь служниці (значення). Оповідь служниціThe Handmaid's Tale Тип телесеріалТелеканал(и) HuluДистриб'ютор(и) Hulu і HBO Max[d]Жанр ДрамаФормат зображення 2.00:1Формат звуку Dolby DigitalТривалість серії 40-60 хв.Компанія MGM Televisi...

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (أغسطس 2020) ديفيد باسا معلومات شخصية الميلاد 2 أبريل 1989 (العمر 34 سنة)الفلبين  الطول 6 قدم 0 بوصة (1.83 م) مركز اللعب مدافع الجنسية الفلبين  المدرسة الأم جامعة الق...

 

Pour les articles homonymes, voir Armée de libération nationale et Armée libyenne. Ne pas confondre avec Armée nationale libyenne ou Forces armées de la Jamahiriya arabe libyenne. Armée de libération nationale libyenneجيش التحرير الوطني الليبي (ar) Devise : Free Army, Free Libya ! Idéologie Diverses Objectifs Renversement du régime de Mouammar Kadhafi Fondation Date de formation Mars 2011 Pays d'origine Libye Date de dissolution Octobre 2011 Organisati...

 

Village development committee in Rapti Zone, NepalKotmaula कोटमौलाVillage development committeeCountry   NepalZoneRapti ZoneDistrictSalyan DistrictPopulation (1991) • Total3,735Time zoneUTC+5:45 (Nepal Time) Kotmala is a village development committee in Salyan District in the Rapti Zone of western-central Nepal. At the time of the 1991 Nepal census it had a population of 3735 people living in 649 individual households.[1] References ^ Nepa...

Arms of the Count of Merenberg, 1907 Natalia Pushkina, Countess of Merenberg Count of Merenberg (German: Graf von Merenberg) is a hereditary title of nobility that was bestowed in 1868 by the reigning Prince of Waldeck and Pyrmont, George Victor, upon the morganatic wife and male-line descendants of Prince Nikolaus Wilhelm of Nassau (1832–1905), who married Natalia Alexandrovna Pushkina (1836–1913), former wife of Russian general Mikhail Leontievich von Dubelt. Background Nikolaus was a s...

 

Japanese economist (1936–2023) Makoto ItohBorn(1936-04-20)April 20, 1936Tokyo, JapanDiedFebruary 7, 2023(2023-02-07) (aged 86)Academic careerFieldMarxian economicsSchool ortraditionMarxian economicsInfluencesKozo Uno, Karl Marx Makoto Itoh (伊藤 誠, Itō Makoto, April 20, 1936 – February 7, 2023) was a Japanese economist who was considered internationally to be one of the most important scholars of Karl Marx's theory of value. He taught at Kokugakuin University, Tokyo, and wa...

 

Political party in Romania Force of the Right Forța DrepteiAbbreviationFDPresidentLudovic OrbanSpokesmanIonel DancăLeader in the Chamber of DeputiesVioleta Alexandru[1]Founded14 December 2021Split fromNational Liberal Party (PNL)Membership~20,000 [2]IdeologyLiberal conservatism[3] Christian democracy[4] Civic nationalism[5][6]Right-wing populism[7]Pro-Europeanism[8]Political positionCentre-right[9] to righ...

Artikel ini memerlukan pemutakhiran informasi. Harap perbarui artikel dengan menambahkan informasi terbaru yang tersedia. Airbus A350A350-941 F-WXWB dalam penerbangan perdanaA300 · A310 · A320 · A330 · A340 · A350 · A380 · A400MTipePesawat jet berbadan lebarTerbang perdana14 Juni 2013[1]Diperkenalkan2014 (A350-900),[2] 2016 (A350-800) 2017 (A350-1000)[3]StatusAktif [4]Pengguna utamaQatar Airways (pelanggan perdana) Singapore Airlines (pelanggan perdana v...

 

Specific land area in which radio transmissions are heavily restricted 38°22′30″N 79°30′00″W / 38.375°N 79.5°W / 38.375; -79.5 The NRQZ includes portions of West Virginia, Virginia, and a small part of Maryland. The National Radio Quiet Zone (NRQZ) is a large area of land in the United States designated as a radio quiet zone, in which radio transmissions are restricted by law to facilitate scientific research and the gathering of military intelligence. Abou...

 

This article is about the film. For the stage play, see Carrington V.C. (play). 1954 British filmCarrington V.C.U.S. theatrical posterDirected byAnthony AsquithWritten byJohn HunterBased onCarrington V.C. by Campbell Christie and Dorothy ChristieProduced byJohn Woolf Teddy BairdStarringDavid NivenMargaret LeightonNoelle MiddletonCinematographyDesmond DickinsonEdited byRalph KemplenProductioncompanyRomulus FilmsDistributed byIndependent Film Distributors Kingsley-International Pictures (US)Rel...

American academic and administrator ProfessorJames Reardon-AndersonProfessor Reardon-Anderson in 19971st Dean of Georgetown UniversitySchool of Foreign Service in QatarIn office2005–2009PresidentJohn J. DeGioiaPreceded byPosition establishedSucceeded byGerd NonnemanIn office2016–2017PresidentJohn J. DeGioiaPreceded byGerd NonnemanSucceeded byAhmad S. DallalInterim Dean of Georgetown UniversitySchool of Foreign ServiceIn office2013–2015PresidentJohn J. DeGioiaPreceded byCarol LancasterSu...

 

Dutch footballer (born 1999) Donyell Malen Malen playing for Borussia Dortmund in 2023Personal informationFull name Donyell MalenDate of birth (1999-01-19) 19 January 1999 (age 24)[1]Place of birth Wieringen, NetherlandsHeight 1.80 m (5 ft 11 in)[1]Position(s) ForwardTeam informationCurrent team Borussia DortmundNumber 21Youth career2007–2015[2] Ajax2015–2017 ArsenalSenior career*Years Team Apps (Gls)2017–2018 Jong PSV 22 (13)2018–2021 PSV 8...

 

Strategi Solo vs Squad di Free Fire: Cara Menang Mudah!