Metraipolis › archive › dc_66b5595cf4f7

Compressed Row Storage — Wikipedia (de)

Source
Wikipedia (de)
Original
https://de.wikipedia.org/wiki/Compressed_Row_Storage
License (as archived)
CC-BY-SA-4.0
Archived
2026-11-04T01:22:44.977Z
SHA-256 of the archived text
a8800af30513b16d50612084fc00a833a7ae3cbca77015e2538c956472c74c4c
Stable URL of this page
https://metraipolis.com/documento/dc_66b5595cf4f7

How to cite

Compressed Row Storage — Wikipedia (de) — Wikipedia (de), https://de.wikipedia.org/wiki/Compressed_Row_Storage (CC-BY-SA-4.0); archived copy: https://metraipolis.com/documento/dc_66b5595cf4f7 (Metraipolis archive dc_66b5595cf4f7, sha256 a8800af30513b16d50612084fc00a833a7ae3cbca77015e2538c956472c74c4c)
BibTeX
@misc{dc66b5595cf4f7,
  title = {Compressed Row Storage — Wikipedia (de)},
  howpublished = {Wikipedia (de)},
  url = {https://de.wikipedia.org/wiki/Compressed_Row_Storage},
  note = {License CC-BY-SA-4.0; archived copy https://metraipolis.com/documento/dc_66b5595cf4f7; sha256 a8800af30513b16d50612084fc00a833a7ae3cbca77015e2538c956472c74c4c},
  year = {2026}
}

Archived text

Reproduced under CC-BY-SA-4.0. Attribution: Wikipedia (de), https://de.wikipedia.org/wiki/Compressed_Row_Storage. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Compressed Row Storage (CRS) oder Compressed Sparse Row (CSR) ist ein häufig genutztes Verfahren zum Speichern dünnbesetzter Matrizen. In der numerischen Mathematik bezeichnet man damit eine Matrix, bei der so viele Einträge aus Nullen bestehen, dass es sich lohnt, dies auszunutzen. Beim CRS-Verfahren werden nur die von Null verschiedenen Einträge einer ( m × n ) {\displaystyle (m\times n)} -Matrix A {\displaystyle A} gespeichert: In Form eines Arrays v a l {\displaystyle val} , also an aufeinanderfolgenden Stellen im Speicher. Die für die Abbildung zwischen Positionen in der Matrix und dem Array v a l {\displaystyle val} benötigten Informationen werden in zwei weiteren Arrays r o w P t r {\displaystyle rowPtr} und c o l I n d {\displaystyle colInd} gespeichert. In c o l I n d {\displaystyle colInd} ist zu jedem Eintrag aus v a l {\displaystyle val} der Index seiner Spalte gespeichert. Er umfasst daher gleich viele Elemente wie v a l {\displaystyle val} . Die Werte in r o w P t r {\displaystyle rowPtr} legen fest, welche Werte von v a l {\displaystyle val} zu welcher Zeile gehören. Der formale Zusammenhang zwischen der Matrix A {\displaystyle A} und ihrer Darstellung unter Verwendung von CRS lautet: A i , j = v a l [ k ] ⟺ ( c o l I n d [ k ] = j ) ∧ ( r o w P t r [ i ] ≤ k < r o w P t r [ i + 1 ] ) . {\displaystyle A_{i,j}=val[k]\iff (colInd[k]=j)\land (rowPtr[i]\leq k<rowPtr[i+1]).} Beispiel: (Die blauen Zahlen geben die Zeilen und die grünen die Spalten der Matrix A {\displaystyle A} an. Die Indizes beginnen wie in vielen Computersprachen üblich mit 0.) A = ( 10 ( 0 , 0 ) 0 0 12 ( 0 , 3 ) 0 0 0 11 ( 1 , 2 ) 0 13 ( 1 , 4 ) 0 16 ( 2 , 1 ) 0 0 0 0 0 11 ( 3 , 2 ) 0 13 ( 3 , 4 ) ) {\displaystyle A={\begin{pmatrix}{\underset {({\color {Blue}0},{\color {Green}0})}{10}}&0&0&{\underset {({\color {Blue}0},{\color {Green}3})}{12}}&0\\0&0&{\underset {({\color {Blue}1},{\color {Green}2})}{11}}&0&{\underset {({\color {Blue}1},{\color {Green}4})}{13}}\\0&{\underset {({\color {Blue}2},{\color {Green}1})}{16}}&0&0&0\\0&0&{\underset {({\color {Blue}3},{\color {Green}2})}{11}}&0&{\underset {({\color {Blue}3},{\color {Green}4})}{13}}\\\end{pmatrix}}} In diesem Beispiel sind in den drei Vektoren folgende Werte gespeichert: v a l = ( 10 ( 0 , 0 ) 12 ( 0 , 3 ) 11 ( 1 , 2 ) 13 ( 1 , 4 ) 16 ( 2 , 1 ) 11 ( 3 , 2 ) 13 ( 3 , 4 ) ) c o l I n d = ( 0 ( 0 3 ) 2 ( 1 4 ) 1 ( 2 ) 2 ( 3 4 ) ) r o w P t r = ( 0 ( 0 ) 2 ( 1 ) 4 ( 2 ) 5 ( 3 ) 7 ( 4 ) ) {\displaystyle {\begin{matrix}val&=&\left({\underset {({\color {Blue}0},{\color {Green}0})}{10}}\right.&{\underset {({\color {Blue}0},{\color {Green}3})}{12}}&{\underset {({\color {Blue}1},{\color {Green}2})}{11}}&{\underset {({\color {Blue}1},{\color {Green}4})}{13}}&{\underset {({\color {Blue}2},{\color {Green}1})}{16}}&{\underset {({\color {Blue}3},{\color {Green}2})}{11}}&\left.{\underset {({\color {Blue}3},{\color {Green}4})}{13}}\right)\\colInd&=&\left({\underset {({\color {Blue}0}\,}{\color {Green}0}}\right.&{\underset {\ \,)

Tema degli esploratori: scibile generale (retro-catalogo completo della fonte, senza filtro di tema) (deposito sistematico; retro-catalogo: tutte le voci di Wikipedia in tedesco, in ordine alfabetico).
Fonte: Wikipedia in tedesco, voce «Compressed Row Storage» — https://de.wikipedia.org/wiki/Compressed_Row_Storage
Wikidata Q1121965: «Verfahren in der numerischen Mathematik» (dati Wikidata in CC0 1.0) — https://www.wikidata.org/wiki/Q1121965
Autori: i contributori di Wikipedia (cronologia: https://de.wikipedia.org/wiki/Compressed_Row_Storage?action=history).
Licenza: Creative Commons Attribuzione-Condividi allo stesso modo 4.0 (CC BY-SA 4.0) — https://creativecommons.org/licenses/by-sa/4.0/. Il riuso richiede attribuzione e stessa licenza.
Estratto dell'introduzione non modificato nel contenuto; revisione 239364484, consultata il 2026-11-04T01:15:22.858Z tramite l'API ufficiale di Wikipedia. Impronta SHA-256 dell'estratto: 9f1517980978727c387c83611dd86f56a43af7c27f4c7e6ebe344ca4e7b07dff