NeoN
A framework for CFD software
Loading...
Searching...
No Matches
utilities.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  NeoN
 Integer types used throughout NeoN.
namespace  NeoN::la

Functions

Vector< localIdx > NeoN::la::unpackColIdx (const Vector< localIdx > &in, const Vector< localIdx > &unpackedRowOffs, const Vector< localIdx > &packedRowOffs)
Vector< localIdx > NeoN::la::unpackRowOffs (const Vector< localIdx > &in)
Vector< scalar > NeoN::la::unpackVecValues (const Vector< Vec3 > &in)
void NeoN::la::packVecValues (const Vector< scalar > &in, Vector< Vec3 > &out)
Vector< scalar > NeoN::la::unpackMtxValues (const Vector< Vec3 > &in, const Vector< localIdx > &rowOffs, const Vector< localIdx > &newRowOffs)
template<typename MatrixType, typename ValueType = scalar>
void NeoN::la::computeResidual (const MatrixType &mtx, const Vector< ValueType > &b, const Vector< ValueType > &x, Vector< ValueType > &res)
 given a linear system consisting of A, b and x the operator computes the residual vector Ax-b
template<typename IndexType>
Vector< IndexType > NeoN::la::rowsToRowOffs (const Vector< IndexType > &rows)
 given a set off row idx this function converts to rowOffsets