/usr/share/doc/libitpp-dev/html/interleaver.html is in libitpp-doc 4.3.1-8.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Welcome to IT++!</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="favicon.ico">
</head>
<body>
<div style="width: 100%; height: 40px; background-color: #ffff00; border: 1px solid #b0b0b0; margin: 5px 5px 5px 0; padding: 2px;">
<a href="http://itpp.sourceforge.net"><img src="itpp_logo.png" alt="IT++ Logo" style="float: left; border: 0;"></a>
</div>
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',true,true,'search.php','Search');
$(document).ready(function() {
if ($('.searchresults').length > 0) { searchBox.DOMSearchField().focus(); }
});
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">Interleaving and de-interleaving of data </div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><p>This example shows how to use one of the interleaving classes.</p>
<div class="fragment"><div class="line"><span class="preprocessor">#include <<a class="code" href="itcomm_8h.html">itpp/itcomm.h</a>></span></div><div class="line"></div><div class="line"><span class="keyword">using namespace </span><a class="code" href="namespaceitpp.html">itpp</a>;</div><div class="line"></div><div class="line"><span class="comment">//These lines are needed for use of cout and endl</span></div><div class="line"><span class="keyword">using</span> std::cout;</div><div class="line"><span class="keyword">using</span> std::endl;</div><div class="line"></div><div class="line"><span class="keywordtype">int</span> main()</div><div class="line">{</div><div class="line"> <span class="comment">//Declare scalars and vectors:</span></div><div class="line"> <span class="keywordtype">int</span> rows, cols;</div><div class="line"> ivec input, output, deinterleaved;</div><div class="line"></div><div class="line"> <span class="comment">//Declare the interleaver. The interleaver classes are templated, and therefore we must specify</span></div><div class="line"> <span class="comment">//the type of the data elements. In this example we are using integers:</span></div><div class="line"> <a class="code" href="classitpp_1_1Block__Interleaver.html">Block_Interleaver<int></a> my_interleaver;</div><div class="line"></div><div class="line"> <span class="comment">//Initialize the interleaver class. Note that this can be done already in the declaration by writing</span></div><div class="line"> <span class="comment">//Block_Interleaver<int> my_interleaver(rows,cols);</span></div><div class="line"> rows = 4;</div><div class="line"> cols = 5;</div><div class="line"> my_interleaver.<a class="code" href="classitpp_1_1Block__Interleaver.html#ac52dd1b18110528bba6ce67937d14024">set_rows</a>(rows);</div><div class="line"> my_interleaver.<a class="code" href="classitpp_1_1Block__Interleaver.html#a7c933fa3a6bec600b3eb0fbfd62ad786">set_cols</a>(cols);</div><div class="line"></div><div class="line"> <span class="comment">//Define the input to the interleaver:</span></div><div class="line"> input = <span class="stringliteral">"1:20"</span>;</div><div class="line"></div><div class="line"> <span class="comment">//Do the interleaving:</span></div><div class="line"> output = my_interleaver.<a class="code" href="classitpp_1_1Block__Interleaver.html#a250fc156ccb4545850f0d9e72495bec3">interleave</a>(input);</div><div class="line"></div><div class="line"> <span class="comment">//Do the de-interleaving:</span></div><div class="line"> deinterleaved = my_interleaver.<a class="code" href="classitpp_1_1Block__Interleaver.html#a0c82b6bed55a14a3f7b8580668ab4bc5">deinterleave</a>(output);</div><div class="line"></div><div class="line"> <span class="comment">//Print the results:</span></div><div class="line"> cout << <span class="stringliteral">"input = "</span> << input << endl;</div><div class="line"> cout << <span class="stringliteral">"output = "</span> << output << endl;</div><div class="line"> cout << <span class="stringliteral">"deinterleaved = "</span> << deinterleaved << endl;</div><div class="line"></div><div class="line"> <span class="comment">//Exit program:</span></div><div class="line"> <span class="keywordflow">return</span> 0;</div><div class="line"></div><div class="line">}</div></div><!-- fragment --><p>When you run this program, the output will look like this:</p>
<div class="fragment"><div class="line">input = [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20]</div><div class="line">output = [1 5 9 13 17 2 6 10 14 18 3 7 11 15 19 4 8 12 16 20]</div><div class="line">deinterleaved = [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20]</div></div><!-- fragment --> </div></div><!-- contents -->
<div style="clear: both; width: 100%; height: 31px; background-color: #ffff00; border: 1px solid #b0b0b0; margin: 5px 5px 5px 0; padding: 2px;">
<p style="padding-left: 10px; font-size: 85%;">Generated on Sat Sep 30 2017 07:04:09 for IT++ by <a href="http://www.doxygen.org/index.html">Doxygen</a> 1.8.13</p>
</div>
</body>
</html>
|