|
OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
|
Unit tests for GSL matrix and vector operations. More...
#include <gtest/gtest.h>#include <cmath>#include "Utilities/GSLComplex.h"#include "Utilities/GSLMatrix.h"
Go to the source code of this file.
Classes | |
| class | GSLMatrixTest |
Functions | |
| TEST_F (GSLMatrixTest, MatrixAllocation) | |
| TEST_F (GSLMatrixTest, MatrixSetGet) | |
| TEST_F (GSLMatrixTest, MatrixSetAll) | |
| TEST_F (GSLMatrixTest, MatrixSetZero) | |
| TEST_F (GSLMatrixTest, MatrixSetIdentity) | |
| TEST_F (GSLMatrixTest, VectorAllocation) | |
| TEST_F (GSLMatrixTest, VectorSetGet) | |
| TEST_F (GSLMatrixTest, VectorSetAll) | |
| TEST_F (GSLMatrixTest, VectorScale) | |
| TEST_F (GSLMatrixTest, VectorAdd) | |
| TEST_F (GSLMatrixTest, ComplexMatrix) | |
| TEST_F (GSLMatrixTest, ComplexVector) | |
Unit tests for GSL matrix and vector operations.
This file contains unit tests for GSL-compatible matrix and vector data structures and operations. The implementation provides wrappers around standard containers with GSL-compatible APIs.
gsl_matrix_set_all() correctly initializes all elements.gsl_matrix_set_zero() sets all elements to zero, even if the matrix was previously initialized with non-zero values.gsl_matrix_set_identity() sets diagonal elements to 1 and off-diagonal elements to 0.Definition in file TestGSLMatrix.cpp.
| TEST_F | ( | GSLMatrixTest | , |
| ComplexMatrix | |||
| ) |
Definition at line 209 of file TestGSLMatrix.cpp.
References gsl_complex_rect(), GSL_IMAG, gsl_matrix_complex_alloc(), gsl_matrix_complex_free(), gsl_matrix_complex_get(), gsl_matrix_complex_set(), and GSL_REAL.

| TEST_F | ( | GSLMatrixTest | , |
| ComplexVector | |||
| ) |
Definition at line 229 of file TestGSLMatrix.cpp.
References gsl_complex_rect(), GSL_IMAG, GSL_REAL, gsl_vector_complex_alloc(), gsl_vector_complex_free(), gsl_vector_complex_get(), gsl_vector_complex_scale(), and gsl_vector_complex_set().

| TEST_F | ( | GSLMatrixTest | , |
| MatrixAllocation | |||
| ) |
Definition at line 73 of file TestGSLMatrix.cpp.
References gsl_matrix::data, gsl_matrix_alloc(), gsl_matrix_free(), gsl_matrix::size1, and gsl_matrix::size2.

| TEST_F | ( | GSLMatrixTest | , |
| MatrixSetAll | |||
| ) |
Definition at line 98 of file TestGSLMatrix.cpp.
References gsl_matrix_alloc(), gsl_matrix_free(), gsl_matrix_get(), and gsl_matrix_set_all().

| TEST_F | ( | GSLMatrixTest | , |
| MatrixSetGet | |||
| ) |
Definition at line 82 of file TestGSLMatrix.cpp.
References gsl_matrix_alloc(), gsl_matrix_free(), gsl_matrix_get(), and gsl_matrix_set().

| TEST_F | ( | GSLMatrixTest | , |
| MatrixSetIdentity | |||
| ) |
Definition at line 125 of file TestGSLMatrix.cpp.
References gsl_matrix_alloc(), gsl_matrix_free(), gsl_matrix_get(), and gsl_matrix_set_identity().

| TEST_F | ( | GSLMatrixTest | , |
| MatrixSetZero | |||
| ) |
Definition at line 111 of file TestGSLMatrix.cpp.
References gsl_matrix_alloc(), gsl_matrix_free(), gsl_matrix_get(), gsl_matrix_set_all(), and gsl_matrix_set_zero().

| TEST_F | ( | GSLMatrixTest | , |
| VectorAdd | |||
| ) |
Definition at line 187 of file TestGSLMatrix.cpp.
References gsl_vector_add(), gsl_vector_alloc(), gsl_vector_free(), gsl_vector_get(), and gsl_vector_set().

| TEST_F | ( | GSLMatrixTest | , |
| VectorAllocation | |||
| ) |
Definition at line 139 of file TestGSLMatrix.cpp.
References gsl_vector::data, gsl_vector_alloc(), gsl_vector_free(), and gsl_vector::size.

| TEST_F | ( | GSLMatrixTest | , |
| VectorScale | |||
| ) |
Definition at line 172 of file TestGSLMatrix.cpp.
References gsl_vector_alloc(), gsl_vector_free(), gsl_vector_get(), gsl_vector_scale(), and gsl_vector_set().

| TEST_F | ( | GSLMatrixTest | , |
| VectorSetAll | |||
| ) |
Definition at line 161 of file TestGSLMatrix.cpp.
References gsl_vector_alloc(), gsl_vector_free(), gsl_vector_get(), and gsl_vector_set_all().

| TEST_F | ( | GSLMatrixTest | , |
| VectorSetGet | |||
| ) |
Definition at line 147 of file TestGSLMatrix.cpp.
References gsl_vector_alloc(), gsl_vector_free(), gsl_vector_get(), and gsl_vector_set().
