|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object numal.lowprecision.Basic
public class Basic
A library of basic operations between matrices and vectrors. These methods make use of lower and upper indices; which allows vectors to be 0-index or 1-index (i.e. a[0...n-1] or a[1...n])
Constructor Summary | |
---|---|
Basic()
|
Method Summary | |
---|---|
static void |
dupvec(int l,
int u,
int shift,
float[] a,
float[] b)
Compute a constant multiple (xb. |
static void |
elmcol(int l,
int u,
int i,
int j,
float[][] a,
float[][] b,
float x)
Adds a constant multiple (x) of part of a column of a rectangular matrix b to part of a column of a rectangular matrix a Method originally from class numal.Basic - Lau (2004) section 1.7.B Real vector and matrix - Elimination p.22. |
static void |
elmrow(int l,
int u,
int i,
int j,
float[][] a,
float[][] b,
float x)
Adds a constant multiple (x) of part of a row of a rectangular matrix b to part of a row of a rectangular matrix a Method originally from class numal.Basic - Lau (2004) section 1.7.B Real vector and matrix - Elimination p.22. |
static float |
matmat(int l,
int u,
int i,
int j,
float[][] a,
float[][] b)
Get the inner product of part of a row of a rectangular matrix a and the corresponding part of a column of a rectangular matrix b. |
static float |
mattam(int l,
int u,
int i,
int j,
float[][] a,
float[][] b)
Compute the inner product of part of a row of a rectangular matrix a and the corresponding part of a row of a rectangular matrix b. |
static float |
matvec(int l,
int u,
int i,
float[][] a,
float[] b)
Compute the inner product of part of a row of a rectangular matrix a and the corresponding part of a vector b. |
static void |
mulcol(int l,
int u,
int i,
int j,
float[][] a,
float[][] b,
float x)
Replace a column sequence of elements of a rectangular matrix a by a constant multiple (xb. |
static void |
rotcol(int l,
int u,
int i,
int j,
float[][] a,
float c,
float s)
Rotates two columns of a rectangular matrix using two parameters a[k][i] = c * a[k][i] + s * a[k][j] (where k = l to u) a[k][j] = c * a[k][j] - s * a[k][i] Method originally from class numal.Basic - Lau (2004) section 1.9.A Real vector and matrix - Rotation p.30. |
static float |
tammat(int l,
int u,
int i,
int j,
float[][] a,
float[][] b)
Compute the inner product of part of a column of a rectangular matrix a and the corresponding part of a column of a rectangular matrix b. |
static float |
tamvec(int l,
int u,
int i,
float[][] a,
float[] b)
Method originally from class numal.Basic - Lau (2004) section 1.4.B Real Vector Vector products p.12. |
static float |
vecvec(int l,
int u,
int shift,
float[] a,
float[] b)
Compute the inner product of part of a vector a and part of a vector b A subset of the inner product can be computed by choosing suitable lower and upper bounds. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Basic()
Method Detail |
---|
public static void dupvec(int l, int u, int shift, float[] a, float[] b)
l
- lower row bound indexu
- upper row bound indexshift
- index shifting parametera
- rectangular output matrixb
- rectangular input matrixpublic static void mulcol(int l, int u, int i, int j, float[][] a, float[][] b, float x)
l
- lower row boundu
- upper row boundi
- column index of aj
- column index of ba
- rectangular matrixb
- rectangular matrixx
- multiplication factorpublic static float vecvec(int l, int u, int shift, float[] a, float[] b)
l
- lower boundu
- upper boundshift
- index-shifting parameter of vector ba
- vectorb
- vector
public static float matvec(int l, int u, int i, float[][] a, float[] b)
l
- lower boundu
- upper boundi
- row index of aa
- rectangular matrixb
- vector
public static float tamvec(int l, int u, int i, float[][] a, float[] b)
l
- lower boundu
- upper boundi
- column index of aa
- rectangular matrix with column [l-u][j] definedb
- vector with entries [l-u] definedpublic static float matmat(int l, int u, int i, int j, float[][] a, float[][] b)
l
- lower row boundu
- upper row boundi
- row index of aj
- column index of ba
- rectangular matrix with row [i][l-u] definedb
- rectangular matrix with column [l-u][j] defined
public static float tammat(int l, int u, int i, int j, float[][] a, float[][] b)
l
- lower row boundu
- upper row boundi
- column index of aj
- column index of ba
- rectangular matrix with column [l-u][i] definedb
- rectangular matrix with column [l-u][j] definedpublic static float mattam(int l, int u, int i, int j, float[][] a, float[][] b)
l
- lower column boundu
- upper column boundi
- row index of aj
- row index of ba
- rectangular matrixb
- rectangular matrix
public static void elmcol(int l, int u, int i, int j, float[][] a, float[][] b, float x)
l
- lower row boundu
- upper row boundi
- column index of aj
- column index of ba
- rectangular matrixb
- rectangular matrixx
- multiplication factorpublic static void elmrow(int l, int u, int i, int j, float[][] a, float[][] b, float x)
l
- lower row boundu
- upper row boundi
- column index of aj
- column index of ba
- rectangular matrixb
- rectangular matrixx
- multiplication factorpublic static void rotcol(int l, int u, int i, int j, float[][] a, float c, float s)
l
- lower row boundu
- upper row boundi
- column index of aj
- column index of aa
- rectangular matrixc
- cosine multiplication parameters
- sine multiplication parameter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |