Updated docs

This commit is contained in:
Chris Watson 2019-06-17 15:01:05 -07:00
parent ef28e84ecc
commit 3e2735c005
No known key found for this signature in database
GPG Key ID: 37DAEF5F446370A4
9 changed files with 538 additions and 193 deletions

View File

@ -131,28 +131,28 @@ of Crystal.</p>
<h2>Defined in:</h2>
<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/ndarray.cr#L1" target="_blank">
<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/ndarray.cr#L1" target="_blank">
apatite/linear_algebra/ndarray.cr
</a>
<br/>
<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra.cr#L5" target="_blank">
<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra.cr#L5" target="_blank">
apatite/linear_algebra.cr
</a>
<br/>
<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite.cr#L10" target="_blank">
<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite.cr#L10" target="_blank">
apatite.cr
</a>
<br/>
<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/version.cr#L1" target="_blank">
<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/version.cr#L1" target="_blank">
apatite/version.cr
</a>
@ -210,11 +210,50 @@ of Crystal.</p>
<h2>Class Method Summary</h2>
<ul class="list-summary">
<li class="entry-summary">
<a href="#approx_precision-class-method" class="signature"><strong>.approx_precision</strong></a>
</li>
<li class="entry-summary">
<a href="#approx_precision%3D%28approx_precision%29-class-method" class="signature"><strong>.approx_precision=</strong>(approx_precision)</a>
</li>
<li class="entry-summary">
<a href="#precision-class-method" class="signature"><strong>.precision</strong></a>
</li>
<li class="entry-summary">
<a href="#precision%3D%28precision%29-class-method" class="signature"><strong>.precision=</strong>(precision)</a>
</li>
</ul>
<h2>Instance Method Summary</h2>
<ul class="list-summary">
<li class="entry-summary">
<a href="#angle_from%28a%2Cb%29-instance-method" class="signature"><strong>#angle_from</strong>(a, b)</a>
<div class="summary"><p>Returns the angle between this vector and another in radians.</p></div>
</li>
<li class="entry-summary">
<a href="#antiparallel_to%3F%28a%2Cb%29-instance-method" class="signature"><strong>#antiparallel_to?</strong>(a, b)</a>
<div class="summary"><p>Returns whether the vectors are antiparallel to each other.</p></div>
</li>
<li class="entry-summary">
<a href="#as_vector%28input%3AIndexable%29-instance-method" class="signature"><strong>#as_vector</strong>(input : Indexable)</a>
@ -236,6 +275,13 @@ of Crystal.</p>
</li>
<li class="entry-summary">
<a href="#dot%28x%2Cy%29-instance-method" class="signature"><strong>#dot</strong>(x, y)</a>
<div class="summary"><p>Get the scalar (dot) product of two vectors.</p></div>
</li>
<li class="entry-summary">
<a href="#empty-instance-method" class="signature"><strong>#empty</strong></a>
@ -278,6 +324,20 @@ of Crystal.</p>
</li>
<li class="entry-summary">
<a href="#parallel_to%3F%28a%2Cb%29-instance-method" class="signature"><strong>#parallel_to?</strong>(a, b)</a>
<div class="summary"><p>Returns whether the vectors are parallel to each other.</p></div>
</li>
<li class="entry-summary">
<a href="#perpendicular_to%3F%28a%2Cb%29-instance-method" class="signature"><strong>#perpendicular_to?</strong>(a, b)</a>
<div class="summary"><p>Returns whether the vectors are perpendicular to each other.</p></div>
</li>
<li class="entry-summary">
<a href="#random%28n%2Crange%3Dnil%29-instance-method" class="signature"><strong>#random</strong>(n, range = <span class="n">nil</span>)</a>
@ -299,6 +359,13 @@ of Crystal.</p>
</li>
<li class="entry-summary">
<a href="#similarity%28x%2Cy%29-instance-method" class="signature"><strong>#similarity</strong>(x, y)</a>
<div class="summary"><p>Compute the cosine similarity between two vectors.</p></div>
</li>
<li class="entry-summary">
<a href="#vector%28n%2C%26block%29-instance-method" class="signature"><strong>#vector</strong>(n, &block)</a>
@ -350,10 +417,114 @@ of Crystal.</p>
<h2>Class Method Detail</h2>
<div class="entry-detail" id="approx_precision-class-method">
<div class="signature">
def self.<strong>approx_precision</strong>
<a class="method-permalink" href="#approx_precision-class-method">#</a>
</div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite.cr#L18" target="_blank">View source</a>]
</div>
</div>
<div class="entry-detail" id="approx_precision=(approx_precision)-class-method">
<div class="signature">
def self.<strong>approx_precision=</strong>(approx_precision)
<a class="method-permalink" href="#approx_precision%3D%28approx_precision%29-class-method">#</a>
</div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite.cr#L22" target="_blank">View source</a>]
</div>
</div>
<div class="entry-detail" id="precision-class-method">
<div class="signature">
def self.<strong>precision</strong>
<a class="method-permalink" href="#precision-class-method">#</a>
</div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite.cr#L17" target="_blank">View source</a>]
</div>
</div>
<div class="entry-detail" id="precision=(precision)-class-method">
<div class="signature">
def self.<strong>precision=</strong>(precision)
<a class="method-permalink" href="#precision%3D%28precision%29-class-method">#</a>
</div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite.cr#L21" target="_blank">View source</a>]
</div>
</div>
<h2>Instance Method Detail</h2>
<div class="entry-detail" id="angle_from(a,b)-instance-method">
<div class="signature">
def <strong>angle_from</strong>(a, b)
<a class="method-permalink" href="#angle_from%28a%2Cb%29-instance-method">#</a>
</div>
<div class="doc"><p>Returns the angle between this vector and another in radians.
If the vectors are mirrored across their axes this will return <code>nil</code>.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite.cr#L145" target="_blank">View source</a>]
</div>
</div>
<div class="entry-detail" id="antiparallel_to?(a,b)-instance-method">
<div class="signature">
def <strong>antiparallel_to?</strong>(a, b)
<a class="method-permalink" href="#antiparallel_to%3F%28a%2Cb%29-instance-method">#</a>
</div>
<div class="doc"><p>Returns whether the vectors are antiparallel to each other.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite.cr#L178" target="_blank">View source</a>]
</div>
</div>
<div class="entry-detail" id="as_vector(input:Indexable)-instance-method">
<div class="signature">
@ -368,7 +539,7 @@ of Crystal.</p>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite.cr#L61" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite.cr#L65" target="_blank">View source</a>]
</div>
</div>
@ -386,7 +557,7 @@ of Crystal.</p>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite.cr#L66" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite.cr#L70" target="_blank">View source</a>]
</div>
</div>
@ -404,7 +575,27 @@ of Crystal.</p>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite.cr#L89" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite.cr#L93" target="_blank">View source</a>]
</div>
</div>
<div class="entry-detail" id="dot(x,y)-instance-method">
<div class="signature">
def <strong>dot</strong>(x, y)
<a class="method-permalink" href="#dot%28x%2Cy%29-instance-method">#</a>
</div>
<div class="doc"><p>Get the scalar (dot) product of two vectors.</p>
<p>[https://en.wikipedia.org/wiki/Scalar_product](https://en.wikipedia.org/wiki/Scalar_product</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite.cr#L125" target="_blank">View source</a>]
</div>
</div>
@ -422,7 +613,7 @@ of Crystal.</p>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite.cr#L34" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite.cr#L38" target="_blank">View source</a>]
</div>
</div>
@ -442,7 +633,7 @@ of Crystal.</p>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite.cr#L84" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite.cr#L88" target="_blank">View source</a>]
</div>
</div>
@ -461,7 +652,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite.cr#L95" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite.cr#L99" target="_blank">View source</a>]
</div>
</div>
@ -479,7 +670,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite.cr#L49" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite.cr#L53" target="_blank">View source</a>]
</div>
</div>
@ -497,7 +688,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite.cr#L100" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite.cr#L104" target="_blank">View source</a>]
</div>
</div>
@ -515,7 +706,43 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite.cr#L39" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite.cr#L43" target="_blank">View source</a>]
</div>
</div>
<div class="entry-detail" id="parallel_to?(a,b)-instance-method">
<div class="signature">
def <strong>parallel_to?</strong>(a, b)
<a class="method-permalink" href="#parallel_to%3F%28a%2Cb%29-instance-method">#</a>
</div>
<div class="doc"><p>Returns whether the vectors are parallel to each other.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite.cr#L172" target="_blank">View source</a>]
</div>
</div>
<div class="entry-detail" id="perpendicular_to?(a,b)-instance-method">
<div class="signature">
def <strong>perpendicular_to?</strong>(a, b)
<a class="method-permalink" href="#perpendicular_to%3F%28a%2Cb%29-instance-method">#</a>
</div>
<div class="doc"><p>Returns whether the vectors are perpendicular to each other.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite.cr#L184" target="_blank">View source</a>]
</div>
</div>
@ -535,7 +762,7 @@ to a given range.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite.cr#L73" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite.cr#L77" target="_blank">View source</a>]
</div>
</div>
@ -553,7 +780,7 @@ to a given range.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite.cr#L105" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite.cr#L109" target="_blank">View source</a>]
</div>
</div>
@ -571,7 +798,25 @@ to a given range.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite.cr#L110" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite.cr#L114" target="_blank">View source</a>]
</div>
</div>
<div class="entry-detail" id="similarity(x,y)-instance-method">
<div class="signature">
def <strong>similarity</strong>(x, y)
<a class="method-permalink" href="#similarity%28x%2Cy%29-instance-method">#</a>
</div>
<div class="doc"><p>Compute the cosine similarity between two vectors.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite.cr#L136" target="_blank">View source</a>]
</div>
</div>
@ -590,7 +835,7 @@ for each index of <code>self</code>, assigning the block's value in that index.<
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite.cr#L55" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite.cr#L59" target="_blank">View source</a>]
</div>
</div>
@ -608,7 +853,7 @@ for each index of <code>self</code>, assigning the block's value in that index.<
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite.cr#L44" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite.cr#L48" target="_blank">View source</a>]
</div>
</div>

View File

@ -123,28 +123,28 @@
<h2>Defined in:</h2>
<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/ndarray.cr#L1" target="_blank">
<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/ndarray.cr#L1" target="_blank">
apatite/linear_algebra/ndarray.cr
</a>
<br/>
<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L1" target="_blank">
<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L1" target="_blank">
apatite/linear_algebra/vector.cr
</a>
<br/>
<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L3" target="_blank">
<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L3" target="_blank">
apatite/linear_algebra/matrix.cr
</a>
<br/>
<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra.cr#L6" target="_blank">
<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra.cr#L6" target="_blank">
apatite/linear_algebra.cr
</a>
@ -210,7 +210,7 @@
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra.cr#L14" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra.cr#L14" target="_blank">View source</a>]
</div>
</div>
@ -230,7 +230,7 @@
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra.cr#L22" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra.cr#L22" target="_blank">View source</a>]
</div>
</div>

View File

@ -122,7 +122,7 @@
<h2>Defined in:</h2>
<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L4" target="_blank">
<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L4" target="_blank">
apatite/linear_algebra/matrix.cr
</a>
@ -539,7 +539,7 @@
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L15" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L15" target="_blank">View source</a>]
</div>
</div>
@ -562,7 +562,7 @@
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L22" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L22" target="_blank">View source</a>]
</div>
</div>
@ -581,7 +581,7 @@ the given block, passing the current row and column.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L28" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L28" target="_blank">View source</a>]
</div>
</div>
@ -599,7 +599,7 @@ the given block, passing the current row and column.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L39" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L39" target="_blank">View source</a>]
</div>
</div>
@ -617,7 +617,7 @@ the given block, passing the current row and column.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L44" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L44" target="_blank">View source</a>]
</div>
</div>
@ -635,7 +635,7 @@ the given block, passing the current row and column.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L70" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L70" target="_blank">View source</a>]
</div>
</div>
@ -653,7 +653,7 @@ the given block, passing the current row and column.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L84" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L84" target="_blank">View source</a>]
</div>
</div>
@ -672,7 +672,7 @@ the given block, passing the current row and column.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L90" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L90" target="_blank">View source</a>]
</div>
</div>
@ -691,7 +691,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L98" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L98" target="_blank">View source</a>]
</div>
</div>
@ -709,7 +709,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L103" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L103" target="_blank">View source</a>]
</div>
</div>
@ -727,7 +727,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L107" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L107" target="_blank">View source</a>]
</div>
</div>
@ -745,7 +745,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L112" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L112" target="_blank">View source</a>]
</div>
</div>
@ -763,7 +763,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L117" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L117" target="_blank">View source</a>]
</div>
</div>
@ -781,7 +781,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L126" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L126" target="_blank">View source</a>]
</div>
</div>
@ -799,7 +799,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L131" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L131" target="_blank">View source</a>]
</div>
</div>
@ -817,7 +817,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L135" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L135" target="_blank">View source</a>]
</div>
</div>
@ -838,7 +838,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L140" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L140" target="_blank">View source</a>]
</div>
</div>
@ -854,7 +854,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L154" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L154" target="_blank">View source</a>]
</div>
</div>
@ -870,7 +870,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L161" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L161" target="_blank">View source</a>]
</div>
</div>
@ -886,7 +886,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L167" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L167" target="_blank">View source</a>]
</div>
</div>
@ -902,7 +902,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L176" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L176" target="_blank">View source</a>]
</div>
</div>
@ -918,7 +918,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L188" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L188" target="_blank">View source</a>]
</div>
</div>
@ -934,7 +934,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L205" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L205" target="_blank">View source</a>]
</div>
</div>
@ -950,7 +950,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L193" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L193" target="_blank">View source</a>]
</div>
</div>
@ -966,7 +966,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L210" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L210" target="_blank">View source</a>]
</div>
</div>
@ -982,7 +982,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L214" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L214" target="_blank">View source</a>]
</div>
</div>
@ -998,7 +998,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L221" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L221" target="_blank">View source</a>]
</div>
</div>
@ -1016,7 +1016,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L228" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L228" target="_blank">View source</a>]
</div>
</div>
@ -1034,7 +1034,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L233" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L233" target="_blank">View source</a>]
</div>
</div>
@ -1052,7 +1052,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L239" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L239" target="_blank">View source</a>]
</div>
</div>
@ -1070,7 +1070,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L247" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L247" target="_blank">View source</a>]
</div>
</div>
@ -1088,7 +1088,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L274" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L274" target="_blank">View source</a>]
</div>
</div>
@ -1106,7 +1106,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L265" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L265" target="_blank">View source</a>]
</div>
</div>
@ -1124,7 +1124,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L256" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L256" target="_blank">View source</a>]
</div>
</div>
@ -1140,7 +1140,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L11" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L11" target="_blank">View source</a>]
</div>
</div>
@ -1158,7 +1158,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L283" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L283" target="_blank">View source</a>]
</div>
</div>
@ -1174,7 +1174,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L354" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L354" target="_blank">View source</a>]
</div>
</div>
@ -1190,7 +1190,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L429" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L429" target="_blank">View source</a>]
</div>
</div>
@ -1208,7 +1208,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L304" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L304" target="_blank">View source</a>]
</div>
</div>
@ -1226,7 +1226,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L450" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L450" target="_blank">View source</a>]
</div>
</div>
@ -1242,7 +1242,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L516" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L516" target="_blank">View source</a>]
</div>
</div>
@ -1258,7 +1258,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L475" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L475" target="_blank">View source</a>]
</div>
</div>
@ -1274,7 +1274,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L480" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L480" target="_blank">View source</a>]
</div>
</div>
@ -1290,7 +1290,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L13" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L13" target="_blank">View source</a>]
</div>
</div>
@ -1306,7 +1306,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L484" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L484" target="_blank">View source</a>]
</div>
</div>
@ -1322,7 +1322,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L492" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L492" target="_blank">View source</a>]
</div>
</div>
@ -1338,7 +1338,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L502" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L502" target="_blank">View source</a>]
</div>
</div>
@ -1354,7 +1354,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L496" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L496" target="_blank">View source</a>]
</div>
</div>
@ -1370,7 +1370,7 @@ and zeros elsewhere.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/matrix.cr#L525" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/matrix.cr#L525" target="_blank">View source</a>]
</div>
</div>

