fn_shuffle.hpp
Go to the documentation of this file.
00001 // Copyright (C) 2009-2010 NICTA (www.nicta.com.au)
00002 // Copyright (C) 2009-2010 Conrad Sanderson
00003 // Copyright (C) 2009-2010 Dimitrios Bouzas
00004 // 
00005 // This file is part of the Armadillo C++ library.
00006 // It is provided without any warranty of fitness
00007 // for any purpose. You can redistribute this file
00008 // and/or modify it under the terms of the GNU
00009 // Lesser General Public License (LGPL) as published
00010 // by the Free Software Foundation, either version 3
00011 // of the License or (at your option) any later version.
00012 // (see http://www.opensource.org/licenses for more info)
00013 
00014 
00015 
00018 
00023 
00024 template<typename T1>
00025 inline
00026 const Op<T1, op_shuffle>
00027 shuffle(const Base<typename T1::elem_type,T1>& X, const uword dim = 0)
00028   {
00029   arma_extra_debug_sigprint();
00030   
00031   arma_debug_check( (dim > 1), "shuffle(): dim must be 0 or 1");
00032   
00033   return Op<T1, op_shuffle>(X.get_ref(), dim, 0);
00034   }
00035 
00036 
00037 


armadillo_matrix
Author(s): Conrad Sanderson - NICTA (www.nicta.com.au), (Wrapper by Sjoerd van den Dries)
autogenerated on Tue Jan 7 2014 11:42:04