38#include <gtest/gtest.h>
189 EXPECT_NEAR(
GSL_REAL(result), 1.0, 1e-10);
190 EXPECT_NEAR(
GSL_IMAG(result), 0.0, 1e-10);
void gsl_blas_zgemm(CBLAS_TRANSPOSE TransA, CBLAS_TRANSPOSE TransB, gsl_complex alpha, const gsl_matrix_complex *A, const gsl_matrix_complex *B, gsl_complex beta, gsl_matrix_complex *C)
Complex matrix-matrix multiply and accumulate.
void gsl_blas_dgemv(CBLAS_TRANSPOSE TransA, double alpha, const gsl_matrix *A, const gsl_vector *x, double beta, gsl_vector *y)
Real matrix-vector multiply and accumulate.
void gsl_blas_dgemm(CBLAS_TRANSPOSE TransA, CBLAS_TRANSPOSE TransB, double alpha, const gsl_matrix *A, const gsl_matrix *B, double beta, gsl_matrix *C)
Real matrix-matrix multiply and accumulate.
gsl_complex gsl_complex_rect(double x, double y)
Construct .
gsl_matrix * gsl_matrix_alloc(size_t n1, size_t n2)
Allocate a zero-initialized real matrix of size .
void gsl_matrix_set(gsl_matrix *m, size_t i, size_t j, double x)
Set .
double gsl_matrix_get(const gsl_matrix *m, size_t i, size_t j)
Get .
gsl_complex gsl_matrix_complex_get(const gsl_matrix_complex *m, size_t i, size_t j)
Get complex entry .
void gsl_matrix_free(gsl_matrix *m)
Free a matrix allocated by gsl_matrix_alloc.
void gsl_vector_free(gsl_vector *v)
Free a vector allocated by gsl_vector_alloc.
gsl_vector * gsl_vector_alloc(size_t n)
Allocate a zero-initialized real vector of length .
void gsl_matrix_complex_free(gsl_matrix_complex *m)
Free a matrix allocated by gsl_matrix_complex_alloc.
void gsl_matrix_complex_set(gsl_matrix_complex *m, size_t i, size_t j, gsl_complex x)
Set complex entry .
void gsl_vector_set_all(gsl_vector *v, double x)
Set all entries to x.
double gsl_vector_get(const gsl_vector *v, size_t i)
Get .
void gsl_matrix_set_all(gsl_matrix *m, double x)
Set all entries to x.
void gsl_matrix_set_identity(gsl_matrix *m)
Set to identity on the main diagonal.
gsl_matrix_complex * gsl_matrix_complex_alloc(size_t n1, size_t n2)
Allocate a zero-initialized complex matrix of size .
void gsl_matrix_complex_set_zero(gsl_matrix_complex *m)
Set all complex entries to zero.
void gsl_matrix_set_zero(gsl_matrix *m)
Set all entries to zero.
TEST_F(GSLBLASTest, DGEMM_NoTrans)
Complex number stored as .
Dense complex matrix in row-major storage.
Dense real matrix in row-major storage.
Dense real vector with stride.