Checks if the array has only one dimension. More...

bool isvector () const
 Checks if the array has only one dimension. More...
 

Detailed Description

Checks if the array has only one dimension.

Returns true if the array is a row or column vector.

Note
This function will return true if the array object has only one element.
array row(1,5);
if( col.isvector() && row.isvector() )
printf("col and row are vectors\n");

Function Documentation

bool isvector ( ) const

Checks if the array has only one dimension.

Returns true if the array is a row or column vector.

Note
This function will return true if the array object has only one element.
array row(1,5);
if( col.isvector() && row.isvector() )
printf("col and row are vectors\n");
Returns
True if the array has 1 dimension. False otherwise