Row Matrix: A rectangular array of numbers that are arranged in rows and columns is known as a "matrix." The size of a matrix can be determined by the number of rows and columns in it. If a matrix has "m" rows and "n" columns, then it is said to be an "m by n" matrix and is written as an "m × n" matrix.
In mathematics, a row matrix is a matrix characterized by having only one row, though it may contain multiple columns. If the matrix is in the form of 1 x n, where 'n' represents the number of columns, it qualifies as a row matrix. Its elements are arranged in such a way that they form a single horizontal row within the matrix structure.
For example, if a matrix has five rows and three columns, it is a "5 × 3" matrix. We have various types of matrices, like rectangular, square, triangular, symmetric, singular, etc. Now let us discuss the types of matrices in detail.
What is a Row Matrix?
A row matrix is defined as a matrix that has only one row. A matrix "A = [aij]" is said to be a row matrix if the order of the matrix is "1 × n." In a row matrix, all the entries are arranged in a single row. A row matrix can have numerous columns but only one row. For example, the matrix given below is a row matrix of order "1 × 3," which has one row and three columns that are equal to the number of entries in the matrix.
Row Matrix Definition
A row matrix, also known as a row vector, is a matrix with a single row. It's a way to represent data in a horizontal format, where each element of the row represents a different variable or value.
Row Matrix Examples
- The matrix given below is a row matrix of order "1 × 3."
A_{1\times3} = \left[\begin{array}{cccc} p & q & r\end{array}\right]
- The matrix given below is a row matrix of order "1 × 4."
B_{1\times4} = \left[\begin{array}{cccc} a & b & c & d\end{array}\right]
- The matrix given below is a row matrix of order "1 × 5."
C_{1\times5} = \left[\begin{array}{ccccc} 0 & 5 & 8 & -7 & 11\end{array}\right]
Properties of a Row Matrix
The following are some important properties of a row matrix:
- Any row matrix will have only one row.
- A row matrix can have numerous columns.
- The number of entries in a row matrix is equal to the number of columns.
- A row matrix is also a rectangular matrix and a horizontal matrix.
- The transpose of a row matrix is a column matrix and vice versa.
- Any two-row matrices can be added or subtracted if the order of both matrices is the same.
- The multiplication of a row matrix is possible only with a column matrix if and only if the number of rows in the column matrix is equal to the number of columns in the given row matrix.
- A singleton matrix is obtained when a row matrix and column matrix are multiplied.
Operations on a Row Matrix
We can operate on row matrix using operations such as:
Addition of Row Matrices
Any two-row matrices can be added if the order of both matrices is the same. If the orders of both matrices are the same, then the corresponding entries are added.
For example, let M = \left[\begin{array}{ccc} -2 & 7 & 11\end{array}\right]_{1\times3} and N = \left[\begin{array}{ccc} 5 & 0 & -6\end{array}\right]_{1\times3}
M + N = \left[\begin{array}{ccc} -2 & 7 & 11\end{array}\right]_{1\times3} + \left[\begin{array}{ccc} 5 & 0 & -6\end{array}\right]_{1\times3}
M + N = \left[\begin{array}{ccc} (-2+5) & (7+0) & (11+(-6))\end{array}\right]_{1\times3}
M + N = \left[\begin{array}{ccc} 3 & 7 & 5\end{array}\right]_{1\times3}
Subtraction of Row Matrices
Any two-row matrices can be subtracted if the order of both matrices is the same. If the orders of both matrices are the same, then the corresponding entries are subtracted.
For example, let A = \left[\begin{array}{ccc} 22 & -13 & 19\end{array}\right]_{1\times3} and B = \left[\begin{array}{ccc} 12 & -8 & 7\end{array}\right]_{1\times3}
A - B = \left[\begin{array}{ccc} 22 & -13 & 19\end{array}\right]_{1\times3} + \left[\begin{array}{ccc} 12 & -8 & 7\end{array}\right]_{1\times3}
A - B = \left[\begin{array}{ccc} 10 & -5 & 12\end{array}\right]_{1\times3}
Multiplication
The multiplication of a row matrix is possible only with a column matrix if and only if the number of rows in the column matrix is equal to the number of columns in the given row matrix.
For example, let P = \left[\begin{array}{ccc} 1 & 2 & 3\end{array}\right]_{1\times3}and Q = \left[\begin{array}{c} 4\\ 0\\ 5 \end{array}\right]_{3\times1}
P × Q = \left[\begin{array}{ccc} 1 & 2 & 3\end{array}\right]_{1\times3}\times\left[\begin{array}{c} 4\\ 0\\ 5 \end{array}\right]_{3\times1}
P × Q = [19]1×1
Row Matrix Multiplied by Column Matrix
When you multiply a row matrix by a column matrix, you perform what's called a dot product or inner product operation.
Row and Column Matrix
The common difference between row and column matrix is listed in the following table:
| Aspect | Row Matrix | Column Matrix |
|---|
| Definition | A matrix with only one row. | A matrix with only one column. |
|---|
| Representation | Written horizontally. | Written vertically. |
|---|
| Number of Elements | The number of elements in a row is the number of columns in the matrix. | The number of elements in a column is the number of rows in the matrix. |
|---|
| Dimension | Dimension is 1 × n, where n is the number of columns. | Dimension is m × 1, where m is the number of rows. |
|---|
| Example | \begin{bmatrix} 1 ~~ 2 ~~ 3 \end{bmatrix}_{1\times 3}
| \begin{bmatrix} 1\\ 2 \\ 3 \end{bmatrix}_{3\times 1}
|
|---|
| Typical Use | Representing a set of data points or coefficients in linear equations. | Representing vectors or sets of data in linear algebra. |
|---|
People Also Read:
Solved Examples on Row Matrices
Example 1: Find the transpose of the matrix given below.
Solution:
The matrix given matrix is a row matrix of order "1 × 4." We know that the transpose of a matrix is obtained by interchanging the entries of rows and columns. So, the order of the transpose of the given matrix will be "4 × 1."
A = \left[\begin{array}{cccc} a & b & c & d\end{array}\right]_{1\times4} ⇒ A^{T} = \left[\begin{array}{c} a\\ b\\ c\\ d \end{array}\right]_{4\times1}
Example 2: Find the value of A + 2B, if A = \left[\begin{array}{cccc} 3 & 7 & 0 & -2\end{array}\right]_{1\times4} and B = \left[\begin{array}{cccc} 1 & -3 & 5 & 1\end{array}\right]_{1\times4}
Solution:
A + 2B = \left[\begin{array}{cccc} 3 & 7 & 0 & -2\end{array}\right]_{1\times4}+ 2 \times\left[\begin{array}{cccc} 1 & -3 & 5 & 1\end{array}\right]_{1\times4}
A + 2B = \left[\begin{array}{cccc} 3 & 7 & 0 & -2\end{array}\right]_{1\times4}+ \left[\begin{array}{cccc} 2 & -6 & 10 & 2\end{array}\right]_{1\times4}
A + 2B = \left[\begin{array}{cccc} (3+2) & (7-6) & (0+10) & (-2+2)\end{array}\right]_{1\times4}
A + 2B = \left[\begin{array}{cccc} 5 & 1 & 10 & 0\end{array}\right]_{1\times4}
Example 3: Find the product of the matrices given below.
M = \left[\begin{array}{ccc} 11 & -5 & 8\end{array}\right]_{1\times3}and N = \left[\begin{array}{c} 2\\ 3\\ 4 \end{array}\right]_{3\times1}
Solution:
M × N = \left[\begin{array}{ccc} 11 & -5 & 8\end{array}\right]_{1\times3}\times\left[\begin{array}{c} 2\\ 3\\ 4 \end{array}\right]_{3\times1}
M × N = \left[\begin{array}{c} (11\times2)+(-5\times3)+(8\times4)\end{array}\right]_{1\times1}
M × N = \left[\begin{array}{c} 39\end{array}\right]_{1\times1}
Example 4: Find the value of P − Q, if P = \left[\begin{array}{cc} 25 & 14\end{array}\right]_{1\times2}and Q = \left[\begin{array}{cc} 13 & 10\end{array}\right]_{1\times2}
Solution:
P - Q = \left[\begin{array}{cc} 25 & 14\end{array}\right]_{1\times2}- \left[\begin{array}{cc} 13 & 10\end{array}\right]_{1\times2}
P - Q = \left[\begin{array}{cc} (25-13) & (14-10)\end{array}\right]_{1\times2}
P - Q = \left[\begin{array}{cc} 12 & 4\end{array}\right]_{1\times2}
Similar Reads
Column Matrix
A rectangular array of numbers that are arranged in rows and columns is known as a "matrix." The size of a matrix can be determined by the number of rows and columns in it. If a matrix has "m" rows and "n" columns, then it is said to be an "m by n" matrix and is written as an "m à n" matrix. For exa
7 min read
Bootstrap 5 Table Striped Rows
Bootstrap5 Table Striped rows are used to change the background color of alternate rows in the table row within the <tbody>. The rows look zebra-striped and it helps to differentiate between two rows of a table. Table Striped rows used Class: table-striped: This class is used to change the bac
2 min read
Bootstrap 5 Columns Reordering Offset Classes
Bootstrap 5 Columns Reordering Offset classes are used to give some offset to the column. The offset class sets the left margin of the column they are applied to the total width of the offset columns.Bootstrap 5 Columns Reordering Offset Classes:offset-*: This class is used to give offset to the col
2 min read
Blaze UI Tables Striped Table
Blaze UI is a free open source UI Toolkit that provides a great structure for building websites quickly with a scalable and maintainable foundation. All components in Blaze UI are developed mobile-first and rely solely on native browser features, not a separate library or framework. It helps us to c
2 min read
Ruby | Matrix row() function
The row() is an inbuilt method in Ruby returns a vector that contains all the elements in the given row-number. Syntax: mat1.row(num) Parameters: The function takes a mandatory parameter row, whose elements are to be returned in a vector. Return Value: It returns a vector containing all the elements
1 min read
Print lower triangle with alternate '*' and '#'
Given a number N which denotes the number of rows, the task is to follow the below pattern to print the first N rows of it. Pattern: **#*#**#*#*#*#* Examples: Input: N = 2Output:**# Input: N = 6Output: **#*#**#*#*#*#**#*#*# Approach: Follow the below steps to implement the above pattern: Initialize
4 min read
Excel ROWS and COLUMNS Functions with Examples
In Microsoft Excel, where precision and efficiency reign supreme, mastering the art of maneuvering through cells and worksheets is indispensable. Two indispensable components in your Excel toolbox are the ROW and COLUMN functions, each meticulously crafted to execute discrete functions that can subs
7 min read
jQWidgets jqxGrid getrows() Method
jQWidgets is a JavaScript framework for making web-based applications for PC and mobile devices. It is a very powerful, optimized, platform-independent, and widely supported framework. The jqxGrid is used to illustrate a jQuery widget that shows data in tabular form. Moreover, it renders full suppor
2 min read
jQuery RowGrid Plugin
jQuery provides a very simple, user-friendly and responsive rowGrid plugin that helps programmers to display images in a straight row. It is very lightweighted and supports infinite scrolling feature. Real examples of rowGrid are Google+ images or Google image search that appears in a straight row g
4 min read
How to Add Rows in Google Docs - 4 Methods
Google Docs is a powerful word processor, but it's not just limited to text. You can also create and manipulate tables within Google Docs to better organize data and add structure to your content. One of the most common tasks when working with tables is adding rows. Whether you are working on a simp
9 min read