resize: New Dimensions with Resizing

Description Usage Arguments Value Examples

View source: R/RcppExports.R

Description

Write new dimension vector while keeping the old memory if possible New memory cannot be greater than the very first allocation

Usage

1
resize(x_, di)

Arguments

x_

A numeric array

di

An integer vector, new dimensions

Value

None

Examples

1
2
3
4
5
6
a=matrix(as.double(1:12), 6, 2)
resize(a, c(2, 2))
a
#      [,1] [,2]
# [1,]    1    3
# [2,]    2    4

multbxxc documentation built on Nov. 15, 2019, 5:10 p.m.