Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::math_opt::Gurobi::SparseMat Struct Reference

#include <g_gurobi.h>

Public Attributes

std::vector< int > begins
 
std::vector< int > inds
 
std::vector< double > vals
 

Detailed Description

A sparse matrix in compressed sparse column (CSC) format. E.g. [[2, 0, 4], [8, 6, 0]] Would be {.begins={0, 2, 3}, .inds={0, 1, 1, 0}, .vals={2, 8, 6, 4}}

Definition at line 155 of file g_gurobi.h.

Member Data Documentation

◆ begins

std::vector<int> operations_research::math_opt::Gurobi::SparseMat::begins

Has size equal to the number of columns, the index in inds where this column begins.

Definition at line 158 of file g_gurobi.h.

◆ inds

std::vector<int> operations_research::math_opt::Gurobi::SparseMat::inds

Has size equal to the number of nonzeros in the matrix, the row for this entry.

Definition at line 162 of file g_gurobi.h.

◆ vals

std::vector<double> operations_research::math_opt::Gurobi::SparseMat::vals

Has size equal to the number of nonzeros in the matrix, the value for this entry.

Definition at line 166 of file g_gurobi.h.


The documentation for this struct was generated from the following file: