def METHOD_NAME(self, param_vec: np.ndarray, with_offset: bool = True) -> Tuple:
    """Wraps get_matrix_from_tensor in canonInterface.
    Parameters
    ----------
        param_vec: flattened parameter vector
        with_offset: (optional) return offset. Defaults to True.
    Returns
    -------
        A tuple (A, b), where A is a matrix with `var_length` columns
        and b is a flattened NumPy array representing the constant offset.
        If with_offset=False, returned b is None.
    """
    return canonInterface.METHOD_NAME(
        self.reduced_mat, param_vec, self.var_len,
        nonzero_rows=self.mapping_nonzero,
        with_offset=with_offset,
        problem_data_index=self.problem_data_index)