Write serverside matrix operations