kao.math.matvec.lib.Struct Class Reference
Routines for manipulating the structure of matrices and vectors.
More...
List of all members.
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:
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:
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