ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
sparse_matrix_test.cpp File Reference
#include "source_base/module_out/sparse_matrix.h"
#include <complex>
#include <iomanip>
#include <sstream>
#include "gmock/gmock.h"
#include "gtest/gtest.h"
Include dependency graph for sparse_matrix_test.cpp:

Classes

class  SparseMatrixTest< T >

Typedefs

using MyTypes = ::testing::Types<double, std::complex<double>>

Functions

template<typename T>
T get_value (const T &val)
template<typename T>
T get_value (const std::complex< T > &val)
 TYPED_TEST_SUITE (SparseMatrixTest, MyTypes)
 TYPED_TEST (SparseMatrixTest, BufferedCSRPreservesWrappingPrecisionAndFinalFlush)
 TYPED_TEST (SparseMatrixTest, EmptyCSRAndFlushFailure)
 TYPED_TEST (SparseMatrixTest, Insert)
 TYPED_TEST (SparseMatrixTest, InsertWarning)
 TYPED_TEST (SparseMatrixTest, CSR)

Typedef Documentation

◆ MyTypes

using MyTypes = ::testing::Types<double, std::complex<double>>

Function Documentation

◆ get_value() [1/2]

template<typename T>
T get_value ( const std::complex< T > & val)

◆ get_value() [2/2]

template<typename T>
T get_value ( const T & val)
Here is the caller graph for this function:

◆ TYPED_TEST() [1/5]

TYPED_TEST ( SparseMatrixTest ,
BufferedCSRPreservesWrappingPrecisionAndFinalFlush  )

◆ TYPED_TEST() [2/5]

TYPED_TEST ( SparseMatrixTest ,
CSR  )
Here is the call graph for this function:

◆ TYPED_TEST() [3/5]

TYPED_TEST ( SparseMatrixTest ,
EmptyCSRAndFlushFailure  )

◆ TYPED_TEST() [4/5]

TYPED_TEST ( SparseMatrixTest ,
Insert  )
Here is the call graph for this function:

◆ TYPED_TEST() [5/5]

TYPED_TEST ( SparseMatrixTest ,
InsertWarning  )

◆ TYPED_TEST_SUITE()

TYPED_TEST_SUITE ( SparseMatrixTest ,
MyTypes  )