matrices quick check

1. What is a matrix?

A matrix is a rectangular array of numbers arranged in rows and columns. Each number in a matrix is called an element.

2. What are the different types of matrices?
- Row matrix: A matrix with only one row.
- Column matrix: A matrix with only one column.
- Square matrix: A matrix with the same number of rows and columns.
- Identity matrix: A square matrix with 1s on the main diagonal and 0s elsewhere.
- Zero matrix: A matrix where all elements are 0.

3. How do you add and subtract matrices?
To add or subtract matrices, you add or subtract the corresponding elements in each matrix. The matrices must have the same dimensions in order to perform addition or subtraction.

4. How do you multiply matrices?
To multiply two matrices, the number of columns in the first matrix must be equal to the number of rows in the second matrix. The product matrix will have the same number of rows as the first matrix and the same number of columns as the second matrix.

5. What is the determinant of a matrix?
The determinant of a square matrix is a scalar value that can be calculated from the elements of the matrix. The determinant is used to determine if a matrix is invertible (non-singular) or not.