tmatrixMultiply: Tropical Product of Matrices

Description Usage Arguments Details Value Examples

Description

This function returns the product of two matrices. This function works only if columns of first matrix eqaual to rows of seconnd matrixs.

Usage

1

Arguments

X

A numeric Matrix.

Y

A numeric Matrix.

Details

If number of columns of first matrix is not equal to the number of rows of second matrix or any one matrix is not a numeric matrix then this functions generates an error. If mxn is first matrix and axb is a second matrix then nxa will be the resultant matrix.

Value

Returns the tropical product of X and Y

Examples

1
2
3
X<-matrix(c(2,3,5,7),ncol=2,nrow=2)
Y<-matrix(c(6,3,1,9),ncol=2, nrow=2)
tmatrixMultiply(X,Y)

tropAlgebra documentation built on May 2, 2019, 7:29 a.m.