-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
linear matrix combination #66
Comments
Interesting, thanks for the bug report. As an immediate workaround, of x = Variable(length(A)) where A = [A1, ..., An] Meanwhile, we'll look into the problem. On Sun, Feb 15, 2015 at 10:44 PM, esproff [email protected] wrote:
Madeleine Udell |
ok, the problem is that x = [rand(2,2) for i=1:3] is an error, ie, .>= doesn't propagate into nested arrays as one might i'm running Julia 3.1 still. does anyone here know
On Sun, Feb 15, 2015 at 11:02 PM, Madeleine Udell <[email protected]
Madeleine Udell |
I'm running 0.3.5 and I get the error. I'm not an authority but I would not consider that to be a bug, strictly speaking. |
@madeleineudell, what is your expected behaviour for
? |
yes, i suppose it's not clear whether .>= should recurse by calling .>= more generally, Convex.jl is not designed to play well with constants that i'd say that until we think it through (or possibly always), the right On Mon, Feb 16, 2015 at 7:23 AM, Iain Dunning [email protected]
Madeleine Udell |
Thinking about the problem of constructing a linear combination of matrices again, I do think it's worthwhile to have a function specialized for this, because some constructions result in problems that are much smaller. I'm not sure what the best name would be, though.
|
The 5th line of the first function needs parentheses around the n1, n2 (at least in Julia 3.9), other than that it looks good. Also I think the name SDPdot is solid, succinct and to the point. |
I would like to form a linear matrix combination of the form x1A1 + ... + xnAn, by doing:
dot([A1, ..., An], Variable(n))
However when I try to do this I get the error:
ERROR:
isless
has no method matching isless(::Array{Float64,2}, ::Int64)The text was updated successfully, but these errors were encountered: