def sqrt(matrix, inplace=False):
    """Perform element-wise sqrt.

    Parameters
    ----------
    matrix: a matrix-like object
    inplace: boolean, optional
        whether or not to perform the operation inplace (default=False)

    Returns
    -------
    a matrix-like object
        has the same type as the one input
    """
    return matrix.sqrt(inplace=inplace)
