fix #6: add aslinearoperator convenience function