Learn R Programming

tropAlgebra (version 0.1.1)

tvectotMatrixProduct: Tropical Vector Matrix Product

Description

This function returns a vector in result of vector matrix tropical product.This function works only if length of vector equal to number of columns of matrix.

Usage

tvectotMatrixProduct(Y,x)

Arguments

Y

A numeric matrix.

x

A numeric vector.

Value

Returns the tropical product of vectror x and matrix Y.

Details

If the given argument x is not a numeric vector or argument Y is not a numeric matrix and the length of vector is not equal to the number of columns of matrix then the function generates an error.

Examples

Run this code
# NOT RUN {
x<-c(1,2,3)
Y<-matrix(c(1,2,3,4,5,6,1,2,3), nrow = 3, ncol = 3)
tvectotMatrixProduct(Y,x)
# }

Run the code above in your browser using DataLab