16 for (
int i = mmin; i <= mmax; ++i)
18 ret(i)= v(i) > 0 ? 1 : -1;
Vector of double precision numbers.
int indexmin() const
Get minimum valid index.
ivector sgn(const dvector &v)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Array of integers(int) with indexes from index_min to indexmax.
int indexmax() const
Get maximum valid index.
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.