petsc-3.4.5 2014-06-29

MatCreateLRC

Creates a new matrix object that behaves like A + U*V'

Synopsis

#include "petscmat.h" 
PetscErrorCode  MatCreateLRC(Mat A,Mat U, Mat V,Mat *N)
Collective on Mat

Input Parameter

A - the (sparse) matrix
U. V - two dense rectangular (tall and skinny) matrices

Output Parameter

N -the matrix that represents A + U*V'

Notes: The matrix A + U*V' is not formed! Rather the new matrix object performs the matrix-vector product by first multiplying by A and then adding the other term

Level:intermediate
Location:
src/mat/impls/lrc/lrc.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages