slepc-3.6.3 2016-03-29
Report Typos and Errors

# SlepcMatTile

Explicitly build a matrix from four blocks, G = [ a*A b*B; c*C d*D ].

### Synopsis

    #include "slepcsys.h"
    PetscErrorCode SlepcMatTile(PetscScalar a,Mat A,PetscScalar b,Mat B,PetscScalar c,Mat C,PetscScalar d,Mat D,Mat *G)

Collective on Mat

### Input parameters

| A | - matrix for top-left block
| a | - scaling factor for block A
| B | - matrix for top-right block
| b | - scaling factor for block B
| C | - matrix for bottom-left block
| c | - scaling factor for block C
| D | - matrix for bottom-right block
| d | - scaling factor for block D

### Output parameter

G - the resulting matrix

### Notes

In the case of a parallel matrix, a permuted version of G is returned. The permutation is a perfect shuffle such that the local parts of A, B, C, D remain in the local part of G for the same process.

Matrix G must be destroyed by the user.

Location: src/sys/slepcutil.c
Index of all sys routines
Table of Contents for all manual pages
Index of all manual pages