Learn R Programming

lazyNumbers (version 1.2.1)

lazyDet: Determinant of lazy matrix

Description

Compute the determinant of a lazy matrix.

Usage

lazyDet(M)

Value

A lazy number (lazyVector object with length 1).

Arguments

M

a lazyMatrix object corresponding to a square matrix

Examples

Run this code
M <- lazymat(toeplitz(c(3, 2, 1)))
as.double(lazyDet(M))

Run the code above in your browser using DataLab