pseudo_invert {rhype}R Documentation

Pseudo-Invert a Vector

Description

Pseudoinversion is where a vector has each non-zero element inverted and each zero element remains untouched. This is useful for pseudoinverting matrices that only have non-zero entries on the leading diagonal.

Usage

pseudo_invert(vec)

Arguments

vec

A vector of numbers

Value

A vector of pseudo-inverted numbers


[Package rhype version 0.3.0 Index]