Skip to contents

This is like which(vec != 0), but with indices sorted by size of vec.

Usage

ordered_nz(vec)

Arguments

vec

a numerical vector