Skip to content

Recommended pattern for applying a polynomial of sdpvar variables to a large matrix #1249

Closed Answered by johanlofberg
htadashi asked this question in General discussion
Discussion options

You must be logged in to vote

Why don't you simply create the expression directly

a*A(1,:).^2 + b*A(1,:) + c*A(2,:)

replace will be hard to get fast

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@htadashi
Comment options

Answer selected by htadashi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants