BeBOP Optimized Sparse Kernel Interface Library  1.0.1h
Functions
matcommon.c File Reference

Support routines for the data structure containing common matrix properties. More...

#include <oski/common.h>
#include <oski/mangle.h>
#include <oski/matcommon.h>

Functions

oski_inmatprop_t oski_TransposePatternProp (oski_inmatprop_t pattern)
 This routine returns the same pattern if it is unknown or does not have a corresponding transpose.
void oski_TransposeProps (oski_matcommon_t *props)
 Changes the common properties of some matrix $A$ to the equivalent properties of $A^T$.

Detailed Description

Support routines for the data structure containing common matrix properties.


Function Documentation

This routine returns the same pattern if it is unknown or does not have a corresponding transpose.

Given a pattern type, return the corresponding transposed type.

References MAT_HERM_LOWER, MAT_HERM_UPPER, MAT_SYMM_LOWER, MAT_SYMM_UPPER, MAT_TRI_LOWER, and MAT_TRI_UPPER.

Changes the common properties of some matrix $A$ to the equivalent properties of $A^T$.

Transpose common properties.

Parameters:
[in,out]propsProperties to transpose. Overwritten on return.

References oski_matcommon_t::is_tri_lower, oski_matcommon_t::is_tri_upper, oski_matcommon_t::num_cols, oski_matcommon_t::num_rows, and oski_matcommon_t::pattern.