<codeclass="literal">a</code>.<codeclass="literal">index_list</code> is the unique set
<codeclass="literal">a</code>.<codeclass="literal">index_list</code> is the unique set
of indices that address the element returned. It is
equivalent to the following code (disregarding intermediate temporaries):
<preclass="programlisting">
@@ -427,16 +427,16 @@ with unspecified start and finish values.</td></tr><tr><td><code class="literal"
value, this is equivalent to <codeclass="literal">i.start()</code>. Otherwise it
returns <codeclass="literal">idx</code>.</td></tr><tr><td><codeclass="literal">i.get_finish(idx)</code></td><td><codeclass="literal">index</code></td><td>If <codeclass="literal">i</code> specifies a finish
value, this is equivalent to <codeclass="literal">i.finish()</code>. Otherwise it
returns <codeclass="literal">idx</code>.</td></tr><tr><td><codeclass="literal">i.size(idx)</code></td><td><codeclass="literal">size_type</code></td><td>If <codeclass="literal">i</code> specifies a both finish and
start values, this is equivalent to
returns <codeclass="literal">idx</code>.</td></tr><tr><td><codeclass="literal">i.size(idx)</code></td><td><codeclass="literal">size_type</code></td><td>If <codeclass="literal">i</code> specifies both a finish and a
start value, this is equivalent to
<codeclass="literal">(i.finish()-i.start())/i.stride()</code>. Otherwise it
returns <codeclass="literal">idx</code>.</td></tr><tr><td><codeclass="literal">i < idx</code></td><td><codeclass="literal">index</code></td><td>This is another syntax for specifying the finish
value. This notation does not include
<codeclass="literal">idx</code> in the range of valid indices. It is equivalent to
<codeclass="literal">index_range(r.start(), idx, r.stride())</code></td></tr><tr><td><codeclass="literal">i <= idx</code></td><td><codeclass="literal">index</code></td><td>This is another syntax for specifying the finish
<codeclass="literal">index_range(r.start(), idx, r.stride())</code>.</td></tr><tr><td><codeclass="literal">i <= idx</code></td><td><codeclass="literal">index</code></td><td>This is another syntax for specifying the finish
value. This notation includes
<codeclass="literal">idx</code> in the range of valid indices. It is equivalent to
<codeclass="literal">index_range(r.start(), idx + 1, r.stride())</code></td></tr><tr><td><codeclass="literal">idx < i</code></td><td><codeclass="literal">index</code></td><td>This is another syntax for specifying the start
<codeclass="literal">index_range(r.start(), idx + 1, r.stride())</code>.</td></tr><tr><td><codeclass="literal">idx < i</code></td><td><codeclass="literal">index</code></td><td>This is another syntax for specifying the start
value. This notation does not include
<codeclass="literal">idx</code> in the range of valid indices. It is equivalent to
<codeclass="literal">index_range(idx + 1, i.finish(), i.stride())</code>.</td></tr><tr><td><codeclass="literal">idx <= i</code></td><td><codeclass="literal">index</code></td><td>This is another syntax for specifying the start
@@ -444,9 +444,9 @@ value. This notation includes
<codeclass="literal">idx1</code> in the range of valid indices. It is equivalent to
<codeclass="literal">index_range(idx, i.finish(), i.stride())</code>.</td></tr><tr><td><codeclass="literal">i + idx</code></td><td><codeclass="literal">index</code></td><td>This expression shifts the start and finish values
of <codeclass="literal">i</code> up by <codeclass="literal">idx</code>. It is equivalent to
<codeclass="literal">index_range(r.start()+idx1, r.finish()+idx, r.stride())</code></td></tr><tr><td><codeclass="literal">i - idx</code></td><td><codeclass="literal">index</code></td><td>This expression shifts the start and finish values
<codeclass="literal">index_range(r.start()+idx1, r.finish()+idx, r.stride())</code>.</td></tr><tr><td><codeclass="literal">i - idx</code></td><td><codeclass="literal">index</code></td><td>This expression shifts the start and finish values
of <codeclass="literal">i</code> up by <codeclass="literal">idx</code>. It is equivalent to
</span></dt><dd><p>This changes the index bases of the <codeclass="literal">multi_array</code> to
correspond to the the values in <codeclass="literal">values</code>.</p><ptitle="BaseList Requirements"><b><codeclass="literal">BaseList</code> Requirements.</b><codeclass="literal">BaseList</code> must model
correspond to the values in <codeclass="literal">values</code>.</p><ptitle="BaseList Requirements"><b><codeclass="literal">BaseList</code> Requirements.</b><codeclass="literal">BaseList</code> must model
and depending on the element type, it may also model
<aclass="ulink"href="https://www.boost.org/sgi/stl/EqualityComparable.html"target="_top">EqualityComparable</a> and <aclass="ulink"href="https://www.boost.org/sgi/stl/LessThanComparable.html"target="_top">LessThanComparable</a>.
Detailed descriptions are provided here only for operations that are
@@ -954,7 +954,7 @@ dimensions.
multi_array_ref(const multi_array_ref& x);
</pre></span></dt><dd><p>This constructs a shallow copy of <codeclass="literal">x</code>.
</p><ptitle="Complexity"><b>Complexity.</b> Constant time (for contrast, compare this to
the <codeclass="literal">multi_array</code> class copy constructor.
the <codeclass="literal">multi_array</code> class copy constructor).
and depending on the element type, it may also model
<aclass="ulink"href="https://www.boost.org/sgi/stl/EqualityComparable.html"target="_top">EqualityComparable</a> and <aclass="ulink"href="https://www.boost.org/sgi/stl/LessThanComparable.html"target="_top">LessThanComparable</a>.
@@ -1110,7 +1110,7 @@ associated with <code class="literal">multi_array</code>,
<codeclass="literal">multi_array_ref</code>, and
<codeclass="literal">const_multi_array_ref</code> that are not
dependent upon template parameters. These types find common use with
all Boost.Multiarray components. They are defined
all Boost.MultiArray components. They are defined
in a namespace from which they can be accessed conveniently.
With the exception of <codeclass="literal">extent_gen</code> and
<codeclass="literal">extent_range</code>, these types fulfill the roles of the
@@ -1144,7 +1144,7 @@ public:
<codeclass="literal">finish</code> must be greater than <codeclass="literal">start</code>.
</p></dd><dt><spanclass="term"><codeclass="function">extent_range(index finish)</code></span></dt><dd><p>This constructor defines the half open interval
<codeclass="literal">[0,finish)</code>. The value of <codeclass="literal">finish</code>
must be positive.</p></dd><dt><spanclass="term"><codeclass="function">index start()</code></span></dt><dd><p>This function returns the first index represented by the range</p></dd><dt><spanclass="term"><codeclass="function">index finish()</code></span></dt><dd><p>This function returns the upper boundary value of the half-open
must be positive.</p></dd><dt><spanclass="term"><codeclass="function">index start()</code></span></dt><dd><p>This function returns the first index represented by the range.</p></dd><dt><spanclass="term"><codeclass="function">index finish()</code></span></dt><dd><p>This function returns the upper boundary value of the half-open
interval. Note that the range does not include this value.</p></dd><dt><spanclass="term"><codeclass="function">size_type size()</code></span></dt><dd><p>This function returns the size of the specified range. It is
equivalent to <codeclass="literal">finish()-start()</code>.</p></dd></dl></div></div><divclass="sect2"title="extent_gen"><divclass="titlepage"><div><div><h3class="title"><aname="extent_gen"></a><codeclass="classname">extent_gen</code></h3></div></div></div><p>The <codeclass="classname">extent_gen</code> class defines an
interface for aggregating array shape and indexing information to be
@@ -1205,7 +1205,7 @@ For example,
a 3 by 3 by 3 <codeclass="classname">multi_array</code> is constructed as follows:
and depending on the element type, it may also model
<ulinkurl="https://www.boost.org/sgi/stl/EqualityComparable.html">EqualityComparable</ulink> and <ulinkurl="https://www.boost.org/sgi/stl/LessThanComparable.html">LessThanComparable</ulink>.
and depending on the element type, it may also model
<ulinkurl="https://www.boost.org/sgi/stl/EqualityComparable.html">EqualityComparable</ulink> and <ulinkurl="https://www.boost.org/sgi/stl/LessThanComparable.html">LessThanComparable</ulink>.
Detailed descriptions are provided here only for operations that are
@@ -198,7 +198,7 @@ dimensions.
<formalpara>
<title>Complexity</title>
<para> Constant time (for contrast, compare this to
the <literal>multi_array</literal> class copy constructor.
the <literal>multi_array</literal> class copy constructor).
</para></formalpara>
</listitem>
</varlistentry>
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.