364 lines
76 KiB
HTML
364 lines
76 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.1"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>OR-Tools: scattered_vector.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
|
|
 <span id="projectnumber">8.2</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.9.1 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "search",false,'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:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(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:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(document).ready(function(){initNavTree('scattered__vector_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">scattered_vector.h</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="scattered__vector_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Copyright 2010-2018 Google LLC</span></div>
|
|
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// Licensed under the Apache License, Version 2.0 (the "License");</span></div>
|
|
<div class="line"><a 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 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 name="l00005"></a><span class="lineno"> 5</span> <span class="comment">//</span></div>
|
|
<div class="line"><a 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 name="l00007"></a><span class="lineno"> 7</span> <span class="comment">//</span></div>
|
|
<div class="line"><a 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 name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// distributed under the License is distributed on an "AS IS" BASIS,</span></div>
|
|
<div class="line"><a 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 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 name="l00012"></a><span class="lineno"> 12</span> <span class="comment">// limitations under the License.</span></div>
|
|
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>  </div>
|
|
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#ifndef OR_TOOLS_LP_DATA_SCATTERED_VECTOR_H_</span></div>
|
|
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#define OR_TOOLS_LP_DATA_SCATTERED_VECTOR_H_</span></div>
|
|
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  </div>
|
|
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include <cmath></span></div>
|
|
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include <limits></span></div>
|
|
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  </div>
|
|
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include "<a class="code" href="basictypes_8h.html">ortools/base/basictypes.h</a>"</span></div>
|
|
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include "<a class="code" href="int__type_8h.html">ortools/base/int_type.h</a>"</span></div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include "<a class="code" href="base_2logging_8h.html">ortools/base/logging.h</a>"</span></div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include "<a class="code" href="lp__types_8h.html">ortools/lp_data/lp_types.h</a>"</span></div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include "<a class="code" href="bitset_8h.html">ortools/util/bitset.h</a>"</span></div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  </div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="keyword">namespace </span><a class="code" href="namespaceoperations__research.html">operations_research</a> {</div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="keyword">namespace </span>glop {</div>
|
|
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  </div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="comment">// A class representing an entry of a scattered vector. The i-th nonzero</span></div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="comment">// element of the vector is assumed to be located at indices[i] and its value is</span></div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="comment">// coefficients[indices[i]], i.e., coefficients is a dense array.</span></div>
|
|
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="keyword">template</span> <<span class="keyword">typename</span> IndexType></div>
|
|
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_scattered_vector_entry.html"> 33</a></span> <span class="keyword">class </span><a class="code" href="classoperations__research_1_1glop_1_1_scattered_vector_entry.html">ScatteredVectorEntry</a> {</div>
|
|
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keyword">public</span>:</div>
|
|
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_scattered_vector_entry.html#a7147061a6e31f8592bee1a6f845df195"> 35</a></span>  <span class="keyword">using</span> <a class="code" href="classoperations__research_1_1glop_1_1_scattered_vector_entry.html#a7147061a6e31f8592bee1a6f845df195">Index</a> = IndexType;</div>
|
|
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  </div>
|
|
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_scattered_vector_entry.html#a70df641c5212f2d7cd26b31595daa5b2"> 37</a></span>  <a class="code" href="classoperations__research_1_1glop_1_1_scattered_vector_entry.html#a7147061a6e31f8592bee1a6f845df195">Index</a> <a class="code" href="classoperations__research_1_1glop_1_1_scattered_vector_entry.html#a70df641c5212f2d7cd26b31595daa5b2">index</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classoperations__research_1_1glop_1_1_scattered_vector_entry.html#af07d83f6746e367a50ed1d3d182015a1">index_</a>[<a class="code" href="classoperations__research_1_1glop_1_1_scattered_vector_entry.html#a551138be96f32581e2236d2468384adf">i_</a>.value()]; }</div>
|
|
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_scattered_vector_entry.html#a8d1325f6bfc62504f70bb527af18bbd8"> 38</a></span>  <a class="code" href="namespaceoperations__research_1_1glop.html#a733947145e3e1631165b618b05c9ccb7">Fractional</a> <a class="code" href="classoperations__research_1_1glop_1_1_scattered_vector_entry.html#a8d1325f6bfc62504f70bb527af18bbd8">coefficient</a>()<span class="keyword"> const </span>{</div>
|
|
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keywordflow">return</span> <a class="code" href="classoperations__research_1_1glop_1_1_scattered_vector_entry.html#aa5073f3fbade604ea7ce5b99612b2778">coefficient_</a>[<a class="code" href="classoperations__research_1_1glop_1_1_scattered_vector_entry.html#af07d83f6746e367a50ed1d3d182015a1">index_</a>[<a class="code" href="classoperations__research_1_1glop_1_1_scattered_vector_entry.html#a551138be96f32581e2236d2468384adf">i_</a>.value()].value()];</div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  }</div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  </div>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="keyword">protected</span>:</div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_scattered_vector_entry.html#a4935ccdae91c8a4748a85d75066a7ad4"> 43</a></span>  <a class="code" href="classoperations__research_1_1glop_1_1_scattered_vector_entry.html#a4935ccdae91c8a4748a85d75066a7ad4">ScatteredVectorEntry</a>(<span class="keyword">const</span> <a class="code" href="classoperations__research_1_1glop_1_1_scattered_vector_entry.html#a7147061a6e31f8592bee1a6f845df195">Index</a>* indices, <span class="keyword">const</span> <a class="code" href="namespaceoperations__research_1_1glop.html#a733947145e3e1631165b618b05c9ccb7">Fractional</a>* <a class="code" href="sat_2lp__utils_8cc.html#ab1734711414da2e668957d24a41b1ddf">coefficients</a>,</div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  EntryIndex i)</div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  : <a class="code" href="classoperations__research_1_1glop_1_1_scattered_vector_entry.html#a551138be96f32581e2236d2468384adf">i_</a>(i), <a class="code" href="classoperations__research_1_1glop_1_1_scattered_vector_entry.html#af07d83f6746e367a50ed1d3d182015a1">index_</a>(indices), <a class="code" href="classoperations__research_1_1glop_1_1_scattered_vector_entry.html#aa5073f3fbade604ea7ce5b99612b2778">coefficient_</a>(<a class="code" href="sat_2lp__utils_8cc.html#ab1734711414da2e668957d24a41b1ddf">coefficients</a>) {}</div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  </div>
|
|
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_scattered_vector_entry.html#a551138be96f32581e2236d2468384adf"> 47</a></span>  EntryIndex <a class="code" href="classoperations__research_1_1glop_1_1_scattered_vector_entry.html#a551138be96f32581e2236d2468384adf">i_</a>;</div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_scattered_vector_entry.html#af07d83f6746e367a50ed1d3d182015a1"> 48</a></span>  <span class="keyword">const</span> <a class="code" href="classoperations__research_1_1glop_1_1_scattered_vector_entry.html#a7147061a6e31f8592bee1a6f845df195">Index</a>* <a class="code" href="classoperations__research_1_1glop_1_1_scattered_vector_entry.html#af07d83f6746e367a50ed1d3d182015a1">index_</a>;</div>
|
|
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_scattered_vector_entry.html#aa5073f3fbade604ea7ce5b99612b2778"> 49</a></span>  <span class="keyword">const</span> <a class="code" href="namespaceoperations__research_1_1glop.html#a733947145e3e1631165b618b05c9ccb7">Fractional</a>* <a class="code" href="classoperations__research_1_1glop_1_1_scattered_vector_entry.html#aa5073f3fbade604ea7ce5b99612b2778">coefficient_</a>;</div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> };</div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  </div>
|
|
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="comment">// A simple struct that contains a DenseVector and its non-zero indices.</span></div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="comment">// TODO(user): This should be changed from struct to class.</span></div>
|
|
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="keyword">template</span> <<span class="keyword">typename</span> <a class="code" href="namespaceoperations__research_1_1glop.html#abec9e934a51aa2ab519684cc0f446a41">Index</a>,</div>
|
|
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keyword">typename</span> Iterator = <a class="code" href="classoperations__research_1_1glop_1_1_vector_iterator.html">VectorIterator<ScatteredVectorEntry<Index></a>>></div>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="structoperations__research_1_1glop_1_1_scattered_vector.html"> 56</a></span> <span class="keyword">struct </span><a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html">ScatteredVector</a> {</div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="structoperations__research_1_1glop_1_1_scattered_vector.html#ae0473e18a367af671dc3f08063c80da4"> 57</a></span>  <a class="code" href="classoperations__research_1_1glop_1_1_strict_i_t_i_vector.html">StrictITIVector<Index, Fractional></a> <a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#ae0473e18a367af671dc3f08063c80da4">values</a>;</div>
|
|
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  </div>
|
|
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="comment">// This can be left empty in which case we just have the dense representation</span></div>
|
|
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="comment">// above. Otherwise, it should always be a superset of the actual non-zeros.</span></div>
|
|
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="structoperations__research_1_1glop_1_1_scattered_vector.html#a56e67c2fc5b21fd62d8776fa4b149ce6"> 61</a></span>  <span class="keywordtype">bool</span> <a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#a56e67c2fc5b21fd62d8776fa4b149ce6">non_zeros_are_sorted</a> = <span class="keyword">false</span>;</div>
|
|
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="structoperations__research_1_1glop_1_1_scattered_vector.html#ac146d47daa294f7e6546c7569c9c881b"> 62</a></span>  std::vector<Index> <a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#ac146d47daa294f7e6546c7569c9c881b">non_zeros</a>;</div>
|
|
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  </div>
|
|
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="comment">// Temporary vector used in some sparse computation on the ScatteredVector.</span></div>
|
|
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="comment">// True indicates a possible non-zero value. Note that its state is not always</span></div>
|
|
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="comment">// consistent.</span></div>
|
|
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="structoperations__research_1_1glop_1_1_scattered_vector.html#ac194aeeb3d13767546d461312169d86f"> 67</a></span>  <a class="code" href="classoperations__research_1_1glop_1_1_strict_i_t_i_vector.html">StrictITIVector<Index, bool></a> <a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#ac194aeeb3d13767546d461312169d86f">is_non_zero</a>;</div>
|
|
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  </div>
|
|
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="comment">// In many cases there is a choice between treating the ScatteredVector as</span></div>
|
|
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="comment">// dense or as sparse. By default, dense algorithms are used when the</span></div>
|
|
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="comment">// proportion of non-zero entries is greater than</span></div>
|
|
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="comment">// kDefaultRatioForUsingDenseIteration.</span></div>
|
|
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="comment">//</span></div>
|
|
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="comment">// TODO(user): The constant should depend on what algorithm is used. Clearing</span></div>
|
|
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="comment">// a dense vector is a lot more efficient than doing more complex stuff. Clean</span></div>
|
|
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="comment">// this up by extracting all the currently used constants in one place with</span></div>
|
|
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="comment">// meaningful names.</span></div>
|
|
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="structoperations__research_1_1glop_1_1_scattered_vector.html#a7d3dd252fa8d3ca12419f32274ccbf6f"> 78</a></span>  constexpr <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">double</span> <a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#a7d3dd252fa8d3ca12419f32274ccbf6f">kDefaultRatioForUsingDenseIteration</a> = 0.8;</div>
|
|
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  </div>
|
|
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="structoperations__research_1_1glop_1_1_scattered_vector.html#ae2e345240a7ff49b7c5c03806fa398c5"> 80</a></span>  <a class="code" href="namespaceoperations__research_1_1glop.html#a733947145e3e1631165b618b05c9ccb7">Fractional</a> <a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#ae2e345240a7ff49b7c5c03806fa398c5">operator[]</a>(<a class="code" href="namespaceoperations__research_1_1glop.html#abec9e934a51aa2ab519684cc0f446a41">Index</a> <a class="code" href="pack_8cc.html#a750b5d744c39a06bfb13e6eb010e35d0">index</a>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#ae0473e18a367af671dc3f08063c80da4">values</a>[<a class="code" href="pack_8cc.html#a750b5d744c39a06bfb13e6eb010e35d0">index</a>]; }</div>
|
|
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="structoperations__research_1_1glop_1_1_scattered_vector.html#abc5e3ed39a7944cd8e89f430851f7ad0"> 81</a></span>  <a class="code" href="namespaceoperations__research_1_1glop.html#a733947145e3e1631165b618b05c9ccb7">Fractional</a>& <a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#abc5e3ed39a7944cd8e89f430851f7ad0">operator[]</a>(<a class="code" href="namespaceoperations__research_1_1glop.html#abec9e934a51aa2ab519684cc0f446a41">Index</a> <a class="code" href="pack_8cc.html#a750b5d744c39a06bfb13e6eb010e35d0">index</a>) { <span class="keywordflow">return</span> <a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#ae0473e18a367af671dc3f08063c80da4">values</a>[<a class="code" href="pack_8cc.html#a750b5d744c39a06bfb13e6eb010e35d0">index</a>]; }</div>
|
|
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  </div>
|
|
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="comment">// The iterator syntax for (auto entry : v) where v is a ScatteredVector only</span></div>
|
|
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="comment">// works when non_zeros is populated (i.e., when the vector is treated as</span></div>
|
|
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="comment">// sparse).</span></div>
|
|
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="structoperations__research_1_1glop_1_1_scattered_vector.html#a09dd208593b9721a30a83ed978ede577"> 86</a></span>  Iterator <a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#a09dd208593b9721a30a83ed978ede577">begin</a>()<span class="keyword"> const </span>{</div>
|
|
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <a class="code" href="base_2logging_8h.html#ae17f8119c108cf3070bad3449c7e0006">DCHECK</a>(!<a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#ac146d47daa294f7e6546c7569c9c881b">non_zeros</a>.empty() || <a class="code" href="namespaceoperations__research_1_1glop.html#a386d851d7c8b409205dd82d87e44f2fe">IsAllZero</a>(<a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#ae0473e18a367af671dc3f08063c80da4">values</a>));</div>
|
|
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keywordflow">return</span> Iterator(this->non_zeros.data(), this->values.data(), EntryIndex(0));</div>
|
|
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  }</div>
|
|
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="structoperations__research_1_1glop_1_1_scattered_vector.html#a62469461ed7c932afba3808f4da0fe3d"> 90</a></span>  Iterator <a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#a62469461ed7c932afba3808f4da0fe3d">end</a>()<span class="keyword"> const </span>{</div>
|
|
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keywordflow">return</span> Iterator(this->non_zeros.data(), this->values.data(),</div>
|
|
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  EntryIndex(<a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#ac146d47daa294f7e6546c7569c9c881b">non_zeros</a>.size()));</div>
|
|
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  }</div>
|
|
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  </div>
|
|
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="comment">// Add the given value to the vector at position index. This interface</span></div>
|
|
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="comment">// encapsulates usage of the "is_non_zero" array, which should not be</span></div>
|
|
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="comment">// explicitly referenced outside of this struct.</span></div>
|
|
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="structoperations__research_1_1glop_1_1_scattered_vector.html#a9bb4f0967311f0f79a279879c4d69678"> 98</a></span>  <span class="keywordtype">void</span> <a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#a9bb4f0967311f0f79a279879c4d69678">Add</a>(<a class="code" href="namespaceoperations__research_1_1glop.html#abec9e934a51aa2ab519684cc0f446a41">Index</a> <a class="code" href="pack_8cc.html#a750b5d744c39a06bfb13e6eb010e35d0">index</a>, <a class="code" href="namespaceoperations__research_1_1glop.html#a733947145e3e1631165b618b05c9ccb7">Fractional</a> <a class="code" href="demon__profiler_8cc.html#a21edc7ca4cc5802c8779d68556bc09cf">value</a>) {</div>
|
|
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#ae0473e18a367af671dc3f08063c80da4">values</a>[<a class="code" href="pack_8cc.html#a750b5d744c39a06bfb13e6eb010e35d0">index</a>] += <a class="code" href="demon__profiler_8cc.html#a21edc7ca4cc5802c8779d68556bc09cf">value</a>;</div>
|
|
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keywordflow">if</span> (!<a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#ac194aeeb3d13767546d461312169d86f">is_non_zero</a>[<a class="code" href="pack_8cc.html#a750b5d744c39a06bfb13e6eb010e35d0">index</a>] && <a class="code" href="demon__profiler_8cc.html#a21edc7ca4cc5802c8779d68556bc09cf">value</a> != 0.0) {</div>
|
|
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#ac194aeeb3d13767546d461312169d86f">is_non_zero</a>[<a class="code" href="pack_8cc.html#a750b5d744c39a06bfb13e6eb010e35d0">index</a>] = <span class="keyword">true</span>;</div>
|
|
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#ac146d47daa294f7e6546c7569c9c881b">non_zeros</a>.push_back(<a class="code" href="pack_8cc.html#a750b5d744c39a06bfb13e6eb010e35d0">index</a>);</div>
|
|
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#a56e67c2fc5b21fd62d8776fa4b149ce6">non_zeros_are_sorted</a> = <span class="keyword">false</span>;</div>
|
|
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  }</div>
|
|
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  }</div>
|
|
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  </div>
|
|
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <span class="comment">// Sorting the non-zeros is not always needed, but it allows us to have</span></div>
|
|
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="comment">// exactly the same behavior while using a sparse iteration or a dense one. So</span></div>
|
|
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="comment">// we always do it after a Solve().</span></div>
|
|
<div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="structoperations__research_1_1glop_1_1_scattered_vector.html#a338e6419a77aec6ea4340687c44f08f0"> 110</a></span>  <span class="keywordtype">void</span> <a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#a338e6419a77aec6ea4340687c44f08f0">SortNonZerosIfNeeded</a>() {</div>
|
|
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="keywordflow">if</span> (!<a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#a56e67c2fc5b21fd62d8776fa4b149ce6">non_zeros_are_sorted</a>) {</div>
|
|
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  std::sort(<a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#ac146d47daa294f7e6546c7569c9c881b">non_zeros</a>.begin(), <a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#ac146d47daa294f7e6546c7569c9c881b">non_zeros</a>.end());</div>
|
|
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#a56e67c2fc5b21fd62d8776fa4b149ce6">non_zeros_are_sorted</a> = <span class="keyword">true</span>;</div>
|
|
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  }</div>
|
|
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  }</div>
|
|
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  </div>
|
|
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <span class="comment">// Returns true if it is more advantageous to use a dense iteration rather</span></div>
|
|
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="comment">// than using the non-zeros positions.</span></div>
|
|
<div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="structoperations__research_1_1glop_1_1_scattered_vector.html#a73934bd40690bdc3cbe36d6fbb0ecad5"> 119</a></span>  <span class="keywordtype">bool</span> <a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#a73934bd40690bdc3cbe36d6fbb0ecad5">ShouldUseDenseIteration</a>(</div>
|
|
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="keywordtype">double</span> ratio_for_using_dense_representation)<span class="keyword"> const </span>{</div>
|
|
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="keywordflow">if</span> (<a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#ac146d47daa294f7e6546c7569c9c881b">non_zeros</a>.empty()) <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
|
|
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="keywordflow">return</span> <span class="keyword">static_cast<</span><span class="keywordtype">double</span><span class="keyword">></span>(<a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#ac146d47daa294f7e6546c7569c9c881b">non_zeros</a>.size()) ></div>
|
|
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  ratio_for_using_dense_representation *</div>
|
|
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="keyword">static_cast<</span><span class="keywordtype">double</span><span class="keyword">></span>(<a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#ae0473e18a367af671dc3f08063c80da4">values</a>.<a class="code" href="classoperations__research_1_1glop_1_1_strict_i_t_i_vector.html#a967a5c081ad4195a30c78dc2c0bcabf5">size</a>().value());</div>
|
|
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  }</div>
|
|
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  </div>
|
|
<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="structoperations__research_1_1glop_1_1_scattered_vector.html#aa1660c5702eb0d8890c365149f9fa68c"> 127</a></span>  <span class="keywordtype">bool</span> <a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#aa1660c5702eb0d8890c365149f9fa68c">ShouldUseDenseIteration</a>()<span class="keyword"> const </span>{</div>
|
|
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keywordflow">return</span> <a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#aa1660c5702eb0d8890c365149f9fa68c">ShouldUseDenseIteration</a>(<a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#a7d3dd252fa8d3ca12419f32274ccbf6f">kDefaultRatioForUsingDenseIteration</a>);</div>
|
|
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  }</div>
|
|
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  </div>
|
|
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="comment">// Efficiently clears the is_non_zero vector.</span></div>
|
|
<div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="structoperations__research_1_1glop_1_1_scattered_vector.html#a824e6b41b839a9f0ce98b10d3b84046d"> 132</a></span>  <span class="keywordtype">void</span> <a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#a824e6b41b839a9f0ce98b10d3b84046d">ClearSparseMask</a>() {</div>
|
|
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="keywordflow">if</span> (<a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#aa1660c5702eb0d8890c365149f9fa68c">ShouldUseDenseIteration</a>()) {</div>
|
|
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#ac194aeeb3d13767546d461312169d86f">is_non_zero</a>.<a class="code" href="classoperations__research_1_1glop_1_1_strict_i_t_i_vector.html#af8d7048738ceb4c753b040e6d29db79c">assign</a>(<a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#ae0473e18a367af671dc3f08063c80da4">values</a>.<a class="code" href="classoperations__research_1_1glop_1_1_strict_i_t_i_vector.html#a967a5c081ad4195a30c78dc2c0bcabf5">size</a>(), <span class="keyword">false</span>);</div>
|
|
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  } <span class="keywordflow">else</span> {</div>
|
|
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#ac194aeeb3d13767546d461312169d86f">is_non_zero</a>.<a class="code" href="classoperations__research_1_1glop_1_1_strict_i_t_i_vector.html#a64b6b04f3a519d2c61d49daaa88bf06e">resize</a>(<a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#ae0473e18a367af671dc3f08063c80da4">values</a>.<a class="code" href="classoperations__research_1_1glop_1_1_strict_i_t_i_vector.html#a967a5c081ad4195a30c78dc2c0bcabf5">size</a>(), <span class="keyword">false</span>);</div>
|
|
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> <a class="code" href="namespaceoperations__research_1_1glop.html#abec9e934a51aa2ab519684cc0f446a41">Index</a> <a class="code" href="pack_8cc.html#a750b5d744c39a06bfb13e6eb010e35d0">index</a> : <a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#ac146d47daa294f7e6546c7569c9c881b">non_zeros</a>) {</div>
|
|
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#ac194aeeb3d13767546d461312169d86f">is_non_zero</a>[<a class="code" href="pack_8cc.html#a750b5d744c39a06bfb13e6eb010e35d0">index</a>] = <span class="keyword">false</span>;</div>
|
|
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  }</div>
|
|
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <a class="code" href="base_2logging_8h.html#ae17f8119c108cf3070bad3449c7e0006">DCHECK</a>(<a class="code" href="namespaceoperations__research_1_1glop.html#a66f88d7a4bcc601c81b7d694bcfae840">IsAllFalse</a>(<a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#ac194aeeb3d13767546d461312169d86f">is_non_zero</a>));</div>
|
|
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  }</div>
|
|
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  }</div>
|
|
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  </div>
|
|
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <span class="comment">// Update the is_non_zero vector to be consistent with the non_zeros vector.</span></div>
|
|
<div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="structoperations__research_1_1glop_1_1_scattered_vector.html#a582acb7e40cf171c7f0ab27aacd67823"> 145</a></span>  <span class="keywordtype">void</span> <a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#a582acb7e40cf171c7f0ab27aacd67823">RepopulateSparseMask</a>() {</div>
|
|
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#a824e6b41b839a9f0ce98b10d3b84046d">ClearSparseMask</a>();</div>
|
|
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> <a class="code" href="namespaceoperations__research_1_1glop.html#abec9e934a51aa2ab519684cc0f446a41">Index</a> <a class="code" href="pack_8cc.html#a750b5d744c39a06bfb13e6eb010e35d0">index</a> : <a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#ac146d47daa294f7e6546c7569c9c881b">non_zeros</a>) <a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#ac194aeeb3d13767546d461312169d86f">is_non_zero</a>[<a class="code" href="pack_8cc.html#a750b5d744c39a06bfb13e6eb010e35d0">index</a>] = <span class="keyword">true</span>;</div>
|
|
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  }</div>
|
|
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  </div>
|
|
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="comment">// If the proportion of non-zero entries is too large, clears the vector of</span></div>
|
|
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <span class="comment">// non-zeros.</span></div>
|
|
<div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="structoperations__research_1_1glop_1_1_scattered_vector.html#aa01dd1032c527cbadf34ea39a02f799e"> 152</a></span>  <span class="keywordtype">void</span> <a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#aa01dd1032c527cbadf34ea39a02f799e">ClearNonZerosIfTooDense</a>(<span class="keywordtype">double</span> ratio_for_using_dense_representation) {</div>
|
|
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <span class="keywordflow">if</span> (<a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#aa1660c5702eb0d8890c365149f9fa68c">ShouldUseDenseIteration</a>(ratio_for_using_dense_representation)) {</div>
|
|
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#a824e6b41b839a9f0ce98b10d3b84046d">ClearSparseMask</a>();</div>
|
|
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#ac146d47daa294f7e6546c7569c9c881b">non_zeros</a>.clear();</div>
|
|
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  }</div>
|
|
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  }</div>
|
|
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  </div>
|
|
<div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="structoperations__research_1_1glop_1_1_scattered_vector.html#a5cc25bd734fdc7420783630ff327ca0e"> 159</a></span>  <span class="keywordtype">void</span> <a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#a5cc25bd734fdc7420783630ff327ca0e">ClearNonZerosIfTooDense</a>() {</div>
|
|
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#a5cc25bd734fdc7420783630ff327ca0e">ClearNonZerosIfTooDense</a>(<a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html#a7d3dd252fa8d3ca12419f32274ccbf6f">kDefaultRatioForUsingDenseIteration</a>);</div>
|
|
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  }</div>
|
|
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span> };</div>
|
|
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  </div>
|
|
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span> <span class="comment">// Specializations used in the code.</span></div>
|
|
<div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_scattered_column_entry.html"> 165</a></span> <span class="keyword">class </span><a class="code" href="classoperations__research_1_1glop_1_1_scattered_column_entry.html">ScatteredColumnEntry</a> : <span class="keyword">public</span> <a class="code" href="classoperations__research_1_1glop_1_1_scattered_vector_entry.html">ScatteredVectorEntry</a><RowIndex> {</div>
|
|
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <span class="keyword">public</span>:</div>
|
|
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <span class="comment">// Returns the row of the current entry.</span></div>
|
|
<div class="line"><a name="l00168"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_scattered_column_entry.html#a9c4479749075080a547bbf63c28f1d83"> 168</a></span>  RowIndex <a class="code" href="classoperations__research_1_1glop_1_1_scattered_column_entry.html#a9c4479749075080a547bbf63c28f1d83">row</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classoperations__research_1_1glop_1_1_scattered_vector_entry.html#a70df641c5212f2d7cd26b31595daa5b2">index</a>(); }</div>
|
|
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  </div>
|
|
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  <span class="keyword">protected</span>:</div>
|
|
<div class="line"><a name="l00171"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_scattered_column_entry.html#adc012db9a0b6b41343eda804530473b9"> 171</a></span>  <a class="code" href="classoperations__research_1_1glop_1_1_scattered_column_entry.html#adc012db9a0b6b41343eda804530473b9">ScatteredColumnEntry</a>(<span class="keyword">const</span> RowIndex* indices, <span class="keyword">const</span> <a class="code" href="namespaceoperations__research_1_1glop.html#a733947145e3e1631165b618b05c9ccb7">Fractional</a>* <a class="code" href="sat_2lp__utils_8cc.html#ab1734711414da2e668957d24a41b1ddf">coefficients</a>,</div>
|
|
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  EntryIndex i)</div>
|
|
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  : <a class="code" href="classoperations__research_1_1glop_1_1_scattered_vector_entry.html">ScatteredVectorEntry</a><RowIndex>(indices, <a class="code" href="sat_2lp__utils_8cc.html#ab1734711414da2e668957d24a41b1ddf">coefficients</a>, i) {}</div>
|
|
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span> };</div>
|
|
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  </div>
|
|
<div class="line"><a name="l00176"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_scattered_row_entry.html"> 176</a></span> <span class="keyword">class </span><a class="code" href="classoperations__research_1_1glop_1_1_scattered_row_entry.html">ScatteredRowEntry</a> : <span class="keyword">public</span> <a class="code" href="classoperations__research_1_1glop_1_1_scattered_vector_entry.html">ScatteredVectorEntry</a><ColIndex> {</div>
|
|
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <span class="keyword">public</span>:</div>
|
|
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <span class="comment">// Returns the column of the current entry.</span></div>
|
|
<div class="line"><a name="l00179"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_scattered_row_entry.html#ad48fe3cb1dda2025731c6a5f768a7059"> 179</a></span>  ColIndex <a class="code" href="classoperations__research_1_1glop_1_1_scattered_row_entry.html#ad48fe3cb1dda2025731c6a5f768a7059">column</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classoperations__research_1_1glop_1_1_scattered_vector_entry.html#a70df641c5212f2d7cd26b31595daa5b2">index</a>(); }</div>
|
|
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  </div>
|
|
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  <span class="keyword">protected</span>:</div>
|
|
<div class="line"><a name="l00182"></a><span class="lineno"><a class="line" href="classoperations__research_1_1glop_1_1_scattered_row_entry.html#adc411e01e1769f3e90cfad1fc3fb00a1"> 182</a></span>  <a class="code" href="classoperations__research_1_1glop_1_1_scattered_row_entry.html#adc411e01e1769f3e90cfad1fc3fb00a1">ScatteredRowEntry</a>(<span class="keyword">const</span> ColIndex* indices, <span class="keyword">const</span> <a class="code" href="namespaceoperations__research_1_1glop.html#a733947145e3e1631165b618b05c9ccb7">Fractional</a>* <a class="code" href="sat_2lp__utils_8cc.html#ab1734711414da2e668957d24a41b1ddf">coefficients</a>,</div>
|
|
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  EntryIndex i)</div>
|
|
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  : <a class="code" href="classoperations__research_1_1glop_1_1_scattered_vector_entry.html">ScatteredVectorEntry</a><ColIndex>(indices, <a class="code" href="sat_2lp__utils_8cc.html#ab1734711414da2e668957d24a41b1ddf">coefficients</a>, i) {}</div>
|
|
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span> };</div>
|
|
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  </div>
|
|
<div class="line"><a name="l00187"></a><span class="lineno"><a class="line" href="namespaceoperations__research_1_1glop.html#aa22f47d4ea7ed9248f2bc9a17e71bee0"> 187</a></span> <span class="keyword">using</span> <a class="code" href="classoperations__research_1_1glop_1_1_vector_iterator.html">ScatteredColumnIterator</a> = <a class="code" href="classoperations__research_1_1glop_1_1_vector_iterator.html">VectorIterator<ScatteredColumnEntry></a>;</div>
|
|
<div class="line"><a name="l00188"></a><span class="lineno"><a class="line" href="namespaceoperations__research_1_1glop.html#ab0c3745c1147f5e2a210b10acdaecf14"> 188</a></span> <span class="keyword">using</span> <a class="code" href="classoperations__research_1_1glop_1_1_vector_iterator.html">ScatteredRowIterator</a> = <a class="code" href="classoperations__research_1_1glop_1_1_vector_iterator.html">VectorIterator<ScatteredRowEntry></a>;</div>
|
|
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  </div>
|
|
<div class="line"><a name="l00190"></a><span class="lineno"><a class="line" href="structoperations__research_1_1glop_1_1_scattered_column.html"> 190</a></span> <span class="keyword">struct </span><a class="code" href="structoperations__research_1_1glop_1_1_scattered_column.html">ScatteredColumn</a></div>
|
|
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  : <span class="keyword">public</span> <a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html">ScatteredVector</a><RowIndex, ScatteredColumnIterator> {};</div>
|
|
<div class="line"><a name="l00192"></a><span class="lineno"><a class="line" href="structoperations__research_1_1glop_1_1_scattered_row.html"> 192</a></span> <span class="keyword">struct </span><a class="code" href="structoperations__research_1_1glop_1_1_scattered_row.html">ScatteredRow</a> : <span class="keyword">public</span> <a class="code" href="structoperations__research_1_1glop_1_1_scattered_vector.html">ScatteredVector</a><ColIndex, ScatteredRowIterator> {};</div>
|
|
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  </div>
|
|
<div class="line"><a name="l00194"></a><span class="lineno"><a class="line" href="namespaceoperations__research_1_1glop.html#af9f7793c79c67e9da1ce97c9e49de200"> 194</a></span> <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="structoperations__research_1_1glop_1_1_scattered_row.html">ScatteredRow</a>& <a class="code" href="namespaceoperations__research_1_1glop.html#af9f7793c79c67e9da1ce97c9e49de200">TransposedView</a>(<span class="keyword">const</span> <a class="code" href="structoperations__research_1_1glop_1_1_scattered_column.html">ScatteredColumn</a>& c) {</div>
|
|
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <span class="keywordflow">return</span> <span class="keyword">reinterpret_cast<</span><span class="keyword">const </span><a class="code" href="structoperations__research_1_1glop_1_1_scattered_row.html">ScatteredRow</a>&<span class="keyword">></span>(c);</div>
|
|
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span> }</div>
|
|
<div class="line"><a name="l00197"></a><span class="lineno"><a class="line" href="namespaceoperations__research_1_1glop.html#a6d3c86a7f6e23a4170be83a44568693b"> 197</a></span> <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="structoperations__research_1_1glop_1_1_scattered_column.html">ScatteredColumn</a>& <a class="code" href="namespaceoperations__research_1_1glop.html#af9f7793c79c67e9da1ce97c9e49de200">TransposedView</a>(<span class="keyword">const</span> <a class="code" href="structoperations__research_1_1glop_1_1_scattered_row.html">ScatteredRow</a>& r) {</div>
|
|
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  <span class="keywordflow">return</span> <span class="keyword">reinterpret_cast<</span><span class="keyword">const </span><a class="code" href="structoperations__research_1_1glop_1_1_scattered_column.html">ScatteredColumn</a>&<span class="keyword">></span>(r);</div>
|
|
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span> }</div>
|
|
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  </div>
|
|
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span> } <span class="comment">// namespace glop</span></div>
|
|
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span> } <span class="comment">// namespace operations_research</span></div>
|
|
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  </div>
|
|
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span> <span class="preprocessor">#endif </span><span class="comment">// OR_TOOLS_LP_DATA_SCATTERED_VECTOR_H_</span></div>
|
|
<div class="ttc" id="abase_2logging_8h_html"><div class="ttname"><a href="base_2logging_8h.html">logging.h</a></div></div>
|
|
<div class="ttc" id="abase_2logging_8h_html_ae17f8119c108cf3070bad3449c7e0006"><div class="ttname"><a href="base_2logging_8h.html#ae17f8119c108cf3070bad3449c7e0006">DCHECK</a></div><div class="ttdeci">#define DCHECK(condition)</div><div class="ttdef"><b>Definition:</b> <a href="base_2logging_8h_source.html#l00884">base/logging.h:884</a></div></div>
|
|
<div class="ttc" id="abasictypes_8h_html"><div class="ttname"><a href="basictypes_8h.html">basictypes.h</a></div></div>
|
|
<div class="ttc" id="abitset_8h_html"><div class="ttname"><a href="bitset_8h.html">bitset.h</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_scattered_column_entry_html"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_scattered_column_entry.html">operations_research::glop::ScatteredColumnEntry</a></div><div class="ttdef"><b>Definition:</b> <a href="scattered__vector_8h_source.html#l00165">scattered_vector.h:165</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_scattered_column_entry_html_a9c4479749075080a547bbf63c28f1d83"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_scattered_column_entry.html#a9c4479749075080a547bbf63c28f1d83">operations_research::glop::ScatteredColumnEntry::row</a></div><div class="ttdeci">RowIndex row() const</div><div class="ttdef"><b>Definition:</b> <a href="scattered__vector_8h_source.html#l00168">scattered_vector.h:168</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_scattered_column_entry_html_adc012db9a0b6b41343eda804530473b9"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_scattered_column_entry.html#adc012db9a0b6b41343eda804530473b9">operations_research::glop::ScatteredColumnEntry::ScatteredColumnEntry</a></div><div class="ttdeci">ScatteredColumnEntry(const RowIndex *indices, const Fractional *coefficients, EntryIndex i)</div><div class="ttdef"><b>Definition:</b> <a href="scattered__vector_8h_source.html#l00171">scattered_vector.h:171</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_scattered_row_entry_html"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_scattered_row_entry.html">operations_research::glop::ScatteredRowEntry</a></div><div class="ttdef"><b>Definition:</b> <a href="scattered__vector_8h_source.html#l00176">scattered_vector.h:176</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_scattered_row_entry_html_ad48fe3cb1dda2025731c6a5f768a7059"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_scattered_row_entry.html#ad48fe3cb1dda2025731c6a5f768a7059">operations_research::glop::ScatteredRowEntry::column</a></div><div class="ttdeci">ColIndex column() const</div><div class="ttdef"><b>Definition:</b> <a href="scattered__vector_8h_source.html#l00179">scattered_vector.h:179</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_scattered_row_entry_html_adc411e01e1769f3e90cfad1fc3fb00a1"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_scattered_row_entry.html#adc411e01e1769f3e90cfad1fc3fb00a1">operations_research::glop::ScatteredRowEntry::ScatteredRowEntry</a></div><div class="ttdeci">ScatteredRowEntry(const ColIndex *indices, const Fractional *coefficients, EntryIndex i)</div><div class="ttdef"><b>Definition:</b> <a href="scattered__vector_8h_source.html#l00182">scattered_vector.h:182</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_scattered_vector_entry_html"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_scattered_vector_entry.html">operations_research::glop::ScatteredVectorEntry</a></div><div class="ttdef"><b>Definition:</b> <a href="scattered__vector_8h_source.html#l00033">scattered_vector.h:33</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_scattered_vector_entry_html_a4935ccdae91c8a4748a85d75066a7ad4"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_scattered_vector_entry.html#a4935ccdae91c8a4748a85d75066a7ad4">operations_research::glop::ScatteredVectorEntry::ScatteredVectorEntry</a></div><div class="ttdeci">ScatteredVectorEntry(const Index *indices, const Fractional *coefficients, EntryIndex i)</div><div class="ttdef"><b>Definition:</b> <a href="scattered__vector_8h_source.html#l00043">scattered_vector.h:43</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_scattered_vector_entry_html_a551138be96f32581e2236d2468384adf"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_scattered_vector_entry.html#a551138be96f32581e2236d2468384adf">operations_research::glop::ScatteredVectorEntry::i_</a></div><div class="ttdeci">EntryIndex i_</div><div class="ttdef"><b>Definition:</b> <a href="scattered__vector_8h_source.html#l00047">scattered_vector.h:47</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_scattered_vector_entry_html_a70df641c5212f2d7cd26b31595daa5b2"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_scattered_vector_entry.html#a70df641c5212f2d7cd26b31595daa5b2">operations_research::glop::ScatteredVectorEntry::index</a></div><div class="ttdeci">Index index() const</div><div class="ttdef"><b>Definition:</b> <a href="scattered__vector_8h_source.html#l00037">scattered_vector.h:37</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_scattered_vector_entry_html_a7147061a6e31f8592bee1a6f845df195"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_scattered_vector_entry.html#a7147061a6e31f8592bee1a6f845df195">operations_research::glop::ScatteredVectorEntry::Index</a></div><div class="ttdeci">IndexType Index</div><div class="ttdef"><b>Definition:</b> <a href="scattered__vector_8h_source.html#l00035">scattered_vector.h:35</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_scattered_vector_entry_html_a8d1325f6bfc62504f70bb527af18bbd8"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_scattered_vector_entry.html#a8d1325f6bfc62504f70bb527af18bbd8">operations_research::glop::ScatteredVectorEntry::coefficient</a></div><div class="ttdeci">Fractional coefficient() const</div><div class="ttdef"><b>Definition:</b> <a href="scattered__vector_8h_source.html#l00038">scattered_vector.h:38</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_scattered_vector_entry_html_aa5073f3fbade604ea7ce5b99612b2778"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_scattered_vector_entry.html#aa5073f3fbade604ea7ce5b99612b2778">operations_research::glop::ScatteredVectorEntry::coefficient_</a></div><div class="ttdeci">const Fractional * coefficient_</div><div class="ttdef"><b>Definition:</b> <a href="scattered__vector_8h_source.html#l00049">scattered_vector.h:49</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_scattered_vector_entry_html_af07d83f6746e367a50ed1d3d182015a1"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_scattered_vector_entry.html#af07d83f6746e367a50ed1d3d182015a1">operations_research::glop::ScatteredVectorEntry::index_</a></div><div class="ttdeci">const Index * index_</div><div class="ttdef"><b>Definition:</b> <a href="scattered__vector_8h_source.html#l00048">scattered_vector.h:48</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_strict_i_t_i_vector_html"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_strict_i_t_i_vector.html">operations_research::glop::StrictITIVector< Index, Fractional ></a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_strict_i_t_i_vector_html_a64b6b04f3a519d2c61d49daaa88bf06e"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_strict_i_t_i_vector.html#a64b6b04f3a519d2c61d49daaa88bf06e">operations_research::glop::StrictITIVector::resize</a></div><div class="ttdeci">void resize(IntType size)</div><div class="ttdef"><b>Definition:</b> <a href="lp__types_8h_source.html#l00269">lp_types.h:269</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#l00276">lp_types.h:276</a></div></div>
|
|
<div class="ttc" id="aclassoperations__research_1_1glop_1_1_strict_i_t_i_vector_html_af8d7048738ceb4c753b040e6d29db79c"><div class="ttname"><a href="classoperations__research_1_1glop_1_1_strict_i_t_i_vector.html#af8d7048738ceb4c753b040e6d29db79c">operations_research::glop::StrictITIVector::assign</a></div><div class="ttdeci">void assign(IntType size, const T &v)</div><div class="ttdef"><b>Definition:</b> <a href="lp__types_8h_source.html#l00274">lp_types.h:274</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#l00356">lp_types.h:356</a></div></div>
|
|
<div class="ttc" id="ademon__profiler_8cc_html_a21edc7ca4cc5802c8779d68556bc09cf"><div class="ttname"><a href="demon__profiler_8cc.html#a21edc7ca4cc5802c8779d68556bc09cf">value</a></div><div class="ttdeci">int64 value</div><div class="ttdef"><b>Definition:</b> <a href="demon__profiler_8cc_source.html#l00043">demon_profiler.cc:43</a></div></div>
|
|
<div class="ttc" id="aint__type_8h_html"><div class="ttname"><a href="int__type_8h.html">int_type.h</a></div></div>
|
|
<div class="ttc" id="alp__types_8h_html"><div class="ttname"><a href="lp__types_8h.html">lp_types.h</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_1_1glop_html_a386d851d7c8b409205dd82d87e44f2fe"><div class="ttname"><a href="namespaceoperations__research_1_1glop.html#a386d851d7c8b409205dd82d87e44f2fe">operations_research::glop::IsAllZero</a></div><div class="ttdeci">bool IsAllZero(const Container &input)</div><div class="ttdef"><b>Definition:</b> <a href="lp__data_2lp__utils_8h_source.html#l00222">lp_data/lp_utils.h:222</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_1_1glop_html_a66f88d7a4bcc601c81b7d694bcfae840"><div class="ttname"><a href="namespaceoperations__research_1_1glop.html#a66f88d7a4bcc601c81b7d694bcfae840">operations_research::glop::IsAllFalse</a></div><div class="ttdeci">bool IsAllFalse(const BoolVector &v)</div><div class="ttdef"><b>Definition:</b> <a href="lp__data_2lp__utils_8h_source.html#l00231">lp_data/lp_utils.h:231</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#l00077">lp_types.h:77</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_1_1glop_html_abec9e934a51aa2ab519684cc0f446a41"><div class="ttname"><a href="namespaceoperations__research_1_1glop.html#abec9e934a51aa2ab519684cc0f446a41">operations_research::glop::Index</a></div><div class="ttdeci">int32 Index</div><div class="ttdef"><b>Definition:</b> <a href="lp__types_8h_source.html#l00037">lp_types.h:37</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_1_1glop_html_af9f7793c79c67e9da1ce97c9e49de200"><div class="ttname"><a href="namespaceoperations__research_1_1glop.html#af9f7793c79c67e9da1ce97c9e49de200">operations_research::glop::TransposedView</a></div><div class="ttdeci">const ScatteredRow & TransposedView(const ScatteredColumn &c)</div><div class="ttdef"><b>Definition:</b> <a href="scattered__vector_8h_source.html#l00194">scattered_vector.h:194</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">The vehicle routing library lets one model and solve generic vehicle routing problems ranging from th...</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#l00508">pack.cc:508</a></div></div>
|
|
<div class="ttc" id="asat_2lp__utils_8cc_html_ab1734711414da2e668957d24a41b1ddf"><div class="ttname"><a href="sat_2lp__utils_8cc.html#ab1734711414da2e668957d24a41b1ddf">coefficients</a></div><div class="ttdeci">std::vector< double > coefficients</div><div class="ttdef"><b>Definition:</b> <a href="sat_2lp__utils_8cc_source.html#l00496">sat/lp_utils.cc:496</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1glop_1_1_scattered_column_html"><div class="ttname"><a href="structoperations__research_1_1glop_1_1_scattered_column.html">operations_research::glop::ScatteredColumn</a></div><div class="ttdef"><b>Definition:</b> <a href="scattered__vector_8h_source.html#l00190">scattered_vector.h:191</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1glop_1_1_scattered_row_html"><div class="ttname"><a href="structoperations__research_1_1glop_1_1_scattered_row.html">operations_research::glop::ScatteredRow</a></div><div class="ttdef"><b>Definition:</b> <a href="scattered__vector_8h_source.html#l00192">scattered_vector.h:192</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1glop_1_1_scattered_vector_html"><div class="ttname"><a href="structoperations__research_1_1glop_1_1_scattered_vector.html">operations_research::glop::ScatteredVector</a></div><div class="ttdef"><b>Definition:</b> <a href="scattered__vector_8h_source.html#l00056">scattered_vector.h:56</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1glop_1_1_scattered_vector_html_a09dd208593b9721a30a83ed978ede577"><div class="ttname"><a href="structoperations__research_1_1glop_1_1_scattered_vector.html#a09dd208593b9721a30a83ed978ede577">operations_research::glop::ScatteredVector::begin</a></div><div class="ttdeci">Iterator begin() const</div><div class="ttdef"><b>Definition:</b> <a href="scattered__vector_8h_source.html#l00086">scattered_vector.h:86</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1glop_1_1_scattered_vector_html_a338e6419a77aec6ea4340687c44f08f0"><div class="ttname"><a href="structoperations__research_1_1glop_1_1_scattered_vector.html#a338e6419a77aec6ea4340687c44f08f0">operations_research::glop::ScatteredVector::SortNonZerosIfNeeded</a></div><div class="ttdeci">void SortNonZerosIfNeeded()</div><div class="ttdef"><b>Definition:</b> <a href="scattered__vector_8h_source.html#l00110">scattered_vector.h:110</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1glop_1_1_scattered_vector_html_a56e67c2fc5b21fd62d8776fa4b149ce6"><div class="ttname"><a href="structoperations__research_1_1glop_1_1_scattered_vector.html#a56e67c2fc5b21fd62d8776fa4b149ce6">operations_research::glop::ScatteredVector::non_zeros_are_sorted</a></div><div class="ttdeci">bool non_zeros_are_sorted</div><div class="ttdef"><b>Definition:</b> <a href="scattered__vector_8h_source.html#l00061">scattered_vector.h:61</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1glop_1_1_scattered_vector_html_a582acb7e40cf171c7f0ab27aacd67823"><div class="ttname"><a href="structoperations__research_1_1glop_1_1_scattered_vector.html#a582acb7e40cf171c7f0ab27aacd67823">operations_research::glop::ScatteredVector::RepopulateSparseMask</a></div><div class="ttdeci">void RepopulateSparseMask()</div><div class="ttdef"><b>Definition:</b> <a href="scattered__vector_8h_source.html#l00145">scattered_vector.h:145</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1glop_1_1_scattered_vector_html_a5cc25bd734fdc7420783630ff327ca0e"><div class="ttname"><a href="structoperations__research_1_1glop_1_1_scattered_vector.html#a5cc25bd734fdc7420783630ff327ca0e">operations_research::glop::ScatteredVector::ClearNonZerosIfTooDense</a></div><div class="ttdeci">void ClearNonZerosIfTooDense()</div><div class="ttdef"><b>Definition:</b> <a href="scattered__vector_8h_source.html#l00159">scattered_vector.h:159</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1glop_1_1_scattered_vector_html_a62469461ed7c932afba3808f4da0fe3d"><div class="ttname"><a href="structoperations__research_1_1glop_1_1_scattered_vector.html#a62469461ed7c932afba3808f4da0fe3d">operations_research::glop::ScatteredVector::end</a></div><div class="ttdeci">Iterator end() const</div><div class="ttdef"><b>Definition:</b> <a href="scattered__vector_8h_source.html#l00090">scattered_vector.h:90</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1glop_1_1_scattered_vector_html_a73934bd40690bdc3cbe36d6fbb0ecad5"><div class="ttname"><a href="structoperations__research_1_1glop_1_1_scattered_vector.html#a73934bd40690bdc3cbe36d6fbb0ecad5">operations_research::glop::ScatteredVector::ShouldUseDenseIteration</a></div><div class="ttdeci">bool ShouldUseDenseIteration(double ratio_for_using_dense_representation) const</div><div class="ttdef"><b>Definition:</b> <a href="scattered__vector_8h_source.html#l00119">scattered_vector.h:119</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1glop_1_1_scattered_vector_html_a7d3dd252fa8d3ca12419f32274ccbf6f"><div class="ttname"><a href="structoperations__research_1_1glop_1_1_scattered_vector.html#a7d3dd252fa8d3ca12419f32274ccbf6f">operations_research::glop::ScatteredVector::kDefaultRatioForUsingDenseIteration</a></div><div class="ttdeci">constexpr static const double kDefaultRatioForUsingDenseIteration</div><div class="ttdef"><b>Definition:</b> <a href="scattered__vector_8h_source.html#l00078">scattered_vector.h:78</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1glop_1_1_scattered_vector_html_a824e6b41b839a9f0ce98b10d3b84046d"><div class="ttname"><a href="structoperations__research_1_1glop_1_1_scattered_vector.html#a824e6b41b839a9f0ce98b10d3b84046d">operations_research::glop::ScatteredVector::ClearSparseMask</a></div><div class="ttdeci">void ClearSparseMask()</div><div class="ttdef"><b>Definition:</b> <a href="scattered__vector_8h_source.html#l00132">scattered_vector.h:132</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1glop_1_1_scattered_vector_html_a9bb4f0967311f0f79a279879c4d69678"><div class="ttname"><a href="structoperations__research_1_1glop_1_1_scattered_vector.html#a9bb4f0967311f0f79a279879c4d69678">operations_research::glop::ScatteredVector::Add</a></div><div class="ttdeci">void Add(Index index, Fractional value)</div><div class="ttdef"><b>Definition:</b> <a href="scattered__vector_8h_source.html#l00098">scattered_vector.h:98</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1glop_1_1_scattered_vector_html_aa01dd1032c527cbadf34ea39a02f799e"><div class="ttname"><a href="structoperations__research_1_1glop_1_1_scattered_vector.html#aa01dd1032c527cbadf34ea39a02f799e">operations_research::glop::ScatteredVector::ClearNonZerosIfTooDense</a></div><div class="ttdeci">void ClearNonZerosIfTooDense(double ratio_for_using_dense_representation)</div><div class="ttdef"><b>Definition:</b> <a href="scattered__vector_8h_source.html#l00152">scattered_vector.h:152</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1glop_1_1_scattered_vector_html_aa1660c5702eb0d8890c365149f9fa68c"><div class="ttname"><a href="structoperations__research_1_1glop_1_1_scattered_vector.html#aa1660c5702eb0d8890c365149f9fa68c">operations_research::glop::ScatteredVector::ShouldUseDenseIteration</a></div><div class="ttdeci">bool ShouldUseDenseIteration() const</div><div class="ttdef"><b>Definition:</b> <a href="scattered__vector_8h_source.html#l00127">scattered_vector.h:127</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1glop_1_1_scattered_vector_html_abc5e3ed39a7944cd8e89f430851f7ad0"><div class="ttname"><a href="structoperations__research_1_1glop_1_1_scattered_vector.html#abc5e3ed39a7944cd8e89f430851f7ad0">operations_research::glop::ScatteredVector::operator[]</a></div><div class="ttdeci">Fractional & operator[](Index index)</div><div class="ttdef"><b>Definition:</b> <a href="scattered__vector_8h_source.html#l00081">scattered_vector.h:81</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1glop_1_1_scattered_vector_html_ac146d47daa294f7e6546c7569c9c881b"><div class="ttname"><a href="structoperations__research_1_1glop_1_1_scattered_vector.html#ac146d47daa294f7e6546c7569c9c881b">operations_research::glop::ScatteredVector::non_zeros</a></div><div class="ttdeci">std::vector< Index > non_zeros</div><div class="ttdef"><b>Definition:</b> <a href="scattered__vector_8h_source.html#l00062">scattered_vector.h:62</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1glop_1_1_scattered_vector_html_ac194aeeb3d13767546d461312169d86f"><div class="ttname"><a href="structoperations__research_1_1glop_1_1_scattered_vector.html#ac194aeeb3d13767546d461312169d86f">operations_research::glop::ScatteredVector::is_non_zero</a></div><div class="ttdeci">StrictITIVector< Index, bool > is_non_zero</div><div class="ttdef"><b>Definition:</b> <a href="scattered__vector_8h_source.html#l00067">scattered_vector.h:67</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1glop_1_1_scattered_vector_html_ae0473e18a367af671dc3f08063c80da4"><div class="ttname"><a href="structoperations__research_1_1glop_1_1_scattered_vector.html#ae0473e18a367af671dc3f08063c80da4">operations_research::glop::ScatteredVector::values</a></div><div class="ttdeci">StrictITIVector< Index, Fractional > values</div><div class="ttdef"><b>Definition:</b> <a href="scattered__vector_8h_source.html#l00057">scattered_vector.h:57</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1glop_1_1_scattered_vector_html_ae2e345240a7ff49b7c5c03806fa398c5"><div class="ttname"><a href="structoperations__research_1_1glop_1_1_scattered_vector.html#ae2e345240a7ff49b7c5c03806fa398c5">operations_research::glop::ScatteredVector::operator[]</a></div><div class="ttdeci">Fractional operator[](Index index) const</div><div class="ttdef"><b>Definition:</b> <a href="scattered__vector_8h_source.html#l00080">scattered_vector.h:80</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="scattered__vector_8h.html">scattered_vector.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.1 </li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|