Same person as @[email protected], different instance.

  • 13 Posts
  • 241 Comments
Joined 2 years ago
cake
Cake day: April 3rd, 2024

help-circle


  • We need to collectively realize that both Celsius and Fahrenheit are mostly arbitrary and not more than practical conventions to assign numbers to temperatures. Kelvin makes more sense but is impractical for daily use. It’s just US-Americans distracting from the fact that most of their units are objectively bad compared to Metric by pointing out that Celsius is only marginally better.















  • The CSR (compressed sparse row) format is a very simple but efficient way of storing sparse matrices, meaning matrices with a large amount of zero entries, which should not all occupy memory. It has three arrays: one holds all non-zero entries in order, read row by row, the next array contains the column indices of each non-zero element (and therefore has the same length as the first array), the third array indices into the first array for the first element of each row, so we can tell where a new row starts.

    On sparse matrices it has optimal memory efficiency and fast lookups, the main downside is that adding or removing elements from the matrix requires shifting all three arrays, so it is mostly useful for immutable data.