Mathematical matrix