| 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 |
#ifndef MY_SDM_HELPERS_HPP |
| 10 |
#define MY_SDM_HELPERS_HPP |
| 11 |
|
| 12 |
#include "AnasaziConfigDefs.hpp" |
| 13 |
#include "Teuchos_SerialDenseMatrix.hpp" |
| 14 |
#include "Teuchos_SerialDenseHelpers.hpp" |
| 15 |
|
| 16 |
namespace Anasazi{ |
| 17 |
|
| 18 |
//! Helper functions for SerialDenseMatrices used in Anasazi regression tests. |
| 19 |
template <class ScalarType> |
| 20 |
void randomSDM( Teuchos::SerialDenseMatrix<int, ScalarType>& matrix ) |
| 21 |
{ |
| 22 |
Teuchos::randomSyncedMatrix( matrix ); |
| 23 |
} |
| 24 |
|
| 25 |
} |
| 26 |
|
| 27 |
#endif // MY_SDM_HELPERS_HPP |