Skip to content
Snippets Groups Projects
Commit e1ff9930 authored by Marcel Koch's avatar Marcel Koch
Browse files

let loopy manage determinants st vectorization is possible

parent 95509ed1
No related branches found
No related tags found
No related merge requests found
...@@ -17,7 +17,7 @@ import itertools as it ...@@ -17,7 +17,7 @@ import itertools as it
def define_determinant(name, matrix, shape, visitor): def define_determinant(name, matrix, shape, visitor):
temporary_variable(name) temporary_variable(name, managed=True)
assert len(shape) == 2 and shape[0] == shape[1] assert len(shape) == 2 and shape[0] == shape[1]
dim = shape[0] dim = shape[0]
...@@ -46,7 +46,7 @@ def define_determinant(name, matrix, shape, visitor): ...@@ -46,7 +46,7 @@ def define_determinant(name, matrix, shape, visitor):
def define_determinant_inverse(name, matrix, shape, visitor): def define_determinant_inverse(name, matrix, shape, visitor):
det = name_determinant(matrix, shape, visitor) det = name_determinant(matrix, shape, visitor)
temporary_variable(name) temporary_variable(name, managed=True)
instruction(expression=prim.Quotient(1, prim.Variable(det)), instruction(expression=prim.Quotient(1, prim.Variable(det)),
assignee=prim.Variable(name), assignee=prim.Variable(name),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment