petsc-3.7.3 2016-07-24
Report Typos and Errors

# 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

### Examples

src/tao/pde_constrained/examples/tutorials/elliptic.c.html