kao.math.matvec.lib.Struct Class Reference

Routines for manipulating the structure of matrices and vectors. More...

List of all members.

Classes

class  Out
 Outputs of the structure manipulation routines. More...

Static Public Member Functions

static Matrix removeColumn (Matrix M, int idx)
static Vector removeElement (Vector v, int idx)
static Out splitCol (Matrix A, int idx)
static Out splitVector (Vector x, int idx)

Detailed Description

Routines for manipulating the structure of matrices and vectors.

Author:
David Kao

Member Function Documentation

static Matrix kao.math.matvec.lib.Struct.removeColumn ( Matrix  M,
int  idx 
) [static]

Remove column from matrix M

Parameters:
[in] M Matrix M
[in] idx Index of column to remove
Returns:
Matrix without column idx
static Vector kao.math.matvec.lib.Struct.removeElement ( Vector  v,
int  idx 
) [static]

Remove element from vector v

Parameters:
[in] v Vector v
[in] idx Index of element to remove
Returns:
Vector without element idx
static Out kao.math.matvec.lib.Struct.splitCol ( Matrix  A,
int  idx 
) [static]

Remove element from array Split matrix A at column index idx such that:

\[ A_{1} = \begin {bmatrix} a_{fr,fc} & \cdots & a_{fr,idx} \\ \hdots & \ddots & \\ a_{lr,fc} & & a_{lr,idx} \end {bmatrix} \]

\[ A_{2} = \begin {bmatrix} a_{fr,idx+1} & \cdots & a_{fr,lc} \\ \hdots & \ddots & \\ a_{lr,idx+1} & & a_{lr,lc} \end {bmatrix} \]

where:

  • fr - index of first row
  • lr - index of last row
  • fc - index of first column
  • lc - index of last column
Parameters:
[in] A Matrix A
[in] idx Column index for split
Returns:
Out.A1
Out.A2
static Out kao.math.matvec.lib.Struct.splitVector ( Vector  x,
int  idx 
) [static]

Split vector v at element index idx such that:

\[ x_{1} = \begin {bmatrix} x_{fe} & \cdots & x_{idx} \end {bmatrix} \]

\[ x_{2} = \begin {bmatrix} x_{idx+1} & \cdots & x_{le} \end {bmatrix} \]

where:

  • fe - index of first element
  • le - index of last element
Parameters:
[in] x Vector x
[in] idx Element index for split
Returns:
Out.x1
Out.x2

Generated on Wed Apr 21 22:01:41 2010 for kao-math by  doxygen 1.6.1