triagSize {NMdata}R 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)

[Package NMdata version 0.2.0 Index]