Hello, So I was solving 718C - Sasha and Array, and it required me to code a whole matrix struct by itself, it doesn't support everything, but it's fine ig. I searched but couldn't find anything, I remember jiangly used it in one of his submissions but I couldn't find it. Does anyone mind sharing their own?
For
operator*
you can implement it as:Also
pw(mat &a, ll b)
should return the identity matrix with dimensions of $$$a$$$ for $$$b=0$$$.