I liked how the Template Numerical Toolkit implemented one-based indexing:<p><pre><code>    &#x2F;&#x2F; Construct matrix. Elements are not initialized.
    &#x2F;&#x2F; To initialize all elements to zero use
    &#x2F;&#x2F; Matrix&lt;double&gt; a(2, 2, 0.0).
    Matrix&lt;double&gt; a(2, 2);
    
    &#x2F;&#x2F; Assign elements to first row using
    &#x2F;&#x2F; Fortran-style one-based indexing.
    a(1,1) = 0.5; a(1,2) = 1.0;
    
    &#x2F;&#x2F; Assign elements to second row using
    &#x2F;&#x2F; C-style zero-based indexing.
    a[1][0] = 1.5; a[1][1] = 2.0;
</code></pre>
-- <a href="http:&#x2F;&#x2F;www.b-a-h.com&#x2F;software&#x2F;cpp&#x2F;scppnt.html" rel="nofollow">http:&#x2F;&#x2F;www.b-a-h.com&#x2F;software&#x2F;cpp&#x2F;scppnt.html</a>