|
COMPLEX | inner_product (COMPLEX *a, COMPLEX *b, int n) |
|
void | matrix_transpose (COMPLEX *A, int m, int n) |
|
void | matrix_vector_product (COMPLEX *A, COMPLEX *b, int m, int n, COMPLEX *res) |
|
void | matrix_vector_product_threaded (COMPLEX *A, COMPLEX *b, int m, int n, COMPLEX *res, int numthread) |
|
A collection of matrix-vector utilities for use with complex-valued data structures
COMPLEX inner_product |
( |
COMPLEX * |
a, |
|
|
COMPLEX * |
b, |
|
|
int |
n |
|
) |
| |
Calculate the inner product,
, of two complex vectors
- Parameters
-
a | pointer to first vector |
b | pointer to second vector |
n | length of the vectors |
void matrix_transpose |
( |
COMPLEX * |
A, |
|
|
int |
m, |
|
|
int |
n |
|
) |
| |
Perform
where (m,n) is the size of the input matrix
- Parameters
-
A | pointer to input data array |
m | number of rows in the data |
n | number of columns in the data |
void matrix_vector_product |
( |
COMPLEX * |
A, |
|
|
COMPLEX * |
b, |
|
|
int |
m, |
|
|
int |
n, |
|
|
COMPLEX * |
res |
|
) |
| |
void matrix_vector_product_threaded |
( |
COMPLEX * |
A, |
|
|
COMPLEX * |
b, |
|
|
int |
m, |
|
|
int |
n, |
|
|
COMPLEX * |
res, |
|
|
int |
numthread |
|
) |
| |
A threaded version of matrix_vector_product
- Parameters
-
A | a pointer to the complex matrix (m rows, n columns) |
b | a pointer to the complex vector (n entrys) |
m | number of rows in A |
n | number of columns in A |
res | a pointer to the result, a complex vector, , (m entrys) |
numthread | default=16 |