Square matrix