Counting column data in a matrix with resets starts off with:
I'm gathering data on how much my cats poop into a matrix:
Most shockingly, this line says:
The cumsum function does something similar, but that's a primitive so I can't modify it to suit my dirty, dirty needs.
And in the closing
I have a lot of cats, and I've recorded years worth of poop data.
Could someone please explain why this question is allowed in its current form on Stack Overflow? I think this is a great question for Code Golf.
Does anyone really think this user collects a record of their cats' waste?
But the problem that the question exists isn't my main concern. My main concern is that this is an audit question for close votes. I failed it for clicking close. I find that it should be closed under "offensive".