Main Page | Modules | Class List | File List | Class Members | File Members

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


Functions

Gan_Matrixgan_mat_extract_q (const 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 (const 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 (const 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 (const 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 const 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 const 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 const 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 const 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 Fri Mar 17 12:44:59 2006 by  doxygen 1.3.9.1