Skip to content

Instantly share code, notes, and snippets.

View SteveDiamond's full-sized avatar

Steven Diamond SteveDiamond

View GitHub Profile
@SteveDiamond
SteveDiamond / Fixed ntf_fir_from_q0
Created December 24, 2014 21:31
This version of ntf_fir_from_q0 passes the unit tests.
def ntf_fir_from_q0(q0, H_inf=1.5, normalize="auto", **options):
"""
Synthesize FIR NTF from quadratic form expressing noise weighting.
Parameters
----------
q0 : ndarray
first row of the Toeplitz symmetric matrix defining the quadratic form
H_inf : real, optional
Max peak NTF gain, defaults to 1.5, used to enforce the Lee criterion
@SteveDiamond
SteveDiamond / gist:1e48bc42155cd66bc638
Created May 13, 2015 22:03
Problems that are slow to parse in cvxpy
{
"metadata": {
"name": "",
"signature": "sha256:05f6de9d45e00b178239617584530f1cfb2110e0d666cb4e0ec80599e1dd0269"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"metadata": {
"name": "",
"signature": "sha256:754cf4f73927f25d89981617f6523263163497ca44833bd7d4afb979a950a727"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
This file has been truncated, but you can view the full file.
(dp0
S'A'
p1
ccopy_reg
_reconstructor
p2
(cscipy.sparse.csc
csc_matrix
p3
c__builtin__
➜ epsilon git:(master) tools/build_third_party.sh
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/stevend2/PythonProjects/epsilon/build-deps/gflags
[100%] Built target gflags-static
[100%] Built target gflags_nothreads-static
Install the project...
-- Install configuration: "Release"
-- Installing: /Users/stevend2/PythonProjects/epsilon/build-deps/lib/libgflags.a
-- Installing: /Users/stevend2/PythonProjects/epsilon/build-deps/lib/libgflags_nothreads.a
@SteveDiamond
SteveDiamond / test.py
Created April 5, 2016 03:42
epsilon bug?
import numpy as np
import cvxpy as cp
import epopt as ep
# Form lasso problem with CVXPY
m = 500
n = 2000
lam = 1
np.random.seed(1)
CVXPY Individual Contributor License Agreement (CLA)
Adapted from http://www.apache.org/licenses/
Thank you for your interest in the CVXPY project, an unincorporated association (“CVXPY”). To clarify the intellectual property license granted with Contributions, CVXPY must have a Contributor License Agreement ("CLA") on file that has been signed by each Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as well as the protection of CVXPY and its users; it does not change your rights to use your own Contributions for any other purpose.
If you have not already done so, please complete and send a signed CLA by scanning it and emailing it to: cvxpy.project@gmail.com.
You agree to the following terms for Your past, present, and future Contributions submitted to CVXPY. In return, CVXPY shall not use Your Contributions in a way that is contrary to the public benefit or inconsistent with its nonprofit status and bylaws in effect at the time of the Co
Running Sphinx v1.5.3
making output directory...
loading translations [en]... done
building [mo]: targets for 0 po files that are out of date
building [readthedocs]: targets for 51 source files that are out of date
updating environment: 51 added, 0 changed, 0 removed
reading sources... [ 1%] api_reference/cvxpy
reading sources... [ 3%] api_reference/cvxpy.atoms
reading sources... [ 5%] api_reference/cvxpy.atoms.affine
reading sources... [ 7%] api_reference/cvxpy.atoms.elementwise