![]() |
G+Smo
25.01.0
Geometry + Simulation Modules
|
Utility functions related to tensor-structured objects. More...
Include dependency graph for gsTensorTools.h:Go to the source code of this file.
Namespaces | |
| namespace | gismo |
| The G+Smo namespace, containing all definitions for the library. | |
Functions | |
| template<typename T , int d> | |
| void | flipTensorVector (const int dir, const gsVector< index_t, d > &sz, gsMatrix< T > &coefs) |
| Flips tensor directions in place. | |
| template<int d> | |
| int | fromTensorIndex (const gsVector< unsigned, d > &idx, const gsVector< unsigned, d > &sz) |
| Helper function to compute a lexicographically numbered index from tensor indices. | |
| template<typename T , int d> | |
| void | permuteTensorVector (const gsVector< index_t, d > &perm, gsVector< index_t, d > &sz, gsMatrix< T > &coefs) |
| template<typename T , int d> | |
| void | swapTensorDirection (int k1, int k2, gsVector< index_t, d > &sz, gsMatrix< T > &coefs) |
| template<short_t d, typename T > | |
| void | tensorCombineTransferMatrices (gsSparseMatrix< T, RowMajor > B[d], gsSparseMatrix< T, RowMajor > &transfer) |
| Combine component-wise transfer matrices into a transfer matrix for the tensor product basis. | |
| template<typename VectIn , typename VectOut > | |
| void | tensorStrides (const VectIn &sz, VectOut &strides) |
| Helper to compute the strides of a d-tensor. | |
Utility functions related to tensor-structured objects.
This file is part of the G+Smo library.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
Author(s): C. Hofreither, A. Mantzaflaris