[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gsl] deallocation?

From: Brian Gough
Subject: Re: [Help-gsl] deallocation?
Date: Sat, 1 Nov 2003 17:55:51 +0000

Tom Weber writes:
 > I have another question: should vectors, matrices, rng's etc be deallocated 
 > upon exit, or are they automatically cleaned up?

It is good practice to deallocate them when they are no longer needed,
but if the program exits the operating system frees all memory anyway.

 > And, how do I deallocate a matrix view?

You don't need to, it is just a local variable (structure) and
disappears when its function returns.

Brian Gough

reply via email to

[Prev in Thread] Current Thread [Next in Thread]