Skip to content

Instantly share code, notes, and snippets.

@ffloyd
Created April 20, 2014 16:05
Show Gist options
  • Save ffloyd/11117718 to your computer and use it in GitHub Desktop.
Save ffloyd/11117718 to your computer and use it in GitHub Desktop.
metacl source
configure do
lang :c
end
create_matrix :a, :float, 10, 10, fill_with: 1
create_matrix :b, :float, 10, 10, fill_with: 2
create_matrix :c, :float, 10, 10, fill_with: 3
create_matrix :d, :float, 10, 10, fill_with: 4
create_matrix :result, :float, 10, 10
calculate_matrix :result do
:a + :b + (:c - :d)
end
print_matrix :result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment