Learn R Programming

Rtropical (version 1.2.1)

tropdet: Tropical Determinant of a Matrix

Description

Compute the tropical determinant for a given matrix. This is equivalent to solving an assignment problem.

Usage

tropdet(x)

Arguments

x

a square matrix

Value

The determinant of the given matrix,

Examples

Run this code
# NOT RUN {
R <- matrix(sample(1:9, 9), nrow = 3)
tropdet(R)
# }

Run the code above in your browser using DataLab