View File

@ -122,7 +122,7 @@
<h2>Defined in:</h2>
<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/ndarray.cr#L2" target="_blank">
<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/ndarray.cr#L2" target="_blank">
apatite/linear_algebra/ndarray.cr
</a>
@ -323,7 +323,7 @@
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/ndarray.cr#L18" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/ndarray.cr#L18" target="_blank">View source</a>]
</div>
</div>
@ -346,7 +346,7 @@
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/ndarray.cr#L11" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/ndarray.cr#L11" target="_blank">View source</a>]
</div>
</div>
@ -362,7 +362,7 @@
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/ndarray.cr#L11" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/ndarray.cr#L11" target="_blank">View source</a>]
</div>
</div>
@ -378,7 +378,7 @@
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/ndarray.cr#L13" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/ndarray.cr#L13" target="_blank">View source</a>]
</div>
</div>
@ -394,7 +394,7 @@
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/ndarray.cr#L12" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/ndarray.cr#L12" target="_blank">View source</a>]
</div>
</div>
@ -410,7 +410,7 @@
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/ndarray.cr#L12" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/ndarray.cr#L12" target="_blank">View source</a>]
</div>
</div>
@ -428,7 +428,7 @@
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/ndarray.cr#L24" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/ndarray.cr#L24" target="_blank">View source</a>]
</div>
</div>
@ -446,7 +446,7 @@
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/ndarray.cr#L29" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/ndarray.cr#L29" target="_blank">View source</a>]
</div>
</div>
@ -462,7 +462,7 @@
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/ndarray.cr#L9" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/ndarray.cr#L9" target="_blank">View source</a>]
</div>
</div>
@ -478,7 +478,7 @@
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/ndarray.cr#L11" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/ndarray.cr#L11" target="_blank">View source</a>]
</div>
</div>
@ -494,7 +494,7 @@
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/ndarray.cr#L16" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/ndarray.cr#L16" target="_blank">View source</a>]
</div>
</div>
@ -510,7 +510,7 @@
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/ndarray.cr#L16" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/ndarray.cr#L16" target="_blank">View source</a>]
</div>
</div>
@ -526,7 +526,7 @@
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/ndarray.cr#L15" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/ndarray.cr#L15" target="_blank">View source</a>]
</div>
</div>
@ -542,7 +542,7 @@
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/ndarray.cr#L15" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/ndarray.cr#L15" target="_blank">View source</a>]
</div>
</div>
@ -558,7 +558,7 @@
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/ndarray.cr#L14" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/ndarray.cr#L14" target="_blank">View source</a>]
</div>
</div>
@ -574,7 +574,7 @@
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/ndarray.cr#L14" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/ndarray.cr#L14" target="_blank">View source</a>]
</div>
</div>

View File

@ -127,7 +127,7 @@ of a <code><a href="../../Apatite/LinearAlgebra/Matrix.html">Matrix</a></code></
<h2>Defined in:</h2>
<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L4" target="_blank">
<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L4" target="_blank">
apatite/linear_algebra/vector.cr
</a>
@ -279,10 +279,15 @@ of a <code><a href="../../Apatite/LinearAlgebra/Matrix.html">Matrix</a></code></
</li>
<li class="entry-summary">
<a href="#%2F%28other%29-instance-method" class="signature"><strong>#/</strong>(other)</a>
</li>
<li class="entry-summary">
<a href="#%3C%3C%28value%3AFloat64%29-instance-method" class="signature"><strong>#<<</strong>(value : Float64)</a>
<div class="summary"><p>Alias for <code><a href="../../Apatite/LinearAlgebra/Vector.html#push%28%2Avalues%3AFloat64%29-instance-method">#push</a></code></p></div>
<div class="summary"><p>Alias for <code><a href="../../Apatite/LinearAlgebra/Vector.html#push%28value%3AFloat64%29-instance-method">#push</a></code></p></div>
</li>
@ -413,6 +418,13 @@ of a <code><a href="../../Apatite/LinearAlgebra/Matrix.html">Matrix</a></code></
</li>
<li class="entry-summary">
<a href="#divide%28value%29-instance-method" class="signature"><strong>#divide</strong>(value)</a>
<div class="summary"><p>When the input is a number, this returns the result of dividing it to all vector elements.</p></div>
</li>
<li class="entry-summary">
<a href="#dot%28other%29-instance-method" class="signature"><strong>#dot</strong>(other)</a>
@ -511,6 +523,13 @@ of a <code><a href="../../Apatite/LinearAlgebra/Matrix.html">Matrix</a></code></
</li>
<li class="entry-summary">
<a href="#normalize-instance-method" class="signature"><strong>#normalize</strong></a>
<div class="summary"><p>Returns a new vector created by normalizing this one to have a magnitude of <code>1</code>.</p></div>
</li>
<li class="entry-summary">
<a href="#parallel_to%3F%28vector%29-instance-method" class="signature"><strong>#parallel_to?</strong>(vector)</a>
@ -538,12 +557,12 @@ of a <code><a href="../../Apatite/LinearAlgebra/Matrix.html">Matrix</a></code></
</li>
<li class="entry-summary">
<a href="#push%28%2Avalues%3AFloat64%29-instance-method" class="signature"><strong>#push</strong>(*values : Float64)</a>
<a href="#push%28value%3AFloat64%29-instance-method" class="signature"><strong>#push</strong>(value : Float64)</a>
</li>
<li class="entry-summary">
<a href="#push%28value%3AFloat64%29-instance-method" class="signature"><strong>#push</strong>(value : Float64)</a>
<a href="#push%28%2Avalues%3AFloat64%29-instance-method" class="signature"><strong>#push</strong>(*values : Float64)</a>
</li>
@ -580,6 +599,13 @@ of a <code><a href="../../Apatite/LinearAlgebra/Matrix.html">Matrix</a></code></
</li>
<li class="entry-summary">
<a href="#similarity%28other%29-instance-method" class="signature"><strong>#similarity</strong>(other)</a>
<div class="summary"><p>Compute the cosine similarity between this vector and another.</p></div>
</li>
<li class="entry-summary">
<a href="#size%3AInt32-instance-method" class="signature"><strong>#size</strong> : Int32</a>
@ -773,7 +799,7 @@ and yielding that buffer. The given block must return the desired size of the ve
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L106" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L106" target="_blank">View source</a>]
</div>
</div>
@ -793,7 +819,7 @@ and yielding that buffer. The given block must return the desired size of the ve
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L63" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L63" target="_blank">View source</a>]
</div>
</div>
@ -820,7 +846,7 @@ vec.size <span class="c"># =&gt; 0</span></code></pre></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L43" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L43" target="_blank">View source</a>]
</div>
</div>
@ -838,7 +864,7 @@ vec.size <span class="c"># =&gt; 0</span></code></pre></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L25" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L25" target="_blank">View source</a>]
</div>
</div>
@ -862,7 +888,7 @@ vec <span class="c"># =&gt; Vector{5.0, 5.0, 5.0}</span></code></pre></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L87" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L87" target="_blank">View source</a>]
</div>
</div>
@ -883,7 +909,7 @@ vec <span class="c"># =&gt; Vector{5.0, 5.0, 5.0}</span></code></pre></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L156" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L156" target="_blank">View source</a>]
</div>
</div>
@ -901,7 +927,7 @@ vec <span class="c"># =&gt; Vector{5.0, 5.0, 5.0}</span></code></pre></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L138" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L138" target="_blank">View source</a>]
</div>
</div>
@ -922,7 +948,7 @@ collection.</p>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L118" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L118" target="_blank">View source</a>]
</div>
</div>
@ -940,7 +966,7 @@ collection.</p>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L152" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L152" target="_blank">View source</a>]
</div>
</div>
@ -960,7 +986,7 @@ to a given range.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L129" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L129" target="_blank">View source</a>]
</div>
</div>
@ -978,7 +1004,7 @@ to a given range.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L147" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L147" target="_blank">View source</a>]
</div>
</div>
@ -999,7 +1025,7 @@ to a given range.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L370" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L370" target="_blank">View source</a>]
</div>
</div>
@ -1015,7 +1041,7 @@ to a given range.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L362" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L362" target="_blank">View source</a>]
</div>
</div>
@ -1031,7 +1057,23 @@ to a given range.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L366" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L366" target="_blank">View source</a>]
</div>
</div>
<div class="entry-detail" id="/(other)-instance-method">
<div class="signature">
def <strong>/</strong>(other)
<a class="method-permalink" href="#%2F%28other%29-instance-method">#</a>
</div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L374" target="_blank">View source</a>]
</div>
</div>
@ -1044,12 +1086,12 @@ to a given range.</p></div>
<a class="method-permalink" href="#%3C%3C%28value%3AFloat64%29-instance-method">#</a>
</div>
<div class="doc"><p>Alias for <code><a href="../../Apatite/LinearAlgebra/Vector.html#push%28%2Avalues%3AFloat64%29-instance-method">#push</a></code></p></div>
<div class="doc"><p>Alias for <code><a href="../../Apatite/LinearAlgebra/Vector.html#push%28value%3AFloat64%29-instance-method">#push</a></code></p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L349" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L349" target="_blank">View source</a>]
</div>
</div>
@ -1078,7 +1120,7 @@ value, that result is the return value of the comparison.</p>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L339" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L339" target="_blank">View source</a>]
</div>
</div>
@ -1094,7 +1136,7 @@ value, that result is the return value of the comparison.</p>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L353" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L353" target="_blank">View source</a>]
</div>
</div>
@ -1123,7 +1165,7 @@ v[<span class="n">6</span>, <span class="n">10</span>] <span class="c"># raise I
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L191" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L191" target="_blank">View source</a>]
</div>
</div>
@ -1151,7 +1193,7 @@ v[<span class="n">6</span>..<span class="n">10</span>] <span class="c"># raise I
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L173" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L173" target="_blank">View source</a>]
</div>
</div>
@ -1177,7 +1219,7 @@ vec <span class="c"># = Vector{1.0, 6.0, 7.0, 5.0}</span></code></pre></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L297" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L297" target="_blank">View source</a>]
</div>
</div>
@ -1209,7 +1251,7 @@ vec <span class="c"># =&gt; Vector{1.0, 6.0, 2.0, 3.0, 4.0, 5.0}</span></code></
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L248" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L248" target="_blank">View source</a>]
</div>
</div>
@ -1236,7 +1278,7 @@ vec[<span class="n">3</span>] <span class="o">=</span> <span class="n">5.0</span
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L226" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L226" target="_blank">View source</a>]
</div>
</div>
@ -1262,7 +1304,7 @@ vec <span class="c"># = Vector{1.0, 6.0, 2.0, 3.0, 4.0, 5.0}</span></code></pre>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L282" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L282" target="_blank">View source</a>]
</div>
</div>
@ -1282,7 +1324,7 @@ will be added together.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L488" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L476" target="_blank">View source</a>]
</div>
</div>
@ -1301,7 +1343,7 @@ If the vectors are mirrored across their axes this will return <code>nil</code>.
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L440" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L449" target="_blank">View source</a>]
</div>
</div>
@ -1319,7 +1361,7 @@ If the vectors are mirrored across their axes this will return <code>nil</code>.
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L475" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L464" target="_blank">View source</a>]
</div>
</div>
@ -1338,7 +1380,7 @@ on the end.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L556" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L551" target="_blank">View source</a>]
</div>
</div>
@ -1357,7 +1399,7 @@ the beginning.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L541" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L536" target="_blank">View source</a>]
</div>
</div>
@ -1378,7 +1420,7 @@ vec.clear <span class="c"># =&gt; Vector{}</span></code></pre></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L782" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L768" target="_blank">View source</a>]
</div>
</div>
@ -1394,7 +1436,7 @@ vec.clear <span class="c"># =&gt; Vector{}</span></code></pre></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L374" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L378" target="_blank">View source</a>]
</div>
</div>
@ -1410,7 +1452,7 @@ vec.clear <span class="c"># =&gt; Vector{}</span></code></pre></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L731" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L717" target="_blank">View source</a>]
</div>
</div>
@ -1428,7 +1470,7 @@ vec.clear <span class="c"># =&gt; Vector{}</span></code></pre></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L601" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L587" target="_blank">View source</a>]
</div>
</div>
@ -1450,7 +1492,7 @@ v1.cross(v2) => <span class="t">Vector</span>{<span class="n">0.0</span>, <span
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L518" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L513" target="_blank">View source</a>]
</div>
</div>
@ -1469,7 +1511,27 @@ a point in space.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L629" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L615" target="_blank">View source</a>]
</div>
</div>
<div class="entry-detail" id="divide(value)-instance-method">
<div class="signature">
def <strong>divide</strong>(value)
<a class="method-permalink" href="#divide%28value%29-instance-method">#</a>
</div>
<div class="doc"><p>When the input is a number, this returns the result of dividing
it to all vector elements. When it's a vector, the vectors
will be element-wise divided.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L497" target="_blank">View source</a>]
</div>
</div>
@ -1489,7 +1551,7 @@ a point in space.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L574" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L569" target="_blank">View source</a>]
</div>
</div>
@ -1508,7 +1570,7 @@ is out of bounds. Indexing starts from 1.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L426" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L430" target="_blank">View source</a>]
</div>
</div>
@ -1526,7 +1588,7 @@ is out of bounds. Indexing starts from 1.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L384" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L388" target="_blank">View source</a>]
</div>
</div>
@ -1544,7 +1606,7 @@ is out of bounds. Indexing starts from 1.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L654" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L640" target="_blank">View source</a>]
</div>
</div>
@ -1562,7 +1624,7 @@ is out of bounds. Indexing starts from 1.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L649" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L635" target="_blank">View source</a>]
</div>
</div>
@ -1580,7 +1642,7 @@ is out of bounds. Indexing starts from 1.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L562" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L557" target="_blank">View source</a>]
</div>
</div>
@ -1600,7 +1662,7 @@ is out of bounds. Indexing starts from 1.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L419" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L423" target="_blank">View source</a>]
</div>
</div>
@ -1618,7 +1680,7 @@ is out of bounds. Indexing starts from 1.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L379" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L383" target="_blank">View source</a>]
</div>
</div>
@ -1641,7 +1703,7 @@ a <span class="c"># =&gt; Vector{1.0, 4.0, 9.0}</span></code></pre></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L400" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L404" target="_blank">View source</a>]
</div>
</div>
@ -1659,7 +1721,7 @@ a <span class="c"># =&gt; Vector{1.0, 4.0, 9.0}</span></code></pre></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L406" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L410" target="_blank">View source</a>]
</div>
</div>
@ -1677,7 +1739,7 @@ a <span class="c"># =&gt; Vector{1.0, 4.0, 9.0}</span></code></pre></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L411" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L415" target="_blank">View source</a>]
</div>
</div>
@ -1695,7 +1757,7 @@ a <span class="c"># =&gt; Vector{1.0, 4.0, 9.0}</span></code></pre></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L589" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L575" target="_blank">View source</a>]
</div>
</div>
@ -1713,7 +1775,7 @@ a <span class="c"># =&gt; Vector{1.0, 4.0, 9.0}</span></code></pre></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L594" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L580" target="_blank">View source</a>]
</div>
</div>
@ -1733,7 +1795,27 @@ will be element-wise multiplied.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L502" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L490" target="_blank">View source</a>]
</div>
</div>
<div class="entry-detail" id="normalize-instance-method">
<div class="signature">
def <strong>normalize</strong>
<a class="method-permalink" href="#normalize-instance-method">#</a>
</div>
<div class="doc"><p>Returns a new vector created by normalizing this one
to have a magnitude of <code>1</code>. If the vector is a zero
vector, it will not be modified.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L443" target="_blank">View source</a>]
</div>
</div>
@ -1751,7 +1833,7 @@ will be element-wise multiplied.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L469" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L459" target="_blank">View source</a>]
</div>
</div>
@ -1769,7 +1851,7 @@ will be element-wise multiplied.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L481" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L469" target="_blank">View source</a>]
</div>
</div>
@ -1785,7 +1867,7 @@ will be element-wise multiplied.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L754" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L740" target="_blank">View source</a>]
</div>
</div>
@ -1803,23 +1885,7 @@ will be element-wise multiplied.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L567" target="_blank">View source</a>]
</div>
</div>
<div class="entry-detail" id="push(*values:Float64)-instance-method">
<div class="signature">
def <strong>push</strong>(*values : Float64)
<a class="method-permalink" href="#push%28%2Avalues%3AFloat64%29-instance-method">#</a>
</div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L665" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L562" target="_blank">View source</a>]
</div>
</div>
@ -1835,7 +1901,23 @@ will be element-wise multiplied.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L658" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L644" target="_blank">View source</a>]
</div>
</div>
<div class="entry-detail" id="push(*values:Float64)-instance-method">
<div class="signature">
def <strong>push</strong>(*values : Float64)
<a class="method-permalink" href="#push%28%2Avalues%3AFloat64%29-instance-method">#</a>
</div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L651" target="_blank">View source</a>]
</div>
</div>
@ -1854,7 +1936,7 @@ will be element-wise multiplied.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L684" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L670" target="_blank">View source</a>]
</div>
</div>
@ -1874,7 +1956,7 @@ careful with line directions!</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L678" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L664" target="_blank">View source</a>]
</div>
</div>
@ -1892,7 +1974,7 @@ careful with line directions!</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L612" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L598" target="_blank">View source</a>]
</div>
</div>
@ -1908,7 +1990,7 @@ careful with line directions!</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L726" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L712" target="_blank">View source</a>]
</div>
</div>
@ -1927,7 +2009,25 @@ across the whole vector.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L707" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L693" target="_blank">View source</a>]
</div>
</div>
<div class="entry-detail" id="similarity(other)-instance-method">
<div class="signature">
def <strong>similarity</strong>(other)
<a class="method-permalink" href="#similarity%28other%29-instance-method">#</a>
</div>
<div class="doc"><p>Compute the cosine similarity between this vector and another.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L454" target="_blank">View source</a>]
</div>
</div>
@ -1945,7 +2045,7 @@ across the whole vector.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L24" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L24" target="_blank">View source</a>]
</div>
</div>
@ -1964,7 +2064,7 @@ they differ from it by less than <code>Apetite.precision</code></p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L623" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L609" target="_blank">View source</a>]
</div>
</div>
@ -1984,7 +2084,7 @@ will be subtracted.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L495" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L483" target="_blank">View source</a>]
</div>
</div>
@ -2002,7 +2102,7 @@ will be subtracted.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L507" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L502" target="_blank">View source</a>]
</div>
</div>
@ -2021,7 +2121,7 @@ z-component is added.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L713" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L699" target="_blank">View source</a>]
</div>
</div>
@ -2037,7 +2137,7 @@ z-component is added.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L744" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L730" target="_blank">View source</a>]
</div>
</div>
@ -2056,7 +2156,7 @@ diagonal elements.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L607" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L593" target="_blank">View source</a>]
</div>
</div>
@ -2072,7 +2172,7 @@ diagonal elements.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L748" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L734" target="_blank">View source</a>]
</div>
</div>
@ -2092,7 +2192,7 @@ vector, it will not be modified.</p></div>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L433" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L437" target="_blank">View source</a>]
</div>
</div>
@ -2116,7 +2216,7 @@ vec.to_unsafe[<span class="n">0</span>] <span class="c"># =&gt; 1.0</span></code
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L772" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L758" target="_blank">View source</a>]
</div>
</div>
@ -2134,7 +2234,7 @@ vec.to_unsafe[<span class="n">0</span>] <span class="c"># =&gt; 1.0</span></code
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L548" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L543" target="_blank">View source</a>]
</div>
</div>
@ -2152,7 +2252,7 @@ vec.to_unsafe[<span class="n">0</span>] <span class="c"># =&gt; 1.0</span></code
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L617" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L603" target="_blank">View source</a>]
</div>
</div>
@ -2168,7 +2268,7 @@ vec.to_unsafe[<span class="n">0</span>] <span class="c"># =&gt; 1.0</span></code
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L759" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L745" target="_blank">View source</a>]
</div>
</div>
@ -2184,7 +2284,7 @@ vec.to_unsafe[<span class="n">0</span>] <span class="c"># =&gt; 1.0</span></code
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/linear_algebra/vector.cr#L788" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/linear_algebra/vector.cr#L774" target="_blank">View source</a>]
</div>
</div>

