matrixTriplets: Convert matrix into triplet form

View source: R/lp.R

matrixTripletsR Documentation

Convert matrix into triplet form

Description

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.

Usage

matrixTriplets(mat, lower = TRUE)

Arguments

mat

A matrix.

lower

Boolean, set to TRUE if matrix is symmetric, and only its lower triangle should be returned.

Value

A list containing vectors of row and column indexes, and matrix values.


jkcshea/ivmte documentation built on Aug. 31, 2024, 6:44 p.m.