order_B: Reorder columns of a square matrix so that the first nonzero...

View source: R/matcal.R

order_BR Documentation

Reorder columns of a square matrix so that the first nonzero elements are in decreasing order

Description

order_B takes a square matrix B as input and reorders its columns so that the diagonal entries of B are in decreasing order. The function is designed to be computationally efficient and ensures that the input is a square matrix.

Usage

order_B(B)

Arguments

B

A square numeric matrix.

Value

A square matrix B with columns reordered so that its diagonal entries are in a decreasing order.


sstvars documentation built on April 11, 2025, 5:47 p.m.