JWS C Library
C language utility library
matrix_util.h File Reference

Declarations for matrix utility functions. More...

#include <jwsc/config.h>
#include <stdlib.h>
#include "jwsc/matrix/matrix.h"
Include dependency graph for matrix_util.h:

Go to the source code of this file.

Functions

extend_matrix

Extends a matrix into a padding region.

void extend_matrix_f (Matrix_f **mat_out, const Matrix_f *mat_in, uint32_t row_padding, uint32_t col_padding)
 Extends a single precision matrix into a padding region.

Detailed Description

Declarations for matrix utility functions.

Author:
Joseph Schlecht
License:
Creative Commons BY-NC-SA 3.0

Definition in file matrix_util.h.


Function Documentation

void extend_matrix_f ( Matrix_f **  mat_out,
const Matrix_f mat_in,
uint32_t  row_padding,
uint32_t  col_padding 
)

Extends a single precision matrix into a padding region.

Parameters:
mat_outResult parameter. If *mat_out is NULL, a matrix is allocated; otherwise its space is re-used.
mat_inMatrix to extend.
row_paddingNumber or rows for padding on top and bottom.
col_paddingNumber of columns for padding on left and right.
Note:
If *mat_out == mat_in, then mat_in is overwritten.

Definition at line 73 of file matrix_util.c.