Adding `aslinearoperator` and/or type checks should be done here.