Skip to content

Commit

Permalink
now allowing -Eye as described in issue #8
Browse files Browse the repository at this point in the history
  • Loading branch information
lakras committed Apr 18, 2019
1 parent fc70a2b commit d45fc89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions matlab_to_julia_translator.js
Original file line number Diff line number Diff line change
Expand Up @@ -707,8 +707,8 @@ translate = function(input)
{
packages.add("FillArrays");
}
contents = contents.replace(/([^\w\d_])(kron\s*\(\s*)eye(\s*\([^()]*\)\s*,\s*[^()]+\s*\))/g, "$1$2Eye{Int}$3");
contents = contents.replace(/([^\w\d_])(kron\s*\(\s*[^()]+\s*,\s*)eye(\s*\([^()]*\)\s*\))/g, "$1$2Eye{Int}$3");
contents = contents.replace(/([^\w\d_])(kron\s*\(\s*[^\w\d_]*)eye(\s*\([^()]*\)\s*,\s*[^()]+\s*\))/g, "$1$2Eye{Int}$3");
contents = contents.replace(/([^\w\d_])(kron\s*\(\s*[^()]+\s*,\s*[^\w\d_]*)eye(\s*\([^()]*\)\s*\))/g, "$1$2Eye{Int}$3");

// IDENTITY MATRIX
// eye(2, 2) -> I
Expand Down

0 comments on commit d45fc89

Please sign in to comment.