Difference between set and add functions of the Matrix class

Asked by Alejandro Ortiz-Bernardin

Hi guys,

Short question: what is the difference between set and add functions of the matrix class?

Thank you!
Alejandro

Question information

Language:
English Edit question
Status:
Solved
For:
DOLFIN Edit question
Assignee:
No assignee Edit question
Solved by:
Anders Logg
Solved:
Last query:
Last reply:
Revision history for this message
Best Anders Logg (logg) said :
#1

On Fri, Feb 15, 2013 at 11:45:51AM -0000, Alejandro Ortiz-Bernardin wrote:
> New question #221946 on DOLFIN:
> https://answers.launchpad.net/dolfin/+question/221946
> Hi guys,
> Short question: what is the difference between set and add functions of the matrix class?

'set' will set entries. 'add' will add to entries (+=).

--
Anders

Revision history for this message
Alejandro Ortiz-Bernardin (aortizb) said :
#2

Thanks Anders Logg, that solved my question.