Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 558 Bytes

syntax.md

File metadata and controls

26 lines (18 loc) · 558 Bytes

Vectors/Matrices

example:

column-row syntax: [1, 2, 3; 4, 5, 6; 7, 8, 9]

⎡1  2  3⎤
⎢4  5  6⎥
⎣7  8  9⎦

Product types:

Dot-Product (point- or element-wise product)

a · b (accepts input: a * b and a b)

Tensor-Product (outer product)

a ⊗ b (accepts input: a \x b)

Inner-Product

〈a, b〉 (accepts input: <a, b>)

Functions vs. products

  • f(g) (no space between) means passing the variable g to the function f
  • f (g) (space between) means the dot-product between f and g