div>

    <div class="ref-description">
    <p>Generates a block permutation distribution of \(V\) statistic.
Precomputes distances and some indexing arrays to quickly
generate samples from the block permutation distribution of the \(V\)
statistic of \(\mathbf{X}\).</p>
    </div>

    <div id="ref-usage">
    <div class="sourceCode"><pre class="sourceCode r"><code><span class="fu">cacheBlockPermute1</span><span class="op">(</span><span class="va">X</span>, <span class="va">block_labels</span>, <span class=