Skip to contents

Applies a function to a matrix by horizontal or vertical blocks.

Usage

apply_by_block(Y, layout, L, FUN, ...)

Arguments

Y

Matrix

layout

Blocks are distributed: 1 horizontally, 2 vertically.

L

Number of lines of the block.

FUN

Funtion to apply to the block.

...

Arguments to be passed to FUN.

Value

A matrix.