Skip to content

Instantly share code, notes, and snippets.

@mattharrigan
Last active October 11, 2018 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattharrigan/68b292e64381bba6b78a06a6f1762fa2 to your computer and use it in GitHub Desktop.
Save mattharrigan/68b292e64381bba6b78a06a6f1762fa2 to your computer and use it in GitHub Desktop.

Elementwise multiplication:

A_i=B_iC_i

Matrix multiplication:

A_{ik}=B_{ij}C_{jk}

Elementwise maximum:

A_i=\text{max}(B_i,C_i)

Fancy boolean indexing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment