Full Storage Format for Matrices

Content

Goal: Getting familiar with the full storage format for matrices.

Exercise

In this first exercise you are asked to write a small C program that initializes a \(7 \times 8\) col major matrix and then prints the matrix. The program should consist of three functions initMatrix, printMatrix and main:

Exercise

Modify your program such that it initializes a \(7 \times 8\) row major matrix.

Exercise

Modify your program to achieve the following:

Exercise

Modify your program to achieve the following: