This is an old version, view current version.

7.2 Integer-valued complex matrix size functions

int num_elements(complex_vector x)
The total number of elements in the vector x (same as function rows)
Available since 2.30

int num_elements(complex_row_vector x)
The total number of elements in the vector x (same as function cols)
Available since 2.30

int num_elements(complex_matrix x)
The total number of elements in the matrix x. For example, if x is a \(5 \times 3\) matrix, then num_elements(x) is 15
Available since 2.30

int rows(complex_vector x)
The number of rows in the vector x
Available since 2.30

int rows(complex_row_vector x)
The number of rows in the row vector x, namely 1
Available since 2.30

int rows(complex_matrix x)
The number of rows in the matrix x
Available since 2.30

int cols(complex_vector x)
The number of columns in the vector x, namely 1
Available since 2.30

int cols(complex_row_vector x)
The number of columns in the row vector x
Available since 2.30

int cols(complex_matrix x)
The number of columns in the matrix x
Available since 2.30

int size(complex_vector x)
The size of x, i.e., the number of elements
Available since 2.30

int size(complex_row_vector x)
The size of x, i.e., the number of elements
Available since 2.30

int size(matrix x)
The size of the matrix x. For example, if x is a \(5 \times 3\) matrix, then size(x) is 15.
Available since 2.30