Add abstrat type matrix and data.