Search Ctrl K
Home / Tools
THE FEUTEX TOOLKIT

Sparse CSR Matrix Memory

Compare compressed sparse row arrays with a dense numerical matrix.

Developer workspace● Runs in your browser
01 Your input
02 Your result
View or copy raw result data
FormulaCSR payload = (nnz*(value+index)+(rows+1)*index)/1e6; Dense payload = rows*cols*value/1e6
Sources and model references

Made for real tasks

  • Compare compressed sparse row arrays with a dense numerical matrix.
Explore step-by-step workflows →

Worked example

Inputs

Rows
10000 rows
Columns
10000 columns
Nonzero values
1000000 values
Bytes per value
8 bytes
Bytes per index
4 bytes

Expected results

CSR payload
12.040004 MB
Dense payload
800 MB

Load the example in the workspace to reproduce these results. Display rounding does not change the underlying calculation.

How to use this tool

  1. Enter rows, columns, nonzero values, bytes per value, bytes per index in the displayed units.
  2. Calculate the scenario, then compare it with measurements before changing a system.

Try this example

{
  "rows": 10000,
  "cols": 10000,
  "nnz": 1000000,
  "value": 8,
  "index": 4
}

Accuracy and scope

Three-array CSR storage; duplicates, object headers, alignment and index-overflow limits excluded.

Is my data uploaded?

This tool runs locally in your browser. Input and output are not sent to a processing server. Copy or download your result before leaving the page.