Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a generally accepted formal notation for denoting the number of columns a matrix has (e.g to use in pseudocode/algorithm environment in LaTeX)? Something I could use in the description of an algorithm like:

if horizontaldim(V) > x then
end if


if size(V,2) > x then 
end if

or should I just use a description like

if number of columns in V > x then
end if
share|cite|improve this question
up vote 3 down vote accepted

None that I know of, but I've seen numerical linear algebra books (e.g. Golub and Van Loan) just say something like $V\in\mathbb{R}^{m\times n}$ for a matrix V with m rows and n columns, and then use m and n in the following algorithm description.

MATLAB notation, which some other people use, just says rows(V) and columns(V).

share|cite|improve this answer
Might be obvious, but for completeness' sake: if V is a complex matrix, then it should be $V\in\mathbb{C}^{m\times n}$ . – J. M. Aug 15 '10 at 1:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.