Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Taking the transpose of a matrix is one of the simplest operations in linear algebra. This section presents a brief overview of matrices, including their rows and columns, and then discusses how these rows and columns can be switched through matrix transposition. The last part of this section shows how this operation can be coded in OpenCL.
A matrix is a rectangular arrangement of numbers. Matrices are represented graphically as a grid of numbers inside vertical bars. This is shown in figure 12.1.