# MatTransColoringApplySpToDen
Given a symbolic matrix product C=A*B^T for which a `MatTransposeColoring` context has been created, computes a dense B^T by applying `MatTransposeColoring` to sparse B. 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatTransColoringApplySpToDen(MatTransposeColoring coloring, Mat B, Mat Btdense)
```
Collective on coloring


## Input Parameters

- ***B -*** sparse matrix B
- ***Btdense -*** symbolic dense matrix B^T
- ***coloring -*** coloring context created with `MatTransposeColoringCreate()`



## Output Parameter

- ***Btdense -*** dense matrix B^T





## Note
These are used internally for some implementations of `MatRARt()`


## See Also
 `MatTransposeColoringCreate()`, `MatTransposeColoringDestroy()`, `MatTransColoringApplyDenToSp()`


## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/interface/matrix.c.html#MatTransColoringApplySpToDen">src/mat/interface/matrix.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/aij/seq/matmatmult.c.html#MatTransColoringApplySpToDen_SeqAIJ">MatTransColoringApplySpToDen_SeqAIJ in src/mat/impls/aij/seq/matmatmult.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/interface/matrix.c)


[Index of all Mat routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
