Functions

fn_shuffle.hpp File Reference

Go to the source code of this file.

Functions

template<typename T1 >
const Op< T1, op_shuffleshuffle (const Base< typename T1::elem_type, T1 > &X, const u32 dim=0)
 //! Shuffle the rows or the columns of a matrix or vector in random fashion. //! If dim = 0, shuffle the columns (default operation). //! If dim = 1, shuffle the rows.