tdets {TML}R Documentation

Calculate the tropical determinant of a square matrix.

Description

This function calculates the tropical determinant (or singularity) of a square matrix

Usage

tdets(P, tadd = max)

Arguments

P

matrix of points defining a tropical polytope. Rows are the points

tadd

function; max indicates max-plus addition, min indicates min-plus addition. Defaults to max

Value

list containing the value of the determinant and reordered matrix P

Author(s)

David Barnhill david.barnhill@nps.edu

Examples

P<-matrix(c(0,0,0,0,2,5,0,3,1),3,3,TRUE)
tdets(P)
tdets(P,tadd=min)

[Package TML version 2.3.0 Index]