Mercurial > octave
diff libinterp/corefcn/sparse.cc @ 26600:f6730533820e stable
doc: clean up doc example blocks for accuracy and consistent formatting
* bitset.m, circshift.m, idivide.m, int2str.m, integral3.m, num2str.m, rat.m,
repelem.m, shiftdim.m, structfun.m, trapz.m, condeig.m, cross.m, qzhess.m,
computer.m, fullfile.m, orderfields.m, substruct.m, swapbytes.m, contourc.m,
isprime.m, runlength.m, clock.m, date.m: Fix presentation and formatting of
example block results.
* graphics.cc (Fset): Likewise.
* sparse.cc (Fsparse): Likewise.
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Tue, 22 Jan 2019 13:45:11 -0800 |
parents | 00f796120a6d |
children | c0d8ce61c1c9 |
line wrap: on
line diff
--- a/libinterp/corefcn/sparse.cc Tue Jan 22 10:49:46 2019 -0800 +++ b/libinterp/corefcn/sparse.cc Tue Jan 22 13:45:11 2019 -0800 @@ -120,10 +120,10 @@ @var{i} = [1 1 2]; @var{j} = [1 1 2]; @var{sv} = [3 4 5]; sparse (@var{i}, @var{j}, @var{sv}, 3, 4) @result{} -Compressed Column Sparse (rows = 3, cols = 4, nnz = 2 [17%]) + Compressed Column Sparse (rows = 3, cols = 4, nnz = 2 [17%]) - (1, 1) -> 7 - (2, 2) -> 5 + (1, 1) -> 7 + (2, 2) -> 5 @end group @end example @@ -134,10 +134,10 @@ @var{i} = [1 1 2]; @var{j} = [1 1 2]; @var{sv} = [3 4 5]; sparse (@var{i}, @var{j}, @var{sv}, 3, 4, "unique") @result{} -Compressed Column Sparse (rows = 3, cols = 4, nnz = 2 [17%]) + Compressed Column Sparse (rows = 3, cols = 4, nnz = 2 [17%]) - (1, 1) -> 4 - (2, 2) -> 5 + (1, 1) -> 4 + (2, 2) -> 5 @end group @end example @seealso{full, accumarray, spalloc, spdiags, speye, spones, sprand, sprandn, sprandsym, spconvert, spfun}