MtxVec vs NumPy Name Mapping

MtxVec method names vs NumPy/Python equivalents:

MtxVec nameNumPy equivalentNotes
Lnnumpy.logNatural logarithm
Log2numpy.log2Base-2 logarithm
Log10numpy.log10Base-10 logarithm
LogNLogarithm to arbitrary base N
NormL1numpy.linalg.norm(ord=1)L1 norm (sum of absolute values)
NormL2numpy.linalg.norm(ord=2)L2 norm (Euclidean)
Productnumpy.prodProduct of all elements
StdDevnumpy.stdStandard deviation
Variancenumpy.varVariance (if available)
Meannumpy.meanArithmetic mean
Sumnumpy.sumSum of all elements
Absnumpy.absAbsolute value
Sqrnumpy.squareElement-wise square
Sqrtnumpy.sqrtElement-wise square root
IntPowernumpy.powerInteger power
ArcTan2numpy.arctan2Two-argument arctangent

Key gotcha: The most common confusion is Log vs Ln. MtxVec uses Ln for natural logarithm (matching mathematical notation), while NumPy uses log. If searching for "Log", DewCodeHelper will redirect to "Ln" with a note.

MtxVec names are generally MORE descriptive than NumPy:

  • NormL1 vs norm(ord=1) — clearer which norm
  • StdDev vs std — spelled out
  • Product vs prod — spelled out