comparison src/DLD-FUNCTIONS/spkron.cc @ 5989:e049385342f6

[project @ 2006-09-14 02:10:46 by jwe]
author jwe
date Thu, 14 Sep 2006 02:10:46 +0000
parents 080c08b192d8
children 49724abe1236
comparison
equal deleted inserted replaced
5988:d9ce802628e6 5989:e049385342f6
93 \n\ 93 \n\
94 For example,\n\ 94 For example,\n\
95 \n\ 95 \n\
96 @example\n\ 96 @example\n\
97 @group\n\ 97 @group\n\
98 kron (1:4, ones (3, 1))\n\ 98 kron(speye(3),spdiag([1,2,3]))\n\
99 @result{} 1 2 3 4\n\ 99 @result{}\n\
100 1 2 3 4\n\ 100 Compressed Column Sparse (rows = 9, cols = 9, nnz = 9)\n\
101 1 2 3 4\n\ 101 \n\
102 (1, 1) -> 1\n\
103 (2, 2) -> 2\n\
104 (3, 3) -> 3\n\
105 (4, 4) -> 1\n\
106 (5, 5) -> 2\n\
107 (6, 6) -> 3\n\
108 (7, 7) -> 1\n\
109 (8, 8) -> 2\n\
110 (9, 9) -> 3\n\
102 @end group\n\ 111 @end group\n\
103 @end example\n\ 112 @end example\n\
104 @end deftypefn") 113 @end deftypefn")
105 { 114 {
106 octave_value_list retval; 115 octave_value_list retval;