## `linalg::nrows` -- number of rows of a matrix

#### Introduction

`linalg::nrows``(A)` returns the number of rows of the matrix A.

#### Call(s)

`linalg::nrows(A)`

#### Parameters

`A` | - | a matrix of a domain of category `Cat::Matrix`

#### Returns

a positive integer.

#### Related Functions

`linalg::matdim`, `linalg::ncols`, `linalg::vecdim`

#### Example 1

The matrix:

    >> A := matrix([[1, 2, 3, 4], [3, 1, 4], [5, 6]])

                                 +-            -+
                                 |  1, 2, 3, 4  |
                                 |              |
                                 |  3, 1, 4, 0  |
                                 |              |
                                 |  5, 6, 0, 0  |
                                 +-            -+

has three rows:

    >> linalg::nrows(A)

                                         3

Do you have questions or comments?
Copyright © SciFace Software GmbH & Co. KG 2000