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::copysign ( const Matrix< T, PO1, PS1 > &  A,
const Matrix< S, PO2, PS2 > &  B 
)

Create a matrix containing the absolute value of the first input and the sign of the second input.

This function creates a matrix containing the absolute value of the first input, a matrix called A, and the sign of the second input, matrix B.

Parameters:
AThe matrix whose absolute values will comprise the resultant matrix.
BThe matrix whose signs will comprise the resultant matrix