Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

SSparseMatrix

Guides

  • SSparseMatrix objects

Symbols

  • ColumnAssociations
  • ColumnBind
  • ColumnMaxesAssociation
  • ColumnMaxes
  • ColumnMinsAssociation
  • ColumnMins
  • ColumnNamesAssociation
  • ColumnNames
  • ColumnsCount
  • ColumnSumsAssociation
  • ColumnSums
  • DimensionNamesAssociation
  • DimensionNames
  • ImposeColumnNames
  • ImposeRowNames
  • MakeSSparseMatrix
  • RowAssociations
  • RowBind
  • RowMaxesAssociation
  • RowMaxes
  • RowMinsAssociation
  • RowMins
  • RowNamesAssociation
  • RowNames
  • RowsCount
  • RowSumsAssociation
  • RowSums
  • SetColumnNames
  • SetDimensionNames
  • SetRowNames
  • SSparseMatrixAssociation
  • SSparseMatrixImportFromDirectory
  • SSparseMatrix
  • SSparseMatrixQ
  • SSparseMatrixToTriplets
  • ToSSparseMatrix
AntonAntonov`SSparseMatrix`
RowSumsAssociation
​
Gives an
Association
the sums of the rows of a
SSparseMatrix
object.
​
Examples  
(1)
Basic Examples  
(1)
In[1]:=
SeedRandom[323];​​{m,n}={12,4};​​smat=
ToSSparseMatrix
[SparseArray[RandomInteger[{-10,10},{m,n}]/.{x_?NumberQ/;x<30}],"RowNames"RandomWord[m],"ColumnNames"RandomWord[n]]
Out[1]=
SparseArray
Specified elements: 23
Dimensions: {12,4}

In[2]:=
MatrixForm[smat]
Out[2]//MatrixForm=
imperially
communism
insinuate
strike
bankroll
0
5
0
0
repairman
4
7
0
10
ambassador
0
0
0
5
mountebank
9
0
0
0
resistive
0
9
0
9
croquette
0
3
3
6
rapprochement
0
8
0
8
diffuser
6
8
0
5
lambent
0
6
0
9
starter
0
0
3
0
misleadingly
0
0
10
0
vacation
0
10
3
5
In[3]:=
RowSumsAssociation
[smat]
Out[3]=
bankroll5,repairman21,ambassador5,mountebank9,resistive18,croquette12,rapprochement16,diffuser19,lambent15,starter3,misleadingly10,vacation18
SeeAlso
RowSums
 
▪
ColumnSums
 
▪
ColumnSumsAssociation
RelatedGuides
▪
SSparseMatrix objects
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com