MatH2OpusSetNativeMult — PETSc 3.25.4 documentation

Skip to main content
`Ctrl`+`K`

# MatH2OpusSetNativeMult

Enable or disable the native H2Opus matrix-vector multiplication path for a `MATH2OPUS`.

## Synopsis

    #include "petscmat.h"
    PetscErrorCode MatH2OpusSetNativeMult(Mat A, PetscBool nm)

Logically Collective

## Input Parameters

- A - the `MATH2OPUS` matrix

- nm - `PETSC_TRUE` to enable the native H2Opus multiply layout, `PETSC_FALSE` to use the PETSc layout

## Note

Switching this flag swaps the row and column `PetscLayout`s of `A` with those needed by H2Opus so that vectors created by `MatCreateVecs()` are compatible with the currently selected multiplication path.

## See Also

`Mat`, `MATH2OPUS`, `MatH2OpusGetNativeMult()`

## Level

advanced

## Location

src/mat/impls/h2opus/cuda/math2opus.cu

Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages