crossprod {float}R Documentation

crossprod

Description

Croddproducts.

Usage

## S4 method for signature 'Mat'
crossprod(x, y = NULL)

## S4 method for signature 'Mat'
tcrossprod(x, y = NULL)

Arguments

x

A float vector/matrix.

y

Either NULL, or a numeric/float matrix.

Details

If y is a numeric matrix, then x will be promoted to a numeric matrix, and the return will therefore be numeric (not float).

Value

A float matrix (unless y is numeric; see details section).

Examples

library(float)

s = flrunif(10, 3)
crossprod(s)
tcrossprod(s)


[Package float version 0.3-2 Index]