Overview
Comment:Returns empty matrix when first parameter <1
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 30181bc6e02516a4ff5a56d96316464784d490c1d28587225c35f8b8fe555362
User & Date: gawthrop@users.sourceforge.net on 2002-04-28 15:35:24
Other Links: branch diff | manifest | tags
Context
2002-04-28
15:36:55
Modified to handle less basis functions than total inputs check-in: e499d1b480 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
15:35:24
Returns empty matrix when first parameter <1 check-in: 30181bc6e0 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
02:54:55
Intitial versions of debian package control files. check-in: 457a67fbda user: geraint@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/lib/control/PPP/laguerre_matrix.m from [2bc3da3dab] to [5e8ca33d42].

1
2
3
4
5
6
7
8


9
10
11
12
13

14
15
function A = laguerre_matrix (n,p)

  ## usage:  A = laguerre_matrix (n,p)
  ##
  ## A-matrix for generating nth order Laguerre functions with parameter p

  ## Copyright (C) 1999 by Peter J. Gawthrop



  ## Create A matrix
  A = diag(-p*ones(n,1));
  for i=1:n-1
    A = A + diag(-2*p*ones(n-i,1),-i);
  endfor


endfunction








>
>
|
|
|
|
|
>


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
function A = laguerre_matrix (n,p)

  ## usage:  A = laguerre_matrix (n,p)
  ##
  ## A-matrix for generating nth order Laguerre functions with parameter p

  ## Copyright (C) 1999 by Peter J. Gawthrop

  if n<1			# Creatre empty matrix
    A = [];
  else				# Create A matrix
    A = diag(-p*ones(n,1));
    for i=1:n-1
      A = A + diag(-2*p*ones(n-i,1),-i);
    endfor
  endif

endfunction


MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]