Scythe-1.0.3
template<typename T_type = double, matrix_order ORDER = Col, matrix_style STYLE = Concrete>
template<typename T , matrix_order O, matrix_style S>
void scythe::Matrix< T_type, ORDER, STYLE >::resize2Match ( const Matrix< T, O, S > &  M,
bool  preserve = false 
) [inline]

Resize a Matrix to match another.

This modifier resizes this Matrix to match the dimensions of the argument. In all other respects, it behaves just like resize().

Parameters:
MThe Matrix providing the dimensions to mimic.
preserveWhether or not to train the current contents of the Matrix.
See also:
resize(uint, uint, bool)
detach()
Exceptions:
scythe_alloc_error(Level 1)

Referenced by scythe::Matrix< T_type, M_ORDER, M_STYLE >::copy(), scythe::Matrix< T_type, M_ORDER, M_STYLE >::detach(), and scythe::Matrix< T_type, M_ORDER, M_STYLE >::operator=().