Skip to content

Instantly share code, notes, and snippets.

@martenlienen
Created May 13, 2013 10:33
Show Gist options
  • Save martenlienen/5567443 to your computer and use it in GitHub Desktop.
Save martenlienen/5567443 to your computer and use it in GitHub Desktop.
public static void main () {
Matrix a = new Matrix({{1, 2}, {0, 1}});
Matrix b = new Matrix({{3, 3}, {-1, 4}});
Matrix ab = a.times(b);
// Das soll dann 3 ausgeben
System.out.println(ab.trace());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment