In file DMatrix.cpp:

DIVAMatrixExport void CDMatrix::Diag(const CDVector &vec)

Make the matrix a diagonal matrix containing 'vec'.

Documentation

This function transforms the matrix into a diagonal matrix, with the values of 'vec' in the diagonal.

Returns:
Nothing.
Parameters:
vec - Vector to place in the diagonal.
Author:
Rune Fisker
Version:
3-14-2001


Back DIVA Reference Manual The DIVA-Site