#' @export
torch_solve_qp_uncon<-function(Q,
p,
Q_inv = NULL)
{
if(is.null(Q_inv)){
sol = linalg_solve(Q,-p)
}
else{
sol = torch_matmul(Q_inv,-p)
}
return(sol)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.