SetDiagonal

Sets the diagonal elements of this matrix with the elements of the vector.

Synopsis

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

Input 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::AddDiagonal(),TaoMat::ShiftDiagonal()

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