Mercurial > hg > octave-lyh
comparison scripts/sparse/spalloc.m @ 5642:2618a0750ae6
[project @ 2006-03-06 21:26:48 by jwe]
author | jwe |
---|---|
date | Mon, 06 Mar 2006 21:26:54 +0000 |
parents | 4c8a2e4e0717 |
children | 8b0cfeb06365 |
comparison
equal
deleted
inserted
replaced
5641:eb998631a4aa | 5642:2618a0750ae6 |
---|---|
34 ## endfor | 34 ## endfor |
35 ## @end example | 35 ## @end example |
36 ## | 36 ## |
37 ## will reallocate memory at each step. It is therefore vitally important | 37 ## will reallocate memory at each step. It is therefore vitally important |
38 ## that code like this is vectorized as much as possible. | 38 ## that code like this is vectorized as much as possible. |
39 ## @seealso{sparse, nzmax} | |
39 ## @end deftypefn | 40 ## @end deftypefn |
40 ## @seealso{sparse, nzmax} | |
41 | 41 |
42 function s = spalloc (r, c, nz) | 42 function s = spalloc (r, c, nz) |
43 s = sparse (r, c); | 43 s = sparse (r, c); |
44 endfunction | 44 endfunction |