Learn R Programming

tropAlgebra (version 0.1.0)

vectotMatrixProduct: Vector Matrix Product

Description

This function returns a vector in result of vector matrix product.

Usage

vectotMatrixProduct(x,y)

Arguments

x

A numeric vector

y

A numeric Matrix

Value

Returns the product of vectror x and Matrix y

Details

e.g a vector x x<-c(1,2,3) [1] 1 2 3 a matrix y y<-matrix(c(1,2,3,4,5,6,1,2,3), nrow = 3, ncol = 3) [,1] [,2] [,3] [1,] 1 4 1 [2,] 2 5 2 [3,] 3 6 3 Now function call vectotMatrixProduct(x,y) Then the resultant vector is returned [1] 2 6 4

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)
    vectotMatrixProduct(x,y)
# }

Run the code above in your browser using DataLab