Calculates the (log) determinant of a WoodburyMatrix using the matrix determinant lemma.

# S4 method for WoodburyMatrix,logical
determinant(x, logarithm)

Arguments

x

A object that is a subclass of WoodburyMatrix

logarithm

Logical indicating whether to return the logarithm of the matrix.

Value

Same as base::determinant.