# GetDiagonal

Inserts the diagonal elements of this matrix into the vector.

## Synopsis

    #include "tao_solver.h"
    int TaoMat::GetDiagonal(TaoVec* tv)

## Output Parameter

tv -the vector containing the diagonal elements

## Note

This method can also be called by using a pointer to TaoVec as an input parameter.

## See Also

TaoMat::SetDiagonal()

Level:intermediate
Location:src/matrix/taomat.c
TAO Solver Index
Table of Contents