Outer: Outer function

View source: R/Outer.R

Outer functionR Documentation

Outer function

Description

The outer function.

Usage

Outer(x, y, oper = "*")

Arguments

x

A numerical vector.

y

A numerical vector.

oper

The available options are "*" (multiplication), "/" (division), "+" (sum), "-" (substraction), "^" (power raise), and "

Details

The function is the same as R's "outer", but works with vectors only and probably has less capabilities, but faster.

Value

A matrix with all the combinations.

Author(s)

Manos Papadakis and Michail Tsagris

R implementation and documentation: Manos Papadakis <papadakm95@gmail.com> and Michail Tsagris <mtsagris@uoc.gr>.

See Also

mat.mult, vecdist

Examples

x <- rnorm(10)
y <- rnorm(10)
res<-Outer(x, y)

Rfast documentation built on Nov. 9, 2023, 5:06 p.m.