Skip to content

Instantly share code, notes, and snippets.

@ryanrhymes
Created August 1, 2017 09:22
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 ryanrhymes/9f0892ab2b96f81baacd7322d73a4b08 to your computer and use it in GitHub Desktop.
Save ryanrhymes/9f0892ab2b96f81baacd7322d73a4b08 to your computer and use it in GitHub Desktop.
Square of Magic Matrix

Square of Magic Matrix

Coolmodule implements a function to generate the square of magic matrices.

#!/usr/bin/env owl
open Owl
let sqr_magic n = Mat.(magic n |> sqr)
9f0892ab2b96f81baacd7322d73a4b08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment