Skip to content

Commit

Permalink
Deploying to gh-pages from @ 145c13c 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
asmeurer committed Oct 9, 2024
1 parent 3cf8c67 commit 9403021
Show file tree
Hide file tree
Showing 9 changed files with 14,524 additions and 14,524 deletions.
8 changes: 4 additions & 4 deletions _images/astronaut-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions _images/astronaut-2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions _images/astronaut-3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20,040 changes: 10,020 additions & 10,020 deletions _images/plot-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8,810 changes: 4,405 additions & 4,405 deletions _images/plot-2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions api/chunking.html
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ <h1>Chunking<a class="headerlink" href="#chunking" title="Link to this heading">
chunked array.</p>
<dl class="py class">
<dt class="sig sig-object py" id="ndindex.ChunkSize">
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">ndindex.</span></span><span class="sig-name descname"><span class="pre">ChunkSize</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">chunk_size</span></span></em><span class="sig-paren">)</span><a class="reference external" href="https://github.com/Quansight-Labs/ndindex/blob/a61d224747309e8c72f35e654e47dab66030c9b7/ndindex/chunking.py#L14-L461"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#ndindex.ChunkSize" title="Link to this definition"></a></dt>
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">ndindex.</span></span><span class="sig-name descname"><span class="pre">ChunkSize</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">chunk_size</span></span></em><span class="sig-paren">)</span><a class="reference external" href="https://github.com/Quansight-Labs/ndindex/blob/145c13cfb5b755d7de5288a1ee17d1914227c0d7/ndindex/chunking.py#L14-L461"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#ndindex.ChunkSize" title="Link to this definition"></a></dt>
<dd><p>Represents a chunk size tuple.</p>
<p>A chunk size is a tuple of length n where each element is either a
positive integer or <code class="code docutils literal notranslate"><span class="pre">None</span></code>. It represents a chunking of an array with n
Expand Down Expand Up @@ -406,7 +406,7 @@ <h1>Chunking<a class="headerlink" href="#chunking" title="Link to this heading">

<dl class="py method">
<dt class="sig sig-object py" id="ndindex.ChunkSize.as_subchunks">
<span class="sig-name descname"><span class="pre">as_subchunks</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">idx</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">shape</span></span></em>, <em class="sig-param"><span class="o"><span class="pre">*</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">_force_slow</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="reference external" href="https://github.com/Quansight-Labs/ndindex/blob/a61d224747309e8c72f35e654e47dab66030c9b7/ndindex/chunking.py#L143-L298"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#ndindex.ChunkSize.as_subchunks" title="Link to this definition"></a></dt>
<span class="sig-name descname"><span class="pre">as_subchunks</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">idx</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">shape</span></span></em>, <em class="sig-param"><span class="o"><span class="pre">*</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">_force_slow</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="reference external" href="https://github.com/Quansight-Labs/ndindex/blob/145c13cfb5b755d7de5288a1ee17d1914227c0d7/ndindex/chunking.py#L143-L298"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#ndindex.ChunkSize.as_subchunks" title="Link to this definition"></a></dt>
<dd><p>Split an index <code class="code docutils literal notranslate"><span class="pre">idx</span></code> on an array of shape <code class="code docutils literal notranslate"><span class="pre">shape</span></code> into subchunk indices.</p>
<p>Yields indices <code class="code docutils literal notranslate"><span class="pre">c</span></code>, where <code class="code docutils literal notranslate"><span class="pre">c</span></code> is an index for the chunk that
should be sliced. Only those <code class="code docutils literal notranslate"><span class="pre">c</span></code> for which <code class="code docutils literal notranslate"><span class="pre">idx</span></code> includes at least one
Expand Down Expand Up @@ -453,7 +453,7 @@ <h1>Chunking<a class="headerlink" href="#chunking" title="Link to this heading">

<dl class="py method">
<dt class="sig sig-object py" id="ndindex.ChunkSize.containing_block">
<span class="sig-name descname"><span class="pre">containing_block</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">idx</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">shape</span></span></em><span class="sig-paren">)</span><a class="reference external" href="https://github.com/Quansight-Labs/ndindex/blob/a61d224747309e8c72f35e654e47dab66030c9b7/ndindex/chunking.py#L381-L461"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#ndindex.ChunkSize.containing_block" title="Link to this definition"></a></dt>
<span class="sig-name descname"><span class="pre">containing_block</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">idx</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">shape</span></span></em><span class="sig-paren">)</span><a class="reference external" href="https://github.com/Quansight-Labs/ndindex/blob/145c13cfb5b755d7de5288a1ee17d1914227c0d7/ndindex/chunking.py#L381-L461"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#ndindex.ChunkSize.containing_block" title="Link to this definition"></a></dt>
<dd><p>Compute the index for the smallest contiguous block of chunks that
contains <code class="code docutils literal notranslate"><span class="pre">idx</span></code> on an array of shape <code class="code docutils literal notranslate"><span class="pre">shape</span></code>.</p>
<p>A block is a subset of an array that is contiguous in all dimensions
Expand Down Expand Up @@ -493,7 +493,7 @@ <h1>Chunking<a class="headerlink" href="#chunking" title="Link to this heading">

<dl class="py method">
<dt class="sig sig-object py" id="ndindex.ChunkSize.indices">
<span class="sig-name descname"><span class="pre">indices</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">shape</span></span></em><span class="sig-paren">)</span><a class="reference external" href="https://github.com/Quansight-Labs/ndindex/blob/a61d224747309e8c72f35e654e47dab66030c9b7/ndindex/chunking.py#L100-L141"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#ndindex.ChunkSize.indices" title="Link to this definition"></a></dt>
<span class="sig-name descname"><span class="pre">indices</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">shape</span></span></em><span class="sig-paren">)</span><a class="reference external" href="https://github.com/Quansight-Labs/ndindex/blob/145c13cfb5b755d7de5288a1ee17d1914227c0d7/ndindex/chunking.py#L100-L141"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#ndindex.ChunkSize.indices" title="Link to this definition"></a></dt>
<dd><p>Yield a set of ndindex indices for the chunks on an array of shape <code class="code docutils literal notranslate"><span class="pre">shape</span></code>.</p>
<p><code class="code docutils literal notranslate"><span class="pre">shape</span></code> should have the same number of dimensions as <code class="code docutils literal notranslate"><span class="pre">self</span></code>. If the
shape is not a multiple of the chunk size, some chunks will be
Expand Down Expand Up @@ -523,7 +523,7 @@ <h1>Chunking<a class="headerlink" href="#chunking" title="Link to this heading">

<dl class="py method">
<dt class="sig sig-object py" id="ndindex.ChunkSize.num_chunks">
<span class="sig-name descname"><span class="pre">num_chunks</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">shape</span></span></em><span class="sig-paren">)</span><a class="reference external" href="https://github.com/Quansight-Labs/ndindex/blob/a61d224747309e8c72f35e654e47dab66030c9b7/ndindex/chunking.py#L73-L98"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#ndindex.ChunkSize.num_chunks" title="Link to this definition"></a></dt>
<span class="sig-name descname"><span class="pre">num_chunks</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">shape</span></span></em><span class="sig-paren">)</span><a class="reference external" href="https://github.com/Quansight-Labs/ndindex/blob/145c13cfb5b755d7de5288a1ee17d1914227c0d7/ndindex/chunking.py#L73-L98"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#ndindex.ChunkSize.num_chunks" title="Link to this definition"></a></dt>
<dd><p>Give the number of chunks for the given <code class="code docutils literal notranslate"><span class="pre">shape</span></code>.</p>
<p>This is the same as <code class="code docutils literal notranslate"><span class="pre">len(list(self.indices(shape)))</span></code>, but much faster.
<code class="code docutils literal notranslate"><span class="pre">shape</span></code> must have the same number of dimensions as <code class="code docutils literal notranslate"><span class="pre">self</span></code>.</p>
Expand All @@ -544,7 +544,7 @@ <h1>Chunking<a class="headerlink" href="#chunking" title="Link to this heading">

<dl class="py method">
<dt class="sig sig-object py" id="ndindex.ChunkSize.num_subchunks">
<span class="sig-name descname"><span class="pre">num_subchunks</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">idx</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">shape</span></span></em><span class="sig-paren">)</span><a class="reference external" href="https://github.com/Quansight-Labs/ndindex/blob/a61d224747309e8c72f35e654e47dab66030c9b7/ndindex/chunking.py#L300-L379"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#ndindex.ChunkSize.num_subchunks" title="Link to this definition"></a></dt>
<span class="sig-name descname"><span class="pre">num_subchunks</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">idx</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">shape</span></span></em><span class="sig-paren">)</span><a class="reference external" href="https://github.com/Quansight-Labs/ndindex/blob/145c13cfb5b755d7de5288a1ee17d1914227c0d7/ndindex/chunking.py#L300-L379"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#ndindex.ChunkSize.num_subchunks" title="Link to this definition"></a></dt>
<dd><p>Give the number of chunks indexed by <code class="code docutils literal notranslate"><span class="pre">idx</span></code> on an array of shape
<code class="code docutils literal notranslate"><span class="pre">shape</span></code>.</p>
<p>This is equivalent to <code class="code docutils literal notranslate"><span class="pre">len(list(self.as_subindex(idx,</span> <span class="pre">shape)))</span></code>, but
Expand Down
Loading

0 comments on commit 9403021

Please sign in to comment.