get_diags_of_array: Get diagnoal elements of all slices of an array

View source: R/auxiliary_functions.R

get_diags_of_arrayR Documentation

Get diagnoal elements of all slices of an array

Description

Extracts diagonals of all slices of an array (i.e. of arr[,,1], arr[,,2], ... and stacks them in one vector.)

Usage

get_diags_of_array(arr)

Arguments

arr

An array.


jbracher/hhh4addon documentation built on Feb. 16, 2024, 1:45 a.m.