SyTen

◆ makeDiagonal()

template<typename Scalar >
void syten::makeDiagonal ( DenseTensor< 2, Scalar > &  a,
DenseTensor< 1, Scalar > const &  d 
)
inline

Makes a diagonal with elements from d

References syten::DenseTensor< rank, Scalar >::dim(), makeZero(), and SYTEN_ASSERT_DEBUG.

+ Here is the call graph for this function: