concept matrix in category opencl

appears as: matrix, matrices, A matrix, matrix, matrices
OpenCL in Action: How to Accelerate Graphics and Computation

This is an excerpt from Manning's book OpenCL in Action: How to Accelerate Graphics and Computation.

  • Mathematical vector— An ordered, one-dimensional collection of elements. This is distinguished from a two-dimensional collection of elements, called a matrix.
  • 12.1.1. Introduction to matrices

    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.

    Figure 12.1. Matrix notation

    In code, matrices are commonly represented by two-dimensional arrays, where the two dimensions identify the matrix’s rows and columns. If a matrix has m rows and n columns, it’s called an m-by-n matrix. If the number of rows equals the number of columns, it’s called a square matrix.