Learn R Programming

mcmcsae (version 0.6.0)

Matrix-methods: 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 ddiMatrix,matrix
%*%(x, y)

# S4 method for dgCMatrix,matrix %*%(x, y)

# S4 method for dsCMatrix,matrix %*%(x, y)

# S4 method for tabMatrix,matrix %*%(x, y)

# S4 method for ddiMatrix,dgCMatrix %*%(x, y)

# S4 method for ddiMatrix,tabMatrix %*%(x, y)

# S4 method for CsparseMatrix,tabMatrix %*%(x, y)

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

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

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

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

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

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

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

# S4 method for 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.