File tree Expand file tree Collapse file tree
src/analysis_and_optimization Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,13 +72,14 @@ let list_possible_nonlinear (mir : Program.Typed.t) : Location_span.t Set.Poly.t
7272 =
7373 (* These functions are linear if all of their arguments are *)
7474 let linear_fnames =
75- Operator. ([Plus ; PPlus ; Minus ; PMinus ] |> List. map ~f: to_string)
75+ Operator. (
76+ [Plus ; PPlus ; Minus ; PMinus ; PNot ; Transpose ] |> List. map ~f: to_string)
7677 @ [ " add" ; " append_block" ; " append_row" ; " append_col" ; " block" ; " col" ; " cols"
7778 ; " row" ; " rows" ; " diagonal" ; " head" ; " tail" ; " minus" ; " negative_infinity"
7879 ; " not_a_number" ; " rep_matrix" ; " rep_vector" ; " rep_row_vector"
7980 ; " positive_infinity" ; " segment" ; " subtract" ; " sum" ; " to_vector"
8081 ; " to_row_vector" ; " to_matrix" ; " to_array_1d" ; " to_array_2d" ; " transpose"
81- ; " Plus__ " ; " PPlus__ " ; " PMinus__ " ; " Minus__ " ; " PNot__ " ; " Transpose__ " ]
82+ ]
8283 |> String.Set. of_list in
8384 (* A simple check of linearity of an expression.
8485 allow_var is used for expressions like a*b, where at most one
You can’t perform that action at this time.
0 commit comments