Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Generate colored noise.""" | |
from __future__ import absolute_import, division, print_function | |
import numpy as np | |
from scipy.fftpack import rfft, irfft | |
from scipy.signal import fftconvolve | |
from scipy._lib._util import check_random_state | |
def _generate_fir_coefficients(exponent, n_samples): | |
h = np.empty(n_samples) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CanonicalConstraint(object): | |
def __init__(self, n_eq, n_ineq, fun, jac, hess, keep_feasible): | |
self.n_eq = n_eq | |
self.n_ineq = n_ineq | |
self.fun = fun | |
self.jac = jac | |
self.hess = hess | |
self.keep_feasible = keep_feasible | |
@classmethod |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from scipy.linalg import block_diag | |
class ProblemELEC: | |
def __init__(self, n_electrons, random_state=0): | |
self.n_electrons = n_electrons | |
self.rng = np.random.RandomState(random_state) | |
def x0(self): |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder