/*---------------------------------------------------------------------------* * IT++ * *---------------------------------------------------------------------------* * Copyright (c) 1995-2003 by Tony Ottosson, Thomas Eriksson, Pål Frenger, * * Tobias Ringström, and Jonas Samuelsson. * * * * Permission to use, copy, modify, and distribute this software and its * * documentation under the terms of the GNU General Public License is hereby * * granted. No representations are made about the suitability of this * * software for any purpose. It is provided "as is" without expressed or * * implied warranty. See the GNU General Public License for more details. * *---------------------------------------------------------------------------*/ /*! \file \brief Implementation of elementary functions on vectors and matrices. \author Tony Ottosson 1.5 2003/05/22 08:55:19 */ #include "base/elmatfunc.h" using std::real; using std::imag; using std::arg; using std::conj; namespace itpp { ivec abs(const ivec &data) { ivec temp(data.length()); for (int i=0;i &testvec) { for (int i=0; i &testvec) { for (int i=0; i