Matrix-methods: S4 methods for products of matrix objects

Matrix-methodsR Documentation

S4 methods for products of matrix objects

Description

Several methods for products of matrix objects. Here a matrix object can be an ordinary (dense) matrix or a (sparse) Matrix of class ddiMatrix-class, tabMatrix, dgCMatrix-class, or dsCMatrix-class. The return types are restricted to matrix or numeric in case of dense objects, and dgCMatrix, dsCMatrix, ddiMatrix or tabMatrix in case of sparse objects.

Usage

## S4 method for signature 'ddiMatrix,matrix'
x %*% y

## S4 method for signature 'dgCMatrix,matrix'
x %*% y

## S4 method for signature 'dsCMatrix,matrix'
x %*% y

## S4 method for signature 'tabMatrix,matrix'
x %*% y

## S4 method for signature 'matrix,tabMatrix'
x %*% y

## S4 method for signature 'tabMatrix,numLike'
x %*% y

## S4 method for signature 'ddiMatrix,dgCMatrix'
x %*% y

## S4 method for signature 'ddiMatrix,tabMatrix'
x %*% y

## S4 method for signature 'CsparseMatrix,tabMatrix'
x %*% y

## S4 method for signature 'tabMatrix,CsparseMatrix'
x %*% y

## S4 method for signature 'matrix,dgCMatrix'
tcrossprod(x, y)

## S4 method for signature 'matrix,tabMatrix'
tcrossprod(x, y)

## S4 method for signature 'matrix,ddiMatrix'
tcrossprod(x, y)

## S4 method for signature 'tabMatrix,missing'
crossprod(x, y)

## S4 method for signature 'tabMatrix,matrix'
crossprod(x, y)

## S4 method for signature 'tabMatrix,dgCMatrix'
crossprod(x, y)

## S4 method for signature 'tabMatrix,tabMatrix'
crossprod(x, y)

## S4 method for signature 'dgCMatrix,matrix'
crossprod(x, y)

Arguments

x

a matrix object.

y

a matrix object.

Value

A matrix object. In case one of the arguments is a regular (dense) matrix the result is a matrix as well.


mcmcsae documentation built on May 29, 2024, 8:46 a.m.