Difference between set and add functions of the Matrix class

Asked by Alejandro Ortiz-Bernardin on 2013-02-15

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:
2013-02-15
Last query:
2013-02-15
Last reply:
2013-02-15
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

Thanks Anders Logg, that solved my question.