Files
ortools-clone/docs/cpp/sparse__column_8h_source.html
Mizux Seiha 17edcf0e25 Update doc
2021-09-30 01:28:18 +02:00

361 lines
74 KiB
HTML

<!-- HTML header for doxygen 1.8.18-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>OR-Tools: sparse_column.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="styleSheet.tmp.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="orLogo.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">OR-Tools
&#160;<span id="projectnumber">9.1</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('sparse__column_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="headertitle"><div class="title">sparse_column.h</div></div>
</div><!--header-->
<div class="contents">
<a href="sparse__column_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">// Copyright 2010-2021 Google LLC</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment">// Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment">// you may not use this file except in compliance with the License.</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment">// You may obtain a copy of the License at</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment">//</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment">//</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="comment">// distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="comment">// See the License for the specific language governing permissions and</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="comment">// limitations under the License.</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> </div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="preprocessor">#ifndef OR_TOOLS_LP_DATA_SPARSE_COLUMN_H_</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="preprocessor">#define OR_TOOLS_LP_DATA_SPARSE_COLUMN_H_</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> </div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="preprocessor">#include &quot;<a class="code" href="sparse__vector_8h.html">ortools/lp_data/sparse_vector.h</a>&quot;</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> </div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceoperations__research.html">operations_research</a> {</div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="keyword">namespace </span>glop {</div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> </div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="comment">// TODO(user): Consider using kInvalidRow for this?</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"><a class="line" href="namespaceoperations__research_1_1glop.html#abbaca14cc7f5a0f3aaeb027fef37e0ca"> 23</a></span><span class="keyword">const</span> RowIndex <a class="code hl_function" href="namespaceoperations__research_1_1glop.html#abbaca14cc7f5a0f3aaeb027fef37e0ca">kNonPivotal</a>(-1);</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> </div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="comment">// Specialization of SparseVectorEntry and SparseColumnIterator for the</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="comment">// SparseColumn class. In addition to index(), it also provides row() for better</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="comment">// readability on the client side.</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_sparse_column_entry.html"> 28</a></span><span class="keyword">class </span><a class="code hl_class" href="classoperations__research_1_1glop_1_1_sparse_column_entry.html">SparseColumnEntry</a> : <span class="keyword">public</span> <a class="code hl_class" href="classoperations__research_1_1glop_1_1_sparse_vector_entry.html">SparseVectorEntry</a>&lt;RowIndex&gt; {</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> <span class="comment">// Returns the row of the current entry.</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_sparse_column_entry.html#a9c4479749075080a547bbf63c28f1d83"> 31</a></span> RowIndex <a class="code hl_function" href="classoperations__research_1_1glop_1_1_sparse_column_entry.html#a9c4479749075080a547bbf63c28f1d83">row</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code hl_function" href="classoperations__research_1_1glop_1_1_sparse_vector_entry.html#a70df641c5212f2d7cd26b31595daa5b2">index</a>(); }</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> </div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> <span class="keyword">protected</span>:</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_sparse_column_entry.html#a386de691dc3f6a7b6a27cdaf6524d790"> 34</a></span> <a class="code hl_function" href="classoperations__research_1_1glop_1_1_sparse_column_entry.html#a386de691dc3f6a7b6a27cdaf6524d790">SparseColumnEntry</a>(<span class="keyword">const</span> RowIndex* indices, <span class="keyword">const</span> <a class="code hl_typedef" href="namespaceoperations__research_1_1glop.html#a733947145e3e1631165b618b05c9ccb7">Fractional</a>* <a class="code hl_variable" href="gscip__solver_8cc.html#aa59e74cc299dbf75fa6e2234dd0849a2">coefficients</a>,</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> EntryIndex i)</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> : <a class="code hl_class" href="classoperations__research_1_1glop_1_1_sparse_vector_entry.html">SparseVectorEntry</a>&lt;RowIndex&gt;(indices, <a class="code hl_variable" href="gscip__solver_8cc.html#aa59e74cc299dbf75fa6e2234dd0849a2">coefficients</a>, i) {}</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span>};</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="namespaceoperations__research_1_1glop.html#af253788fa91a20f4580d68cd003c1c61"> 38</a></span><span class="keyword">using</span> <a class="code hl_class" href="classoperations__research_1_1glop_1_1_vector_iterator.html">SparseColumnIterator</a> = <a class="code hl_class" href="classoperations__research_1_1glop_1_1_vector_iterator.html">VectorIterator&lt;SparseColumnEntry&gt;</a>;</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> </div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span><span class="keyword">class </span><a class="code hl_class" href="classoperations__research_1_1glop_1_1_column_view.html">ColumnView</a>;</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> </div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span><span class="comment">// A SparseColumn is a SparseVector&lt;RowIndex&gt;, with a few methods renamed</span></div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span><span class="comment">// to help readability on the client side.</span></div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_sparse_column.html"> 44</a></span><span class="keyword">class </span><a class="code hl_class" href="classoperations__research_1_1glop_1_1_sparse_column.html">SparseColumn</a> : <span class="keyword">public</span> <a class="code hl_class" href="classoperations__research_1_1glop_1_1_sparse_vector.html">SparseVector</a>&lt;RowIndex, SparseColumnIterator&gt; {</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_sparse_column.html#a8a94e912683e332dce2c091812faabcc"> 45</a></span> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code hl_class" href="classoperations__research_1_1glop_1_1_column_view.html">ColumnView</a>;</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> </div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_sparse_column.html#a772819bd4ba6d2faebedab8e92e11540"> 48</a></span> <a class="code hl_function" href="classoperations__research_1_1glop_1_1_sparse_column.html#a772819bd4ba6d2faebedab8e92e11540">SparseColumn</a>() : <a class="code hl_class" href="classoperations__research_1_1glop_1_1_sparse_vector.html">SparseVector</a>&lt;RowIndex, <a class="code hl_class" href="classoperations__research_1_1glop_1_1_vector_iterator.html">SparseColumnIterator</a>&gt;() {}</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> </div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> <span class="comment">// Use a separate API to get the row and coefficient of entry #i.</span></div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_sparse_column.html#aedc46de5199e203b77de2eae2e4c100d"> 51</a></span> RowIndex <a class="code hl_function" href="classoperations__research_1_1glop_1_1_sparse_column.html#aedc46de5199e203b77de2eae2e4c100d">EntryRow</a>(EntryIndex i)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code hl_function" href="classoperations__research_1_1glop_1_1_sparse_vector.html#a2a98cf268b78708b773df1b95dcba545">GetIndex</a>(i); }</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_sparse_column.html#aaef7fc778a29bb3bb3040c0423937f6e"> 52</a></span> <a class="code hl_typedef" href="namespaceoperations__research_1_1glop.html#a733947145e3e1631165b618b05c9ccb7">Fractional</a> <a class="code hl_function" href="classoperations__research_1_1glop_1_1_sparse_column.html#aaef7fc778a29bb3bb3040c0423937f6e">EntryCoefficient</a>(EntryIndex i)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code hl_function" href="classoperations__research_1_1glop_1_1_sparse_vector.html#aee58c48c57d6575064f1dd9a66077fad">GetCoefficient</a>(i); }</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_sparse_column.html#a7fd628651fe26e69b352dfc56039764f"> 53</a></span> RowIndex <a class="code hl_function" href="classoperations__research_1_1glop_1_1_sparse_column.html#a7fd628651fe26e69b352dfc56039764f">GetFirstRow</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code hl_function" href="classoperations__research_1_1glop_1_1_sparse_vector.html#a8fb138af3a08b1c6a806ea4c094f8fa6">GetFirstIndex</a>(); }</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_sparse_column.html#a8df2e5e0dc1cae48223ca0dc039bdb65"> 54</a></span> RowIndex <a class="code hl_function" href="classoperations__research_1_1glop_1_1_sparse_column.html#a8df2e5e0dc1cae48223ca0dc039bdb65">GetLastRow</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code hl_function" href="classoperations__research_1_1glop_1_1_sparse_vector.html#a88e72aace64cc885956a2a9784768ebb">GetLastIndex</a>(); }</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_sparse_column.html#a1c87305c8c0b26e8bcae00ae094412df"> 55</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classoperations__research_1_1glop_1_1_sparse_column.html#a1c87305c8c0b26e8bcae00ae094412df">ApplyRowPermutation</a>(<span class="keyword">const</span> <a class="code hl_class" href="classoperations__research_1_1glop_1_1_permutation.html">RowPermutation</a>&amp; p) {</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <a class="code hl_function" href="classoperations__research_1_1glop_1_1_sparse_vector.html#a26c6671e6e61e499345478296662f877">ApplyIndexPermutation</a>(p);</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> }</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_sparse_column.html#a2bff6e99df2718f5132519674ee6f04d"> 58</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classoperations__research_1_1glop_1_1_sparse_column.html#a2bff6e99df2718f5132519674ee6f04d">ApplyPartialRowPermutation</a>(<span class="keyword">const</span> <a class="code hl_class" href="classoperations__research_1_1glop_1_1_permutation.html">RowPermutation</a>&amp; p) {</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> <a class="code hl_function" href="classoperations__research_1_1glop_1_1_sparse_vector.html#ab8dd8d63ac93466fd078c53589bb3222">ApplyPartialIndexPermutation</a>(p);</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> }</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span>};</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> </div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span><span class="comment">// Class to iterate on the entries of a given column with the same interface</span></div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span><span class="comment">// as for SparseColumn.</span></div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_column_view.html"> 65</a></span><span class="keyword">class </span><a class="code hl_class" href="classoperations__research_1_1glop_1_1_column_view.html">ColumnView</a> {</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> <span class="comment">// Clients should pass Entry by value rather than by reference.</span></div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> <span class="comment">// This is because SparseColumnEntry is small (2 pointers and an index) and</span></div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> <span class="comment">// previous profiling of this type of use showed no performance penalty</span></div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> <span class="comment">// (see cl/51057736).</span></div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> <span class="comment">// Example: for(const Entry e : column_view)</span></div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_column_view.html#a8176fe7dcf8b7066b1c91f31e63c281a"> 72</a></span> <span class="keyword">typedef</span> <a class="code hl_class" href="classoperations__research_1_1glop_1_1_sparse_column_entry.html">SparseColumnEntry</a> <a class="code hl_typedef" href="classoperations__research_1_1glop_1_1_column_view.html#a8176fe7dcf8b7066b1c91f31e63c281a">Entry</a>;</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_column_view.html#a6981a636f3d43efdb53e13946d4ba37d"> 73</a></span> <span class="keyword">typedef</span> <a class="code hl_class" href="classoperations__research_1_1glop_1_1_vector_iterator.html">VectorIterator&lt;Entry&gt;</a> <a class="code hl_typedef" href="classoperations__research_1_1glop_1_1_column_view.html#a6981a636f3d43efdb53e13946d4ba37d">Iterator</a>;</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> </div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_column_view.html#a27d58c1b3bc40b7775ed056378324b14"> 75</a></span> <a class="code hl_function" href="classoperations__research_1_1glop_1_1_column_view.html#a27d58c1b3bc40b7775ed056378324b14">ColumnView</a>(EntryIndex <a class="code hl_function" href="classoperations__research_1_1glop_1_1_column_view.html#af69d9b7065a8f31604a8134be4307749">num_entries</a>, <span class="keyword">const</span> RowIndex* rows,</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> <span class="keyword">const</span> <a class="code hl_typedef" href="namespaceoperations__research_1_1glop.html#a733947145e3e1631165b618b05c9ccb7">Fractional</a>* <span class="keyword">const</span> <a class="code hl_variable" href="gscip__solver_8cc.html#aa59e74cc299dbf75fa6e2234dd0849a2">coefficients</a>)</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> : num_entries_(<a class="code hl_function" href="classoperations__research_1_1glop_1_1_column_view.html#af69d9b7065a8f31604a8134be4307749">num_entries</a>), rows_(rows), coefficients_(<a class="code hl_variable" href="gscip__solver_8cc.html#aa59e74cc299dbf75fa6e2234dd0849a2">coefficients</a>) {}</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_column_view.html#ae7eb56262fe6ff429bbfcdefb06d8c99"> 78</a></span> <span class="keyword">explicit</span> <a class="code hl_function" href="classoperations__research_1_1glop_1_1_column_view.html#ae7eb56262fe6ff429bbfcdefb06d8c99">ColumnView</a>(<span class="keyword">const</span> <a class="code hl_class" href="classoperations__research_1_1glop_1_1_sparse_column.html">SparseColumn</a>&amp; column)</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> : num_entries_(column.<a class="code hl_function" href="classoperations__research_1_1glop_1_1_column_view.html#af69d9b7065a8f31604a8134be4307749">num_entries</a>()),</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> rows_(column.index_),</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> coefficients_(column.coefficient_) {}</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_column_view.html#af69d9b7065a8f31604a8134be4307749"> 82</a></span> EntryIndex <a class="code hl_function" href="classoperations__research_1_1glop_1_1_column_view.html#af69d9b7065a8f31604a8134be4307749">num_entries</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> num_entries_; }</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_column_view.html#aaef7fc778a29bb3bb3040c0423937f6e"> 83</a></span> <a class="code hl_typedef" href="namespaceoperations__research_1_1glop.html#a733947145e3e1631165b618b05c9ccb7">Fractional</a> <a class="code hl_function" href="classoperations__research_1_1glop_1_1_column_view.html#aaef7fc778a29bb3bb3040c0423937f6e">EntryCoefficient</a>(EntryIndex i)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> <span class="keywordflow">return</span> coefficients_[i.value()];</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> }</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_column_view.html#ae7c152aafe19515204c65dadcdc876d6"> 86</a></span> <a class="code hl_typedef" href="namespaceoperations__research_1_1glop.html#a733947145e3e1631165b618b05c9ccb7">Fractional</a> <a class="code hl_function" href="classoperations__research_1_1glop_1_1_column_view.html#ae7c152aafe19515204c65dadcdc876d6">GetFirstCoefficient</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> <span class="keywordflow">return</span> <a class="code hl_function" href="classoperations__research_1_1glop_1_1_column_view.html#aaef7fc778a29bb3bb3040c0423937f6e">EntryCoefficient</a>(EntryIndex(0));</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> }</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_column_view.html#aedc46de5199e203b77de2eae2e4c100d"> 89</a></span> RowIndex <a class="code hl_function" href="classoperations__research_1_1glop_1_1_column_view.html#aedc46de5199e203b77de2eae2e4c100d">EntryRow</a>(EntryIndex i)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> rows_[i.value()]; }</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_column_view.html#a7fd628651fe26e69b352dfc56039764f"> 90</a></span> RowIndex <a class="code hl_function" href="classoperations__research_1_1glop_1_1_column_view.html#a7fd628651fe26e69b352dfc56039764f">GetFirstRow</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code hl_function" href="classoperations__research_1_1glop_1_1_column_view.html#aedc46de5199e203b77de2eae2e4c100d">EntryRow</a>(EntryIndex(0)); }</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> </div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_column_view.html#a09dd208593b9721a30a83ed978ede577"> 92</a></span> <a class="code hl_class" href="classoperations__research_1_1glop_1_1_vector_iterator.html">Iterator</a> <a class="code hl_function" href="classoperations__research_1_1glop_1_1_column_view.html#a09dd208593b9721a30a83ed978ede577">begin</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> <span class="keywordflow">return</span> <a class="code hl_typedef" href="classoperations__research_1_1glop_1_1_column_view.html#a6981a636f3d43efdb53e13946d4ba37d">Iterator</a>(this-&gt;rows_, this-&gt;coefficients_, EntryIndex(0));</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> }</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> </div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_column_view.html#a62469461ed7c932afba3808f4da0fe3d"> 96</a></span> <a class="code hl_class" href="classoperations__research_1_1glop_1_1_vector_iterator.html">Iterator</a> <a class="code hl_function" href="classoperations__research_1_1glop_1_1_column_view.html#a62469461ed7c932afba3808f4da0fe3d">end</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> <span class="keywordflow">return</span> <a class="code hl_typedef" href="classoperations__research_1_1glop_1_1_column_view.html#a6981a636f3d43efdb53e13946d4ba37d">Iterator</a>(this-&gt;rows_, this-&gt;coefficients_, num_entries_);</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> }</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> </div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_column_view.html#a289cdc9f094583c1ddd6bdc8cb8b8b96"> 100</a></span> <a class="code hl_typedef" href="namespaceoperations__research_1_1glop.html#a733947145e3e1631165b618b05c9ccb7">Fractional</a> <a class="code hl_function" href="classoperations__research_1_1glop_1_1_column_view.html#a289cdc9f094583c1ddd6bdc8cb8b8b96">LookUpCoefficient</a>(RowIndex <a class="code hl_variable" href="pack_8cc.html#a750b5d744c39a06bfb13e6eb010e35d0">index</a>)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> <a class="code hl_typedef" href="namespaceoperations__research_1_1glop.html#a733947145e3e1631165b618b05c9ccb7">Fractional</a> <a class="code hl_variable" href="demon__profiler_8cc.html#ac072af30c4ffbc834bb4c681f6ecb514">value</a>(0.0);</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span> e : *<span class="keyword">this</span>) {</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> <span class="keywordflow">if</span> (e.row() == <a class="code hl_variable" href="pack_8cc.html#a750b5d744c39a06bfb13e6eb010e35d0">index</a>) {</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> <span class="comment">// Keep in mind the vector may contains several entries with the same</span></div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> <span class="comment">// index. In such a case the last one is returned.</span></div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> <span class="comment">// TODO(user): investigate whether an optimized version of</span></div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> <span class="comment">// LookUpCoefficient for &quot;clean&quot; columns yields speed-ups.</span></div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> <a class="code hl_variable" href="demon__profiler_8cc.html#ac072af30c4ffbc834bb4c681f6ecb514">value</a> = e.coefficient();</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> }</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> }</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="demon__profiler_8cc.html#ac072af30c4ffbc834bb4c681f6ecb514">value</a>;</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> }</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> </div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_column_view.html#a8e12342fc420701fbffd97025421575a"> 114</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classoperations__research_1_1glop_1_1_column_view.html#a8e12342fc420701fbffd97025421575a">IsEmpty</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> num_entries_ == EntryIndex(0); }</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> </div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> <span class="keyword">private</span>:</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> <span class="keyword">const</span> EntryIndex num_entries_;</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> <span class="keyword">const</span> RowIndex* <span class="keyword">const</span> rows_;</div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> <span class="keyword">const</span> <a class="code hl_typedef" href="namespaceoperations__research_1_1glop.html#a733947145e3e1631165b618b05c9ccb7">Fractional</a>* <span class="keyword">const</span> coefficients_;</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span>};</div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> </div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span><span class="comment">// --------------------------------------------------------</span></div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span><span class="comment">// RandomAccessSparseColumn</span></div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span><span class="comment">// --------------------------------------------------------</span></div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span><span class="comment">// A RandomAccessSparseColumn is a mix between a DenseColumn and a SparseColumn.</span></div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span><span class="comment">// It makes it possible to populate a dense column from a sparse column in</span></div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span><span class="comment">// O(num_entries) instead of O(num_rows), and to access an entry in O(1).</span></div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span><span class="comment">// As the constructor runs in O(num_rows), a RandomAccessSparseColumn should be</span></div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span><span class="comment">// used several times to amortize the creation cost.</span></div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_random_access_sparse_column.html"> 130</a></span><span class="keyword">class </span><a class="code hl_class" href="classoperations__research_1_1glop_1_1_random_access_sparse_column.html">RandomAccessSparseColumn</a> {</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> <span class="comment">// Creates a RandomAccessSparseColumn.</span></div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> <span class="comment">// Runs in O(num_rows).</span></div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> <span class="keyword">explicit</span> <a class="code hl_function" href="classoperations__research_1_1glop_1_1_random_access_sparse_column.html#a0a40cbe0715fce52cde0198b66935791">RandomAccessSparseColumn</a>(RowIndex num_rows);</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> <span class="keyword">virtual</span> <a class="code hl_function" href="classoperations__research_1_1glop_1_1_random_access_sparse_column.html#ac9ab944d0f00c8012a5d48aa8df2372e">~RandomAccessSparseColumn</a>();</div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> </div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> <span class="comment">// Clears the column.</span></div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> <span class="comment">// Runs in O(num_entries).</span></div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classoperations__research_1_1glop_1_1_random_access_sparse_column.html#aa71d36872f416feaa853788a7a7a7ef8">Clear</a>();</div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> </div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classoperations__research_1_1glop_1_1_random_access_sparse_column.html#aa5b6c7b82ff9ad9f5a189f7d9d82b1a2">Resize</a>(RowIndex num_rows);</div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> </div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> <span class="comment">// Sets value at row.</span></div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> <span class="comment">// Runs in O(1).</span></div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_random_access_sparse_column.html#aee8ba40a210c96d368beafaeed5533c5"> 145</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classoperations__research_1_1glop_1_1_random_access_sparse_column.html#aee8ba40a210c96d368beafaeed5533c5">SetCoefficient</a>(RowIndex <a class="code hl_variable" href="markowitz_8cc.html#aea35f36ba98d5bbd8d033382f50c9e52">row</a>, <a class="code hl_typedef" href="namespaceoperations__research_1_1glop.html#a733947145e3e1631165b618b05c9ccb7">Fractional</a> <a class="code hl_variable" href="demon__profiler_8cc.html#ac072af30c4ffbc834bb4c681f6ecb514">value</a>) {</div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> column_[<a class="code hl_variable" href="markowitz_8cc.html#aea35f36ba98d5bbd8d033382f50c9e52">row</a>] = <a class="code hl_variable" href="demon__profiler_8cc.html#ac072af30c4ffbc834bb4c681f6ecb514">value</a>;</div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> MarkRowAsChanged(<a class="code hl_variable" href="markowitz_8cc.html#aea35f36ba98d5bbd8d033382f50c9e52">row</a>);</div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> }</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> </div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> <span class="comment">// Adds value to the current value at row.</span></div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> <span class="comment">// Runs in O(1).</span></div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_random_access_sparse_column.html#a6b6ed150baaae3251d84ccd30043173a"> 152</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classoperations__research_1_1glop_1_1_random_access_sparse_column.html#a6b6ed150baaae3251d84ccd30043173a">AddToCoefficient</a>(RowIndex <a class="code hl_variable" href="markowitz_8cc.html#aea35f36ba98d5bbd8d033382f50c9e52">row</a>, <a class="code hl_typedef" href="namespaceoperations__research_1_1glop.html#a733947145e3e1631165b618b05c9ccb7">Fractional</a> <a class="code hl_variable" href="demon__profiler_8cc.html#ac072af30c4ffbc834bb4c681f6ecb514">value</a>) {</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> column_[<a class="code hl_variable" href="markowitz_8cc.html#aea35f36ba98d5bbd8d033382f50c9e52">row</a>] += <a class="code hl_variable" href="demon__profiler_8cc.html#ac072af30c4ffbc834bb4c681f6ecb514">value</a>;</div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> MarkRowAsChanged(<a class="code hl_variable" href="markowitz_8cc.html#aea35f36ba98d5bbd8d033382f50c9e52">row</a>);</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> }</div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> </div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> <span class="comment">// Populates from a sparse column.</span></div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> <span class="comment">// Runs in O(num_entries).</span></div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classoperations__research_1_1glop_1_1_random_access_sparse_column.html#acf075871b82eb8af93867beb42e3aa0c">PopulateFromSparseColumn</a>(<span class="keyword">const</span> <a class="code hl_class" href="classoperations__research_1_1glop_1_1_sparse_column.html">SparseColumn</a>&amp; sparse_column);</div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> </div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> <span class="comment">// Populates a sparse column from the lazy dense column.</span></div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> <span class="comment">// Runs in O(num_entries).</span></div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classoperations__research_1_1glop_1_1_random_access_sparse_column.html#aaa5aa6d2fc9aaefcbc8688ceb127fb8a">PopulateSparseColumn</a>(<a class="code hl_class" href="classoperations__research_1_1glop_1_1_sparse_column.html">SparseColumn</a>* sparse_column) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> </div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> <span class="comment">// Returns the number of rows.</span></div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> <span class="comment">// Runs in O(1).</span></div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_random_access_sparse_column.html#ae1d8c3228cb8e036c1d8ab67336a7d2f"> 167</a></span> RowIndex <a class="code hl_function" href="classoperations__research_1_1glop_1_1_random_access_sparse_column.html#ae1d8c3228cb8e036c1d8ab67336a7d2f">GetNumberOfRows</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> RowIndex(column_.<a class="code hl_function" href="classoperations__research_1_1glop_1_1_strict_i_t_i_vector.html#a967a5c081ad4195a30c78dc2c0bcabf5">size</a>()); }</div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> </div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> <span class="comment">// Returns the value in position row.</span></div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> <span class="comment">// Runs in O(1).</span></div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_random_access_sparse_column.html#ab988bcb6c80bbc7853904ea85328a007"> 171</a></span> <a class="code hl_typedef" href="namespaceoperations__research_1_1glop.html#a733947145e3e1631165b618b05c9ccb7">Fractional</a> <a class="code hl_function" href="classoperations__research_1_1glop_1_1_random_access_sparse_column.html#ab988bcb6c80bbc7853904ea85328a007">GetCoefficient</a>(RowIndex <a class="code hl_variable" href="markowitz_8cc.html#aea35f36ba98d5bbd8d033382f50c9e52">row</a>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> column_[<a class="code hl_variable" href="markowitz_8cc.html#aea35f36ba98d5bbd8d033382f50c9e52">row</a>]; }</div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> </div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> <span class="keyword">private</span>:</div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> <span class="comment">// Keeps a trace of which rows have been changed.</span></div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> <span class="keywordtype">void</span> MarkRowAsChanged(RowIndex <a class="code hl_variable" href="markowitz_8cc.html#aea35f36ba98d5bbd8d033382f50c9e52">row</a>) {</div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> <span class="keywordflow">if</span> (!changed_[<a class="code hl_variable" href="markowitz_8cc.html#aea35f36ba98d5bbd8d033382f50c9e52">row</a>]) {</div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> changed_[<a class="code hl_variable" href="markowitz_8cc.html#aea35f36ba98d5bbd8d033382f50c9e52">row</a>] = <span class="keyword">true</span>;</div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span> row_change_.push_back(<a class="code hl_variable" href="markowitz_8cc.html#aea35f36ba98d5bbd8d033382f50c9e52">row</a>);</div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span> }</div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> }</div>
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"> 181</span> </div>
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"> 182</span> <span class="comment">// The dense version of the column.</span></div>
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span> <a class="code hl_typedef" href="namespaceoperations__research_1_1glop.html#ae5fa9e57c2d31b294195ed8a9e17bfac">DenseColumn</a> column_;</div>
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span> </div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span> <span class="comment">// Dense Boolean vector used to mark changes.</span></div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> <a class="code hl_typedef" href="namespaceoperations__research_1_1glop.html#aec7177dd4fab33ada14a7689223fe89f">DenseBooleanColumn</a> changed_;</div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span> </div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> <span class="comment">// Stack to store changes.</span></div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span> std::vector&lt;RowIndex&gt; row_change_;</div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> </div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span> DISALLOW_COPY_AND_ASSIGN(<a class="code hl_function" href="classoperations__research_1_1glop_1_1_random_access_sparse_column.html#a0a40cbe0715fce52cde0198b66935791">RandomAccessSparseColumn</a>);</div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span>};</div>
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span> </div>
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</span>} <span class="comment">// namespace glop</span></div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span>} <span class="comment">// namespace operations_research</span></div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span> </div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span><span class="preprocessor">#endif </span><span class="comment">// OR_TOOLS_LP_DATA_SPARSE_COLUMN_H_</span></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_column_view_html"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_column_view.html">operations_research::glop::ColumnView</a></div><div class="ttdef"><b>Definition:</b> <a href="sparse__column_8h_source.html#l00065">sparse_column.h:65</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_column_view_html_a09dd208593b9721a30a83ed978ede577"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_column_view.html#a09dd208593b9721a30a83ed978ede577">operations_research::glop::ColumnView::begin</a></div><div class="ttdeci">Iterator begin() const</div><div class="ttdef"><b>Definition:</b> <a href="sparse__column_8h_source.html#l00092">sparse_column.h:92</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_column_view_html_a27d58c1b3bc40b7775ed056378324b14"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_column_view.html#a27d58c1b3bc40b7775ed056378324b14">operations_research::glop::ColumnView::ColumnView</a></div><div class="ttdeci">ColumnView(EntryIndex num_entries, const RowIndex *rows, const Fractional *const coefficients)</div><div class="ttdef"><b>Definition:</b> <a href="sparse__column_8h_source.html#l00075">sparse_column.h:75</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_column_view_html_a289cdc9f094583c1ddd6bdc8cb8b8b96"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_column_view.html#a289cdc9f094583c1ddd6bdc8cb8b8b96">operations_research::glop::ColumnView::LookUpCoefficient</a></div><div class="ttdeci">Fractional LookUpCoefficient(RowIndex index) const</div><div class="ttdef"><b>Definition:</b> <a href="sparse__column_8h_source.html#l00100">sparse_column.h:100</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_column_view_html_a62469461ed7c932afba3808f4da0fe3d"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_column_view.html#a62469461ed7c932afba3808f4da0fe3d">operations_research::glop::ColumnView::end</a></div><div class="ttdeci">Iterator end() const</div><div class="ttdef"><b>Definition:</b> <a href="sparse__column_8h_source.html#l00096">sparse_column.h:96</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_column_view_html_a6981a636f3d43efdb53e13946d4ba37d"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_column_view.html#a6981a636f3d43efdb53e13946d4ba37d">operations_research::glop::ColumnView::Iterator</a></div><div class="ttdeci">VectorIterator&lt; Entry &gt; Iterator</div><div class="ttdef"><b>Definition:</b> <a href="sparse__column_8h_source.html#l00073">sparse_column.h:73</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_column_view_html_a7fd628651fe26e69b352dfc56039764f"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_column_view.html#a7fd628651fe26e69b352dfc56039764f">operations_research::glop::ColumnView::GetFirstRow</a></div><div class="ttdeci">RowIndex GetFirstRow() const</div><div class="ttdef"><b>Definition:</b> <a href="sparse__column_8h_source.html#l00090">sparse_column.h:90</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_column_view_html_a8176fe7dcf8b7066b1c91f31e63c281a"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_column_view.html#a8176fe7dcf8b7066b1c91f31e63c281a">operations_research::glop::ColumnView::Entry</a></div><div class="ttdeci">SparseColumnEntry Entry</div><div class="ttdef"><b>Definition:</b> <a href="sparse__column_8h_source.html#l00072">sparse_column.h:72</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_column_view_html_a8e12342fc420701fbffd97025421575a"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_column_view.html#a8e12342fc420701fbffd97025421575a">operations_research::glop::ColumnView::IsEmpty</a></div><div class="ttdeci">bool IsEmpty() const</div><div class="ttdef"><b>Definition:</b> <a href="sparse__column_8h_source.html#l00114">sparse_column.h:114</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_column_view_html_aaef7fc778a29bb3bb3040c0423937f6e"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_column_view.html#aaef7fc778a29bb3bb3040c0423937f6e">operations_research::glop::ColumnView::EntryCoefficient</a></div><div class="ttdeci">Fractional EntryCoefficient(EntryIndex i) const</div><div class="ttdef"><b>Definition:</b> <a href="sparse__column_8h_source.html#l00083">sparse_column.h:83</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_column_view_html_ae7c152aafe19515204c65dadcdc876d6"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_column_view.html#ae7c152aafe19515204c65dadcdc876d6">operations_research::glop::ColumnView::GetFirstCoefficient</a></div><div class="ttdeci">Fractional GetFirstCoefficient() const</div><div class="ttdef"><b>Definition:</b> <a href="sparse__column_8h_source.html#l00086">sparse_column.h:86</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_column_view_html_ae7eb56262fe6ff429bbfcdefb06d8c99"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_column_view.html#ae7eb56262fe6ff429bbfcdefb06d8c99">operations_research::glop::ColumnView::ColumnView</a></div><div class="ttdeci">ColumnView(const SparseColumn &amp;column)</div><div class="ttdef"><b>Definition:</b> <a href="sparse__column_8h_source.html#l00078">sparse_column.h:78</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_column_view_html_aedc46de5199e203b77de2eae2e4c100d"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_column_view.html#aedc46de5199e203b77de2eae2e4c100d">operations_research::glop::ColumnView::EntryRow</a></div><div class="ttdeci">RowIndex EntryRow(EntryIndex i) const</div><div class="ttdef"><b>Definition:</b> <a href="sparse__column_8h_source.html#l00089">sparse_column.h:89</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_column_view_html_af69d9b7065a8f31604a8134be4307749"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_column_view.html#af69d9b7065a8f31604a8134be4307749">operations_research::glop::ColumnView::num_entries</a></div><div class="ttdeci">EntryIndex num_entries() const</div><div class="ttdef"><b>Definition:</b> <a href="sparse__column_8h_source.html#l00082">sparse_column.h:82</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_permutation_html"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_permutation.html">operations_research::glop::Permutation&lt; RowIndex &gt;</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_random_access_sparse_column_html"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_random_access_sparse_column.html">operations_research::glop::RandomAccessSparseColumn</a></div><div class="ttdef"><b>Definition:</b> <a href="sparse__column_8h_source.html#l00130">sparse_column.h:130</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_random_access_sparse_column_html_a0a40cbe0715fce52cde0198b66935791"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_random_access_sparse_column.html#a0a40cbe0715fce52cde0198b66935791">operations_research::glop::RandomAccessSparseColumn::RandomAccessSparseColumn</a></div><div class="ttdeci">RandomAccessSparseColumn(RowIndex num_rows)</div><div class="ttdef"><b>Definition:</b> <a href="sparse__column_8cc_source.html#l00026">sparse_column.cc:26</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_random_access_sparse_column_html_a6b6ed150baaae3251d84ccd30043173a"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_random_access_sparse_column.html#a6b6ed150baaae3251d84ccd30043173a">operations_research::glop::RandomAccessSparseColumn::AddToCoefficient</a></div><div class="ttdeci">void AddToCoefficient(RowIndex row, Fractional value)</div><div class="ttdef"><b>Definition:</b> <a href="sparse__column_8h_source.html#l00152">sparse_column.h:152</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_random_access_sparse_column_html_aa5b6c7b82ff9ad9f5a189f7d9d82b1a2"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_random_access_sparse_column.html#aa5b6c7b82ff9ad9f5a189f7d9d82b1a2">operations_research::glop::RandomAccessSparseColumn::Resize</a></div><div class="ttdeci">void Resize(RowIndex num_rows)</div><div class="ttdef"><b>Definition:</b> <a href="sparse__column_8cc_source.html#l00041">sparse_column.cc:41</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_random_access_sparse_column_html_aa71d36872f416feaa853788a7a7a7ef8"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_random_access_sparse_column.html#aa71d36872f416feaa853788a7a7a7ef8">operations_research::glop::RandomAccessSparseColumn::Clear</a></div><div class="ttdeci">void Clear()</div><div class="ttdef"><b>Definition:</b> <a href="sparse__column_8cc_source.html#l00031">sparse_column.cc:31</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_random_access_sparse_column_html_aaa5aa6d2fc9aaefcbc8688ceb127fb8a"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_random_access_sparse_column.html#aaa5aa6d2fc9aaefcbc8688ceb127fb8a">operations_research::glop::RandomAccessSparseColumn::PopulateSparseColumn</a></div><div class="ttdeci">void PopulateSparseColumn(SparseColumn *sparse_column) const</div><div class="ttdef"><b>Definition:</b> <a href="sparse__column_8cc_source.html#l00057">sparse_column.cc:57</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_random_access_sparse_column_html_ab988bcb6c80bbc7853904ea85328a007"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_random_access_sparse_column.html#ab988bcb6c80bbc7853904ea85328a007">operations_research::glop::RandomAccessSparseColumn::GetCoefficient</a></div><div class="ttdeci">Fractional GetCoefficient(RowIndex row) const</div><div class="ttdef"><b>Definition:</b> <a href="sparse__column_8h_source.html#l00171">sparse_column.h:171</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_random_access_sparse_column_html_ac9ab944d0f00c8012a5d48aa8df2372e"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_random_access_sparse_column.html#ac9ab944d0f00c8012a5d48aa8df2372e">operations_research::glop::RandomAccessSparseColumn::~RandomAccessSparseColumn</a></div><div class="ttdeci">virtual ~RandomAccessSparseColumn()</div><div class="ttdef"><b>Definition:</b> <a href="sparse__column_8cc_source.html#l00029">sparse_column.cc:29</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_random_access_sparse_column_html_acf075871b82eb8af93867beb42e3aa0c"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_random_access_sparse_column.html#acf075871b82eb8af93867beb42e3aa0c">operations_research::glop::RandomAccessSparseColumn::PopulateFromSparseColumn</a></div><div class="ttdeci">void PopulateFromSparseColumn(const SparseColumn &amp;sparse_column)</div><div class="ttdef"><b>Definition:</b> <a href="sparse__column_8cc_source.html#l00049">sparse_column.cc:49</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_random_access_sparse_column_html_ae1d8c3228cb8e036c1d8ab67336a7d2f"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_random_access_sparse_column.html#ae1d8c3228cb8e036c1d8ab67336a7d2f">operations_research::glop::RandomAccessSparseColumn::GetNumberOfRows</a></div><div class="ttdeci">RowIndex GetNumberOfRows() const</div><div class="ttdef"><b>Definition:</b> <a href="sparse__column_8h_source.html#l00167">sparse_column.h:167</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_random_access_sparse_column_html_aee8ba40a210c96d368beafaeed5533c5"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_random_access_sparse_column.html#aee8ba40a210c96d368beafaeed5533c5">operations_research::glop::RandomAccessSparseColumn::SetCoefficient</a></div><div class="ttdeci">void SetCoefficient(RowIndex row, Fractional value)</div><div class="ttdef"><b>Definition:</b> <a href="sparse__column_8h_source.html#l00145">sparse_column.h:145</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_sparse_column_entry_html"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_sparse_column_entry.html">operations_research::glop::SparseColumnEntry</a></div><div class="ttdef"><b>Definition:</b> <a href="sparse__column_8h_source.html#l00028">sparse_column.h:28</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_sparse_column_entry_html_a386de691dc3f6a7b6a27cdaf6524d790"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_sparse_column_entry.html#a386de691dc3f6a7b6a27cdaf6524d790">operations_research::glop::SparseColumnEntry::SparseColumnEntry</a></div><div class="ttdeci">SparseColumnEntry(const RowIndex *indices, const Fractional *coefficients, EntryIndex i)</div><div class="ttdef"><b>Definition:</b> <a href="sparse__column_8h_source.html#l00034">sparse_column.h:34</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_sparse_column_entry_html_a9c4479749075080a547bbf63c28f1d83"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_sparse_column_entry.html#a9c4479749075080a547bbf63c28f1d83">operations_research::glop::SparseColumnEntry::row</a></div><div class="ttdeci">RowIndex row() const</div><div class="ttdef"><b>Definition:</b> <a href="sparse__column_8h_source.html#l00031">sparse_column.h:31</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_sparse_column_html"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_sparse_column.html">operations_research::glop::SparseColumn</a></div><div class="ttdef"><b>Definition:</b> <a href="sparse__column_8h_source.html#l00044">sparse_column.h:44</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_sparse_column_html_a1c87305c8c0b26e8bcae00ae094412df"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_sparse_column.html#a1c87305c8c0b26e8bcae00ae094412df">operations_research::glop::SparseColumn::ApplyRowPermutation</a></div><div class="ttdeci">void ApplyRowPermutation(const RowPermutation &amp;p)</div><div class="ttdef"><b>Definition:</b> <a href="sparse__column_8h_source.html#l00055">sparse_column.h:55</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_sparse_column_html_a2bff6e99df2718f5132519674ee6f04d"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_sparse_column.html#a2bff6e99df2718f5132519674ee6f04d">operations_research::glop::SparseColumn::ApplyPartialRowPermutation</a></div><div class="ttdeci">void ApplyPartialRowPermutation(const RowPermutation &amp;p)</div><div class="ttdef"><b>Definition:</b> <a href="sparse__column_8h_source.html#l00058">sparse_column.h:58</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_sparse_column_html_a772819bd4ba6d2faebedab8e92e11540"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_sparse_column.html#a772819bd4ba6d2faebedab8e92e11540">operations_research::glop::SparseColumn::SparseColumn</a></div><div class="ttdeci">SparseColumn()</div><div class="ttdef"><b>Definition:</b> <a href="sparse__column_8h_source.html#l00048">sparse_column.h:48</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_sparse_column_html_a7fd628651fe26e69b352dfc56039764f"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_sparse_column.html#a7fd628651fe26e69b352dfc56039764f">operations_research::glop::SparseColumn::GetFirstRow</a></div><div class="ttdeci">RowIndex GetFirstRow() const</div><div class="ttdef"><b>Definition:</b> <a href="sparse__column_8h_source.html#l00053">sparse_column.h:53</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_sparse_column_html_a8df2e5e0dc1cae48223ca0dc039bdb65"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_sparse_column.html#a8df2e5e0dc1cae48223ca0dc039bdb65">operations_research::glop::SparseColumn::GetLastRow</a></div><div class="ttdeci">RowIndex GetLastRow() const</div><div class="ttdef"><b>Definition:</b> <a href="sparse__column_8h_source.html#l00054">sparse_column.h:54</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_sparse_column_html_aaef7fc778a29bb3bb3040c0423937f6e"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_sparse_column.html#aaef7fc778a29bb3bb3040c0423937f6e">operations_research::glop::SparseColumn::EntryCoefficient</a></div><div class="ttdeci">Fractional EntryCoefficient(EntryIndex i) const</div><div class="ttdef"><b>Definition:</b> <a href="sparse__column_8h_source.html#l00052">sparse_column.h:52</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_sparse_column_html_aedc46de5199e203b77de2eae2e4c100d"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_sparse_column.html#aedc46de5199e203b77de2eae2e4c100d">operations_research::glop::SparseColumn::EntryRow</a></div><div class="ttdeci">RowIndex EntryRow(EntryIndex i) const</div><div class="ttdef"><b>Definition:</b> <a href="sparse__column_8h_source.html#l00051">sparse_column.h:51</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_sparse_vector_entry_html"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_sparse_vector_entry.html">operations_research::glop::SparseVectorEntry</a></div><div class="ttdef"><b>Definition:</b> <a href="sparse__vector_8h_source.html#l00411">sparse_vector.h:411</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_sparse_vector_entry_html_a70df641c5212f2d7cd26b31595daa5b2"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_sparse_vector_entry.html#a70df641c5212f2d7cd26b31595daa5b2">operations_research::glop::SparseVectorEntry&lt; RowIndex &gt;::index</a></div><div class="ttdeci">Index index() const</div><div class="ttdef"><b>Definition:</b> <a href="sparse__vector_8h_source.html#l00415">sparse_vector.h:415</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_sparse_vector_html"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_sparse_vector.html">operations_research::glop::SparseVector</a></div><div class="ttdef"><b>Definition:</b> <a href="sparse__vector_8h_source.html#l00083">sparse_vector.h:83</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_sparse_vector_html_a26c6671e6e61e499345478296662f877"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_sparse_vector.html#a26c6671e6e61e499345478296662f877">operations_research::glop::SparseVector&lt; RowIndex, SparseColumnIterator &gt;::ApplyIndexPermutation</a></div><div class="ttdeci">void ApplyIndexPermutation(const IndexPermutation &amp;index_perm)</div><div class="ttdef"><b>Definition:</b> <a href="sparse__vector_8h_source.html#l00254">sparse_vector.h:926</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_sparse_vector_html_a2a98cf268b78708b773df1b95dcba545"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_sparse_vector.html#a2a98cf268b78708b773df1b95dcba545">operations_research::glop::SparseVector&lt; RowIndex, SparseColumnIterator &gt;::GetIndex</a></div><div class="ttdeci">Index GetIndex(EntryIndex i) const</div><div class="ttdef"><b>Definition:</b> <a href="sparse__vector_8h_source.html#l00344">sparse_vector.h:344</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_sparse_vector_html_a88e72aace64cc885956a2a9784768ebb"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_sparse_vector.html#a88e72aace64cc885956a2a9784768ebb">operations_research::glop::SparseVector&lt; RowIndex, SparseColumnIterator &gt;::GetLastIndex</a></div><div class="ttdeci">Index GetLastIndex() const</div><div class="ttdef"><b>Definition:</b> <a href="sparse__vector_8h_source.html#l00289">sparse_vector.h:289</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_sparse_vector_html_a8fb138af3a08b1c6a806ea4c094f8fa6"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_sparse_vector.html#a8fb138af3a08b1c6a806ea4c094f8fa6">operations_research::glop::SparseVector&lt; RowIndex, SparseColumnIterator &gt;::GetFirstIndex</a></div><div class="ttdeci">Index GetFirstIndex() const</div><div class="ttdef"><b>Definition:</b> <a href="sparse__vector_8h_source.html#l00279">sparse_vector.h:279</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_sparse_vector_html_ab8dd8d63ac93466fd078c53589bb3222"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_sparse_vector.html#ab8dd8d63ac93466fd078c53589bb3222">operations_research::glop::SparseVector&lt; RowIndex, SparseColumnIterator &gt;::ApplyPartialIndexPermutation</a></div><div class="ttdeci">void ApplyPartialIndexPermutation(const IndexPermutation &amp;index_perm)</div><div class="ttdef"><b>Definition:</b> <a href="sparse__vector_8h_source.html#l00258">sparse_vector.h:934</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_sparse_vector_html_aee58c48c57d6575064f1dd9a66077fad"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_sparse_vector.html#aee58c48c57d6575064f1dd9a66077fad">operations_research::glop::SparseVector&lt; RowIndex, SparseColumnIterator &gt;::GetCoefficient</a></div><div class="ttdeci">Fractional GetCoefficient(EntryIndex i) const</div><div class="ttdef"><b>Definition:</b> <a href="sparse__vector_8h_source.html#l00349">sparse_vector.h:349</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_strict_i_t_i_vector_html_a967a5c081ad4195a30c78dc2c0bcabf5"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_strict_i_t_i_vector.html#a967a5c081ad4195a30c78dc2c0bcabf5">operations_research::glop::StrictITIVector::size</a></div><div class="ttdeci">IntType size() const</div><div class="ttdef"><b>Definition:</b> <a href="lp__types_8h_source.html#l00280">lp_types.h:280</a></div></div>
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_vector_iterator_html"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_vector_iterator.html">operations_research::glop::VectorIterator</a></div><div class="ttdef"><b>Definition:</b> <a href="lp__types_8h_source.html#l00360">lp_types.h:360</a></div></div>
<div class="ttc" id="ademon__profiler_8cc_html_ac072af30c4ffbc834bb4c681f6ecb514"><div class="ttname"><a href="demon__profiler_8cc.html#ac072af30c4ffbc834bb4c681f6ecb514">value</a></div><div class="ttdeci">int64_t value</div><div class="ttdef"><b>Definition:</b> <a href="demon__profiler_8cc_source.html#l00044">demon_profiler.cc:44</a></div></div>
<div class="ttc" id="agscip__solver_8cc_html_aa59e74cc299dbf75fa6e2234dd0849a2"><div class="ttname"><a href="gscip__solver_8cc.html#aa59e74cc299dbf75fa6e2234dd0849a2">coefficients</a></div><div class="ttdeci">absl::Span&lt; const double &gt; coefficients</div><div class="ttdef"><b>Definition:</b> <a href="gscip__solver_8cc_source.html#l00129">gscip_solver.cc:129</a></div></div>
<div class="ttc" id="amarkowitz_8cc_html_aea35f36ba98d5bbd8d033382f50c9e52"><div class="ttname"><a href="markowitz_8cc.html#aea35f36ba98d5bbd8d033382f50c9e52">row</a></div><div class="ttdeci">RowIndex row</div><div class="ttdef"><b>Definition:</b> <a href="markowitz_8cc_source.html#l00182">markowitz.cc:182</a></div></div>
<div class="ttc" id="anamespaceoperations__research_1_1glop_html_a733947145e3e1631165b618b05c9ccb7"><div class="ttname"><a href="namespaceoperations__research_1_1glop.html#a733947145e3e1631165b618b05c9ccb7">operations_research::glop::Fractional</a></div><div class="ttdeci">double Fractional</div><div class="ttdef"><b>Definition:</b> <a href="lp__types_8h_source.html#l00078">lp_types.h:78</a></div></div>
<div class="ttc" id="anamespaceoperations__research_1_1glop_html_abbaca14cc7f5a0f3aaeb027fef37e0ca"><div class="ttname"><a href="namespaceoperations__research_1_1glop.html#abbaca14cc7f5a0f3aaeb027fef37e0ca">operations_research::glop::kNonPivotal</a></div><div class="ttdeci">const RowIndex kNonPivotal(-1)</div></div>
<div class="ttc" id="anamespaceoperations__research_1_1glop_html_ae5fa9e57c2d31b294195ed8a9e17bfac"><div class="ttname"><a href="namespaceoperations__research_1_1glop.html#ae5fa9e57c2d31b294195ed8a9e17bfac">operations_research::glop::DenseColumn</a></div><div class="ttdeci">StrictITIVector&lt; RowIndex, Fractional &gt; DenseColumn</div><div class="ttdef"><b>Definition:</b> <a href="lp__types_8h_source.html#l00332">lp_types.h:332</a></div></div>
<div class="ttc" id="anamespaceoperations__research_1_1glop_html_aec7177dd4fab33ada14a7689223fe89f"><div class="ttname"><a href="namespaceoperations__research_1_1glop.html#aec7177dd4fab33ada14a7689223fe89f">operations_research::glop::DenseBooleanColumn</a></div><div class="ttdeci">StrictITIVector&lt; RowIndex, bool &gt; DenseBooleanColumn</div><div class="ttdef"><b>Definition:</b> <a href="lp__types_8h_source.html#l00335">lp_types.h:335</a></div></div>
<div class="ttc" id="anamespaceoperations__research_html"><div class="ttname"><a href="namespaceoperations__research.html">operations_research</a></div><div class="ttdoc">Collection of objects used to extend the Constraint Solver library.</div><div class="ttdef"><b>Definition:</b> <a href="dense__doubly__linked__list_8h_source.html#l00021">dense_doubly_linked_list.h:21</a></div></div>
<div class="ttc" id="apack_8cc_html_a750b5d744c39a06bfb13e6eb010e35d0"><div class="ttname"><a href="pack_8cc.html#a750b5d744c39a06bfb13e6eb010e35d0">index</a></div><div class="ttdeci">int index</div><div class="ttdef"><b>Definition:</b> <a href="pack_8cc_source.html#l00509">pack.cc:509</a></div></div>
<div class="ttc" id="asparse__vector_8h_html"><div class="ttname"><a href="sparse__vector_8h.html">sparse_vector.h</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.18-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_a7cc1eeded8f693d0da6c729bc88c45a.html">ortools</a></li><li class="navelem"><a class="el" href="dir_903a7ff076ee7f01be86992fe717fc82.html">lp_data</a></li><li class="navelem"><a class="el" href="sparse__column_8h.html">sparse_column.h</a></li>
<li class="footer">Generated by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.9.2 </li>
</ul>
</div>
</body>
</html>