This function converts matrices into triplet form for Mosek. This is required in order to declare quadratic programming problems and second-order cone programming problems.
matrixTriplets(mat, lower = TRUE)
A matrix.
Boolean, set to TRUE
if matrix is symmetric,
and only its lower triangle should be returned.
A list containing vectors of row and column indexes, and matrix values.