Skip to content

Commit

Permalink
Added a little comment that clarifies behavior more
Browse files Browse the repository at this point in the history
  • Loading branch information
taiypeo committed Aug 9, 2017
1 parent 1b0c062 commit 8421012
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion com/qwertygid/deutschsim/Logic/Gate.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public Gate(final String id, final Table<Gate> gates) {

public Gate(final String id, final FieldMatrix<Complex> mat) {
this.id = id;
this.IO_ports = (int) (Math.log(mat.getColumnDimension()) / Math.log(2));
this.IO_ports = (int) (Math.log(mat.getColumnDimension()) / Math.log(2)); // Get base-2 logarithm of mat.getColumnDimension()
this.mat = mat;

if (!valid())
Expand Down

0 comments on commit 8421012

Please sign in to comment.