function tf = isvector( obj )
%ISVECTOR True if input is a distributed vector.
%   TF = ISVECTOR(V)
%   
%   Example:
%       N = 1000;
%       V = distributed.zeros(N,1);
%       tf = isvector(V)
%   
%   returns tf = true.
%   
%   See also ISVECTOR, DISTRIBUTED, DISTRIBUTED/ZEROS.


%   Copyright 2016 The MathWorks, Inc.

tf = obj.ndims==2 && (obj.Size(1)==1 || obj.Size(2)==1);
end