# Path: celerite/terms.py
# @property
# def terms(self):
#     """A list of all the terms included in a sum of terms"""
#     return [self]


import os
import sys
import argparse
import numpy as np
        import george
from scipy.linalg import cho_factor, cho_solve
from celerite import terms
from celerite.timer import benchmark
from celerite.solver import CholeskySolver
        from george.kernels import CeleriteKernel
            ll_time = benchmark("solver.lnlikelihood(y0)",
                                "from __main__ import solver, y0")
        elif args.carma:
            params = [arparams, maparams]
            funcargs = [t[:n], y[:n], yerr[:n]**2]
            comp_time = benchmark(
                "solver = CARMASolver(0.0, *params)\n"
                "solver.log_likelihood(*funcargs)",
                "from __main__ import params, funcargs\n"
                "from celerite.solver import CARMASolver"
            )
            ll_time = 0.0
        elif args.grad:
            params = [0.0] + list(coeffs)
            params += [t[:n], y[:n], yerr[:n]**2]
            comp_time = benchmark("solver.grad_log_likelihood(*params)",
                                  "from __main__ import solver, params")
            ll_time = 0.0
        else:
            params = [0.0] + list(coeffs)
            params += [t[:n], yerr[:n]**2]
            comp_time = benchmark("solver.compute(*params)",
                                  "from __main__ import solver, params")
            solver.compute(*params)
            y0 = y[:n]
            ll_time = benchmark("solver.dot_solve(y0)",
                                "from __main__ import solver, y0")

            if xi == 0 and n <= 8192:
                # Do numpy calculation

# Path: celerite/terms.py
# @property
# def terms(self):
#     """A list of all the terms included in a sum of terms"""
#     return [self]


# Path: examples/benchmark/run.py
import os
import sys
import argparse
import numpy as np
        import george
from scipy.linalg import cho_factor, cho_solve
from celerite import terms
from celerite.timer import benchmark
from celerite.solver import CholeskySolver
        from george.kernels import CeleriteKernel

            ll_time = benchmark("solver.lnlikelihood(y0)",
                                "from __main__ import solver, y0")
        elif args.carma:
            params = [arparams, maparams]
            funcargs = [t[:n], y[:n], yerr[:n]**2]
            comp_time = benchmark(
                "solver = CARMASolver(0.0, *params)\n"
                "solver.log_likelihood(*funcargs)",
                "from __main__ import params, funcargs\n"
                "from celerite.solver import CARMASolver"
            )
            ll_time = 0.0
        elif args.grad:
            params = [0.0] + list(coeffs)
            params += [t[:n], y[:n], yerr[:n]**2]
            comp_time = benchmark("solver.grad_log_likelihood(*params)",
                                  "from __main__ import solver, params")
            ll_time = 0.0
        else:
            params = [0.0] + list(coeffs)
            params += [t[:n], yerr[:n]**2]
            comp_time = benchmark("solver.compute(*params)",
                                  "from __main__ import solver, params")
            solver.compute(*params)
            y0 = y[:n]
            ll_time = benchmark("solver.dot_solve(y0)",
                                "from __main__ import solver, y0")

            if xi == 0 and n <= 8192:
                # Do numpy calculation

                params = [kernel, t[:n], yerr[:n]]