Learn R Programming

IFC (version 0.1.1)

cpp_crop: Matrix Cropping

Description

Crops mat according to new_height and new_width parameters.

Arguments

mat

a numeric matrix.

new_height

an unsigned integer, giving the new height of returned mat. Default is 0 for no change.

new_width

an unsigned integer, giving the new width of returned mat. Default is 0 for no change.

Value

a cropped matrix.