tvectotMatrixProduct {tropAlgebra} | R Documentation |
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. |
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.
Value
Returns the tropical product of vectror x
and matrix Y
.
Examples
x<-c(1,2,3)
Y<-matrix(c(1,2,3,4,5,6,1,2,3), nrow = 3, ncol = 3)
tvectotMatrixProduct(Y,x)
[Package tropAlgebra version 0.1.1 Index]