bayespy.utils.misc.get_diag
¶
bayespy.utils.misc.
get_diag
(
X
,
ndim
=
1
,
ndim_to
=
0
)
[source]
¶
Get the diagonal of an array.
If ndim>1, take the diagonal of the last 2*ndim axes.
BayesPy
Navigation
Introduction
User guide
Examples
Developer guide
User API
Developer API
Developer nodes
Moments
Distributions
Utility functions
Related Topics
Documentation overview
Developer API
Utility functions
bayespy.utils.misc
Previous:
bayespy.utils.misc.gaussian_logpdf
Next:
bayespy.utils.misc.gradient
Quick search