Dimensions: dimensions

07-DimensionsR Documentation

dimensions

Description

Returns the number of rows or cols in an MPCR object.

Usage

## S4 method for signature 'Rcpp_MPCR'
nrow(x)

## S4 method for signature 'Rcpp_MPCR'
ncol(x)

Arguments

x

An MPCR object.

Value

The number of rows/cols in an MPCR object.

Examples

    library(MPCR)
    x <- as.MPCR(1:16,4,4,"single")
    y <- as.MPCR(1:20,4,5,"double")
    rows_x <- nrow(x)
    cols_y <- ncol(y)

MPCR documentation built on April 13, 2025, 5:08 p.m.

Related to Dimensions in MPCR...