Return a matrix reshaped according to dimension n and m

reshapeR(A, n, m)

Arguments

A

input matrix

n

desired width

m

desired height

Value

Input matrix A with shape n x m