MtxVec method names vs NumPy/Python equivalents:
| MtxVec name | NumPy equivalent | Notes |
|---|---|---|
| Ln | numpy.log | Natural logarithm |
| Log2 | numpy.log2 | Base-2 logarithm |
| Log10 | numpy.log10 | Base-10 logarithm |
| LogN | — | Logarithm to arbitrary base N |
| NormL1 | numpy.linalg.norm(ord=1) | L1 norm (sum of absolute values) |
| NormL2 | numpy.linalg.norm(ord=2) | L2 norm (Euclidean) |
| Product | numpy.prod | Product of all elements |
| StdDev | numpy.std | Standard deviation |
| Variance | numpy.var | Variance (if available) |
| Mean | numpy.mean | Arithmetic mean |
| Sum | numpy.sum | Sum of all elements |
| Abs | numpy.abs | Absolute value |
| Sqr | numpy.square | Element-wise square |
| Sqrt | numpy.sqrt | Element-wise square root |
| IntPower | numpy.power | Integer power |
| ArcTan2 | numpy.arctan2 | Two-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:
NormL1vsnorm(ord=1)— clearer which normStdDevvsstd— spelled outProductvsprod— spelled out