Scythe-1.0.3
template<matrix_order RO, matrix_style RS, typename T , matrix_order PO1, matrix_style PS1, matrix_order PO2, matrix_style PS2, typename S >
Matrix<T,RO,RS> scythe::ldexp ( const Matrix< T, PO1, PS1 > &  A,
const Matrix< S, PO2, PS2 > &  B 
)

Compute x * 2^ex.

This function computes the value of x * 2^ex, where x is the ith element of the input matrix A, and ex is the desired value of the exponent.

Parameters:
AMatrix whose elements are to be multiplied
exMatrix of powers to which 2 will be raised.