Vectors: Difference between revisions
Jump to navigation
Jump to search
(Created page with "= Vectors = The '''Vectors''' module provides vector mathematics functionality for the SCM programming language. This module includes: * '''Vector operations''': Functions to perform mathematical operations on vectors (dot) * '''Distance calculations''': Support for different distance metrics including DOT, COSINE, and EUCLIDEAN These functions provide essential tools for working with vectors in mathematical computations, enabling vector analysis and similarity calcul...") |
No edit summary |
||
| Line 16: | Line 16: | ||
'''Allowed number of parameters:''' 2–3 | '''Allowed number of parameters:''' 2–3 | ||
<span id="parameters"></span> | |||
=== Parameters === | |||
* '''v1''' (<code>list</code>): vector1 | * '''v1''' (<code>list</code>): vector1 | ||
* '''v2''' (<code>list</code>): vector2 | * '''v2''' (<code>list</code>): vector2 | ||
* '''mode''' (<code>string</code>): DOT, COSINE, EUCLIDEAN, default is DOT | * '''mode''' (<code>string</code>): DOT, COSINE, EUCLIDEAN, default is DOT ''(optional)'' | ||
<span id="returns"></span> | |||
=== Returns === | |||
<code>number</code> | |||
Revision as of 08:37, 27 August 2026
Vectors
The Vectors module provides vector mathematics functionality for the SCM programming language. This module includes:
- Vector operations: Functions to perform mathematical operations on vectors (dot)
- Distance calculations: Support for different distance metrics including DOT, COSINE, and EUCLIDEAN
These functions provide essential tools for working with vectors in mathematical computations, enabling vector analysis and similarity calculations in SCM programs.
← Back to Full SCM API documentation
dot
produced the dot product
Allowed number of parameters: 2–3
Parameters
- v1 (
list): vector1 - v2 (
list): vector2 - mode (
string): DOT, COSINE, EUCLIDEAN, default is DOT (optional)
Returns
number