Main Page   Modules   Compound List   File List   Compound Members   File Members  

Extract Part of a General Size Matrix
[General Size Matrices]


Functions

Gan_Matrixgan_mat_extract_q (Gan_Matrix *A, unsigned long r0, unsigned long c0, unsigned long rows, unsigned long cols, Gan_Matrix *B)
 Extracts rectangular part of matrix.

Gan_Matrixgan_mat_extract_s (Gan_Matrix *A, unsigned long r0, unsigned long c0, unsigned long rows, unsigned long cols)
 Macro: Extracts rectangular part of matrix.

Gan_Matrix_fgan_matf_extract_q (Gan_Matrix_f *A, unsigned long r0, unsigned long c0, unsigned long rows, unsigned long cols, Gan_Matrix_f *B)
 Extracts rectangular part of matrix.

Gan_Matrix_fgan_matf_extract_s (Gan_Matrix_f *A, unsigned long r0, unsigned long c0, unsigned long rows, unsigned long cols)
 Macro: Extracts rectangular part of matrix.


Function Documentation

Gan_Matrix* gan_mat_extract_q Gan_Matrix   A,
unsigned long    r0,
unsigned long    c0,
unsigned long    rows,
unsigned long    cols,
Gan_Matrix   B
 

Extracts rectangular part of matrix.

Parameters:
A Input Matrix
r0 row offset of start of region to be extracted
c0 column offset of start of region to be extracted
rows Height of region to be extracted
cols Width of region to be extracted
B output matrix
Returns:
Pointer to the output matrix B, or NULL on failure.
Extracts the given rectangular part of matrix A, copies it into matrix B, and returns B. If B is passed as NULL, the output matrix is allocated inside the function, and then returned.
See also:
gan_mat_extract_s(), gan_mat_insert().

Gan_Matrix* gan_mat_extract_s Gan_Matrix   A,
unsigned long    r0,
unsigned long    c0,
unsigned long    rows,
unsigned long    cols
 

Macro: Extracts rectangular part of matrix.

Parameters:
A Input Matrix
r0 row offset of start of region to be extracted
c0 column offset of start of region to be extracted
rows Height of region to be extracted
cols Width of region to be extracted
Returns:
Non-NULL Pointer to the output matrix, or NULL on failure.
Extracts the given rectangular part of matrix A, copies it and returns it as a new matrix.

Implemented as a macro call to gan_mat_extract_q().

See also:
gan_mat_extract_q(), gan_mat_insert().

Gan_Matrix_f* gan_matf_extract_q Gan_Matrix_f   A,
unsigned long    r0,
unsigned long    c0,
unsigned long    rows,
unsigned long    cols,
Gan_Matrix_f   B
 

Extracts rectangular part of matrix.

Parameters:
A Input Matrix
r0 row offset of start of region to be extracted
c0 column offset of start of region to be extracted
rows Height of region to be extracted
cols Width of region to be extracted
B output matrix
Returns:
Pointer to the output matrix B, or NULL on failure.
Extracts the given rectangular part of matrix A, copies it into matrix B, and returns B. If B is passed as NULL, the output matrix is allocated inside the function, and then returned.
See also:
gan_matf_extract_s(), gan_matf_insert().

Gan_Matrix_f* gan_matf_extract_s Gan_Matrix_f   A,
unsigned long    r0,
unsigned long    c0,
unsigned long    rows,
unsigned long    cols
 

Macro: Extracts rectangular part of matrix.

Parameters:
A Input Matrix
r0 row offset of start of region to be extracted
c0 column offset of start of region to be extracted
rows Height of region to be extracted
cols Width of region to be extracted
Returns:
Non-NULL Pointer to the output matrix, or NULL on failure.
Extracts the given rectangular part of matrix A, copies it and returns it as a new matrix.

Implemented as a macro call to gan_matf_extract_q().

See also:
gan_matf_extract_q(), gan_matf_insert().


Generated on Mon Oct 13 16:14:59 2003 by doxygen1.3-rc1