Skip to content

Instantly share code, notes, and snippets.

@lamvann
Created October 19, 2017 20:10
Show Gist options
  • Save lamvann/d1163c736b44b54e86e692afe6dbf711 to your computer and use it in GitHub Desktop.
Save lamvann/d1163c736b44b54e86e692afe6dbf711 to your computer and use it in GitHub Desktop.
Some useful utilities to do linear algebra in J.
dot =. (+/ . *)
ma =.%: @: (+/ @: *:)
ca =. (([:-/ @: *: (ma x) , ([:ma [-]) , ma y ) % (2: * (ma x) * (ma y)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment