inprod: Function to compute inner product of two vectors.

Description Usage Arguments Value Author(s) Examples

View source: R/inprod.R

Description

Function to compute inner product of two vectors.

Usage

1
inprod(v1, v2)

Arguments

v1

numeric vector

v2

numeric vector of same length as v1

Value

scalar; inner product of v1 and v2

Author(s)

Kate Cowles

Examples

1
2
3
4
5
6
7
8
9
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function( v1, v2)
{
    sum( v1 * v2)
}

CARrampsOcl documentation built on May 2, 2019, 3:27 a.m.