Anasazi Version of the Day
Loading...
Searching...
No Matches
SortingTools.h
1// @HEADER
2// *****************************************************************************
3// Anasazi: Block Eigensolvers Package
4//
5// Copyright 2004 NTESS and the Anasazi contributors.
6// SPDX-License-Identifier: BSD-3-Clause
7// *****************************************************************************
8// @HEADER
9
10// This software is a result of the research described in the report
11//
12// "A comparison of algorithms for modal analysis in the absence
13// of a sparse direct method", P. Arbenz, R. Lehoucq, and U. Hetmaniuk,
14// Sandia National Laboratories, Technical report SAND2003-1028J.
15//
16// It is based on the Epetra, AztecOO, and ML packages defined in the Trilinos
17// framework ( http://trilinos.org/ ).
18
19#ifndef SORTING_TOOLS_H
20#define SORTING_TOOLS_H
21
22#include <cstring>
23using std::memcpy;
24
25class SortingTools {
26
27 public:
28
29 int sortScalars(int n, double *y, int *perm = 0) const;
30
31 int sortScalars_Vectors(int, double *, double * = 0, int = 0) const;
32
33};
34
35#endif