Learn R Programming

TML (version 2.3.0)

tdets: 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)

Value

list containing the value of the determinant and reordered matrix P

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

Author

David Barnhill david.barnhill@nps.edu

Examples

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

Run the code above in your browser using DataLab