20 #include "tensor_take_diag.cc"
32 return do_take_diag(a, which, ndx1, ndx2);
const RTensor take_diag(const RTensor &d, int which=0, int ndx1=0, int ndx2=-1)
Extract a diagonal from a matrix or tensor.
Complex Tensor with elements of type "cdouble".