Understanding the CSR Sparse Matrix Format

TL;DR

In scientific computing and machine learning, we often work with sparse matrices, where most elements are zero. Storing such a matrix as a regular two-dimensional array wastes memory and can slow down computation. CSR (Compressed Sparse Row) is a classic format for solving this problem.

I had known the concept of CSR for a long time, but I never fully understood how it stores and reads data. After playing with an interactive demo, it finally clicked. I hope this helps others understand CSR more intuitively too.

What Skateboarding Taught Me

I started skateboarding 5 years ago. Yes, when I was only a junior high school student. I thought skateboarding is extremely cool and interesting, so I bought a skateboard from online shopping. Then I found a gang of friend and started practicing some basic tricks. For example: Ollie, skater jump up with board so that they can jump over barriers, over stairs up and down. Kickflip, skater catch the board after flipping the board for a round, etc…

Main social media platforms in China

China is the world’s largest social media market with highly engaged and mobile-savvy users. Its market composition varies considerably from the rest of the world. Due to the “Great Firewall” of China, as the Chinese government’s internet censorship project is commonly called, Facebook, Twitter, YouTube and other leading international social media players, are all blocked in the country.