comparison scripts/linear-algebra/kron.m @ 3372:f16c2ce14886

[project @ 1999-11-23 19:07:09 by jwe]
author jwe
date Tue, 23 Nov 1999 19:07:18 +0000
parents 029fac81ac65
children f8dde1807dee
comparison
equal deleted inserted replaced
3371:86873384cd10 3372:f16c2ce14886
15 ## You should have received a copy of the GNU General Public License 15 ## You should have received a copy of the GNU General Public License
16 ## along with Octave; see the file COPYING. If not, write to the Free 16 ## along with Octave; see the file COPYING. If not, write to the Free
17 ## Software Foundation, 59 Temple Place - Suite 330, Boston, MA 17 ## Software Foundation, 59 Temple Place - Suite 330, Boston, MA
18 ## 02111-1307, USA. 18 ## 02111-1307, USA.
19 19
20 ## Usage: x = kron (a, b) 20 ## -*- texinfo -*-
21 ## 21 ## @deftypefn {Function File} {} kron (@var{a}, @var{b})
22 ## Form the Kronecker product of two matrices, defined block by block 22 ## Form the kronecker product of two matrices, defined block by block as
23 ## as 23 ##
24 ## 24 ## @example
25 ## x = [a(i,j) b] 25 ## x = [a(i, j) b]
26 ## @end example
27 ##
28 ## For example,
29 ##
30 ## @example
31 ## @group
32 ## kron (1:4, ones (3, 1))
33 ## @result{} 1 2 3 4
34 ## 1 2 3 4
35 ## 1 2 3 4
36 ## @end group
37 ## @end example
38 ## @end deftypefn
26 39
27 ## Author: A. S. Hodel <scotte@eng.auburn.edu> 40 ## Author: A. S. Hodel <scotte@eng.auburn.edu>
28 ## Created: August 1993 41 ## Created: August 1993
29 ## Adapted-By: jwe 42 ## Adapted-By: jwe
30 43