Memory allocation: Difference between revisions

Content added Content deleted
Line 766: Line 766:


=={{header|Julia}}==
=={{header|Julia}}==
Julia has memory management. Objects are freed from memory automatically. Because vectors and matrices, unlike lists, can have fixed size allocations in memory, these can be allocated implicitly with a call to a function returning a vector, or explicitly by assigning the memory to a variable:
Julia has memory management. Objects are freed from memory automatically. Because arrays such as vectors and matrices, unlike lists, can have fixed size allocations in memory, these can be allocated implicitly with a call to a function returning a vector, or explicitly by assigning the memory to a variable:
<lang julia>
<lang julia>
matrix = Array{Float64,2}(100,100)
matrix = Array{Float64,2}(100,100)