Skip to content

Instantly share code, notes, and snippets.

@BitPuffin
Created December 1, 2013 12:33
Show Gist options
  • Save BitPuffin/7733093 to your computer and use it in GitHub Desktop.
Save BitPuffin/7733093 to your computer and use it in GitHub Desktop.
import linagl/matrix
var a: TMatrix[int, range[0..2], range[0..2]] = [[ 1, -5, 3],
[ 0, -2, 6],
[ 7, 2, -4]]
echo a
var v = a.row(0)
var w = a.col(0)
from linagl/vector import `$`
echo v
echo w
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment