Vectors: Difference between revisions

From MemCP
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 difference)

Latest revision as of 18:50, 25 August 2025

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

Returns: number