00001 // Copyright (C) 2009-2010 NICTA (www.nicta.com.au)00002 // Copyright (C) 2009-2010 Conrad Sanderson00003 // Copyright (C) 2009-2010 Dimitrios Bouzas00004 // 00005 // This file is part of the Armadillo C++ library.00006 // It is provided without any warranty of fitness00007 // for any purpose. You can redistribute this file00008 // and/or modify it under the terms of the GNU00009 // Lesser General Public License (LGPL) as published00010 // by the Free Software Foundation, either version 300011 // 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 inline00026 constOp<T1, op_shuffle>00027shuffle(constBase<typename T1::elem_type,T1>& X, constuword dim = 0)
00028 {
00029 arma_extra_debug_sigprint();
00030
00031 arma_debug_check( (dim > 1), "shuffle(): dim must be 0 or 1");
00032
00033 returnOp<T1, op_shuffle>(X.get_ref(), dim, 0);
00034 }
00035
00036
00037