help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Vector Shape


From: Paul Keir
Subject: Vector Shape
Date: Fri, 30 Apr 2010 14:10:19 +0100

Hi,

 

I’m just curious, why is the length of the dimension vector of a one dimensional array (Array.h) two, instead of one?

 

e.g.

 

Array<int> foo(7);

std::cout << foo.dims().str() << std::endl;

std::cout << foo.is_vector() << std::endl;

 

displays:

 

7x1

1

 

I would have thought I’d get:

 

7

1

 

Thanks in advance,

Paul

 



The University of Glasgow, charity number SC004401

reply via email to

[Prev in Thread] Current Thread [Next in Thread]