You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This rewrite simplifies the diagonal of the kronecker product of 2 matrices by extracting the individual sub matrices and returning their outer product as a vector.
829
+
830
+
diag(kron(a,b)) -> outer(diag(a), diag(b))
831
+
832
+
Parameters
833
+
----------
834
+
fgraph: FunctionGraph
835
+
Function graph being optimized
836
+
node: Apply
837
+
Node of the function graph to be optimized
838
+
839
+
Returns
840
+
-------
841
+
list of Variable, optional
842
+
List of optimized variables, or None if no optimization was performed
This rewrite simplifies the slogdet of a blockdiagonal matrix by extracting the individual sub matrices and returning the sign and logdet values computed using those
863
+
864
+
Parameters
865
+
----------
866
+
fgraph: FunctionGraph
867
+
Function graph being optimized
868
+
node: Apply
869
+
Node of the function graph to be optimized
870
+
871
+
Returns
872
+
-------
873
+
list of Variable, optional
874
+
List of optimized variables, or None if no optimization was performed
0 commit comments