triagSize: Calculate number of elements for matrix specification

View source: R/NMreadInits.R

triagSizeR Documentation

Calculate number of elements for matrix specification

Description

calculate number of elements in the diagonal and lower triangle of a squared matrix, based on the length of the diagonal.

Usage

triagSize(diagSize)

Arguments

diagSize

The length of the diagonal. Same as number of rows or columns.

Value

An integer

Examples

triagSize(1:5)

NMdata documentation built on April 4, 2025, 2:11 a.m.