View File

@ -160,7 +160,7 @@ set <span class="o">&lt;&lt;</span> <span class="n">3</span></code></pre>
<h2>Defined in:</h2>
<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/core_ext/array.cr#L1" target="_blank">
<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/core_ext/array.cr#L1" target="_blank">
apatite/core_ext/array.cr
</a>
@ -294,7 +294,7 @@ set <span class="o">&lt;&lt;</span> <span class="n">3</span></code></pre>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/core_ext/array.cr#L3" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/core_ext/array.cr#L3" target="_blank">View source</a>]
</div>
</div>
@ -312,7 +312,7 @@ set <span class="o">&lt;&lt;</span> <span class="n">3</span></code></pre>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/core_ext/array.cr#L11" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/core_ext/array.cr#L11" target="_blank">View source</a>]
</div>
</div>
@ -330,7 +330,7 @@ set <span class="o">&lt;&lt;</span> <span class="n">3</span></code></pre>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/core_ext/array.cr#L19" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/core_ext/array.cr#L19" target="_blank">View source</a>]
</div>
</div>
@ -346,7 +346,7 @@ set <span class="o">&lt;&lt;</span> <span class="n">3</span></code></pre>
<br/>
<div>
[<a href="https://github.com/watzon/apatite/blob/49a30afcc07bc5354f335c6a6fb5244ed514b63b/src/apatite/core_ext/array.cr#L24" target="_blank">View source</a>]
[<a href="https://github.com/watzon/apatite/blob/ef28e84ecc4b7dc21e66c18464fec0892633d420/src/apatite/core_ext/array.cr#L24" target="_blank">View source</a>]
</div>
</div>

View File

@ -105,11 +105,11 @@
<pre><code class="language-crystal"><span class="k">require</span> <span class="s">&quot;apatite&quot;</span></code></pre>
<p><span class="flag orange">TODO</span> Write usage instructions here, but first write the library...</p>
<p>Check out the <a href="https://watzon.github.io/apatite/" target="_blank">documentation</a> for usage examples.</p>
<h2>Roadmap</h2>
<ul><li>[ ] Apetite</li><li>[ ] Vector Math</li><li>[ ] Matrix</li><li>[ ] NDArray</li><li>[x] Vector</li><li>[ ] Line</li><li>[ ] Plane</li><li>[ ] Polygon</li><li>[ ] LinkedList
<ul><li>[ ] Linear Algebra</li><li>[x] Vector</li><li>[ ] Matrix (_in progress_)</li><li>[ ] NDArray</li><li>[ ] Line</li><li>[ ] Plane</li><li>[ ] Polygon</li><li>[ ] LinkedList
</li></ul>
<h2>Contributing</h2>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long