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.
625
+
626
+
diag(kron(a,b)) -> outer(diag(a), diag(b))
627
+
628
+
Parameters
629
+
----------
630
+
fgraph: FunctionGraph
631
+
Function graph being optimized
632
+
node: Apply
633
+
Node of the function graph to be optimized
634
+
635
+
Returns
636
+
-------
637
+
list of Variable, optional
638
+
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
659
+
660
+
Parameters
661
+
----------
662
+
fgraph: FunctionGraph
663
+
Function graph being optimized
664
+
node: Apply
665
+
Node of the function graph to be optimized
666
+
667
+
Returns
668
+
-------
669
+
list of Variable, optional
670
+
List of optimized variables, or None if no optimization was performed
0 commit comments