20#ifndef CCGSL_MATRIX_COMPLEX_FLOAT_HPP
21#define CCGSL_MATRIX_COMPLEX_FLOAT_HPP
23#include<gsl/gsl_matrix.h>
25#ifdef __GXX_EXPERIMENTAL_CXX0X__
28#include<gsl/gsl_permute_matrix_complex_float.h>
79 if( n1 > 0 and n2 > 0 )
ccgsl_pointer = gsl_matrix_complex_float_alloc( n1, n2 );
83 try {
count =
new size_t; }
catch( std::bad_alloc& e ){
85 if( n1 > 0 and n2 > 0 ) gsl_matrix_complex_float_free(
ccgsl_pointer );
102#ifdef __GXX_EXPERIMENTAL_CXX0X__
108 size_t const n1 = initializer_list.size();
109 size_t const n2 = initializer_list.begin()->size();
110 for(
auto l : initializer_list ){
111 if( l.size() != n2 ){
112 gsl::exception e(
"matrix rows have unequal sizes", __FILE__, __LINE__,
119 try {
count =
new size_t; }
catch( std::bad_alloc& e ){
121 if( n1 > 0 and n2 > 0 ) gsl_matrix_complex_float_free(
ccgsl_pointer );
128 for(
auto row : initializer_list ){
130 for(
auto x :
row ){
set( r, c, x ); ++c; }
170 gsl_matrix_complex_float_memcpy( copy.
get(),
get() );
191#ifdef __GXX_EXPERIMENTAL_CXX0X__
197 std::swap(
count, v.count );
198 v.ccgsl_pointer =
nullptr;
235 template<
typename container,
typename content,
bool reverse_t>
class iterator_base {
262 static content something;
267 }
else if(
v->ccgsl_pointer == 0 ){
286 static content something_base;
292 }
else if(
v->ccgsl_pointer == 0 ){
303#ifdef __GXX_EXPERIMENTAL_CXX0X__
304 return std::move(
ptr );
335 }
else if(
v->ccgsl_pointer == 0 ){
352 }
else if(
v->ccgsl_pointer == 0 ){
473 :
public iterator_base<matrix_complex_float const,vector_complex_float const,reverse_t>{
694 gsl_matrix_complex_float_tricpy( Uplo, Diag,
get(), src.
get() );
704 gsl_matrix_complex_float_transpose_tricpy( Uplo, Diag,
get(), src.
get() );
716 gsl_matrix_complex_float* m =
static_cast<gsl_matrix_complex_float*
>( malloc(
sizeof( gsl_matrix_complex_float ) ) );
717 *m = gsl_matrix_complex_float_submatrix(
get(), i, j, n1, n2 ).matrix;
726 gsl_vector_complex_float* w =
static_cast<gsl_vector_complex_float*
>( malloc(
sizeof( gsl_vector_complex_float ) ) );
727 *w = gsl_matrix_complex_float_row(
get(), i ).vector;
736 gsl_vector_complex_float* w =
static_cast<gsl_vector_complex_float*
>( malloc(
sizeof( gsl_vector_complex_float ) ) );
737 *w = gsl_matrix_complex_float_column(
get(), j ).vector;
745 diagonal(){ gsl_vector_complex_float* w =
static_cast<gsl_vector_complex_float*
>( malloc(
sizeof( gsl_vector_complex_float ) ) );
746 *w = gsl_matrix_complex_float_diagonal(
get() ).vector;
755 gsl_vector_complex_float* w =
static_cast<gsl_vector_complex_float*
>( malloc(
sizeof( gsl_vector_complex_float ) ) );
756 *w = gsl_matrix_complex_float_subdiagonal(
get(), k ).vector;
765 gsl_vector_complex_float* w =
static_cast<gsl_vector_complex_float*
>( malloc(
sizeof( gsl_vector_complex_float ) ) );
766 *w = gsl_matrix_complex_float_superdiagonal(
get(), k ).vector;
777 gsl_vector_complex_float* w =
static_cast<gsl_vector_complex_float*
>( malloc(
sizeof( gsl_vector_complex_float ) ) );
778 *w = gsl_matrix_complex_float_subrow(
get(), i, offset,
n ).vector;
789 gsl_vector_complex_float* w =
static_cast<gsl_vector_complex_float*
>( malloc(
sizeof( gsl_vector_complex_float ) ) );
790 *w = gsl_matrix_complex_float_subcolumn(
get(), j, offset,
n ).vector;
801 gsl_matrix_complex_float* m =
static_cast<gsl_matrix_complex_float*
>( malloc(
sizeof( gsl_matrix_complex_float ) ) );
802 *m = gsl_matrix_complex_float_view_array( base, n1, n2 ).matrix;
814 gsl_matrix_complex_float* m =
static_cast<gsl_matrix_complex_float*
>( malloc(
sizeof( gsl_matrix_complex_float ) ) );
815 *m = gsl_matrix_complex_float_view_array_with_tda( base, n1, n2, tda ).matrix;
826 gsl_matrix_complex_float* m =
static_cast<gsl_matrix_complex_float*
>( malloc(
sizeof( gsl_matrix_complex_float ) ) );
827 *m = gsl_matrix_complex_float_view_vector( v.
get(), n1, n2 ).matrix;
839 gsl_matrix_complex_float* m =
static_cast<gsl_matrix_complex_float*
>( malloc(
sizeof( gsl_matrix_complex_float ) ) );
840 *m = gsl_matrix_complex_float_view_vector_with_tda( v.
get(), n1, n2, tda ).matrix;
853 gsl_matrix_complex_float* m =
static_cast<gsl_matrix_complex_float*
>( malloc(
sizeof( gsl_matrix_complex_float ) ) );
854 *m = gsl_matrix_complex_float_const_submatrix(
get(), i, j, n1, n2 ).matrix;
863 gsl_vector_complex_float* w =
static_cast<gsl_vector_complex_float*
>( malloc(
sizeof( gsl_vector_complex_float ) ) );
864 *w = gsl_matrix_complex_float_const_row(
get(), i ).vector;
873 gsl_vector_complex_float* w =
static_cast<gsl_vector_complex_float*
>( malloc(
sizeof( gsl_vector_complex_float ) ) );
874 *w = gsl_matrix_complex_float_const_column(
get(), j ).vector;
882 gsl_vector_complex_float* w =
static_cast<gsl_vector_complex_float*
>( malloc(
sizeof( gsl_vector_complex_float ) ) );
883 *w = gsl_matrix_complex_float_const_diagonal(
get() ).vector;
892 gsl_vector_complex_float* w =
static_cast<gsl_vector_complex_float*
>( malloc(
sizeof( gsl_vector_complex_float ) ) );
893 *w = gsl_matrix_complex_float_const_subdiagonal(
get(), k ).vector;
902 gsl_vector_complex_float* w =
static_cast<gsl_vector_complex_float*
>( malloc(
sizeof( gsl_vector_complex_float ) ) );
903 *w = gsl_matrix_complex_float_const_superdiagonal(
get(), k ).vector;
914 gsl_vector_complex_float* w =
static_cast<gsl_vector_complex_float*
>( malloc(
sizeof( gsl_vector_complex_float ) ) );
915 *w = gsl_matrix_complex_float_const_subrow(
get(), i, offset,
n ).vector;
926 gsl_vector_complex_float* w =
static_cast<gsl_vector_complex_float*
>( malloc(
sizeof( gsl_vector_complex_float ) ) );
927 *w = gsl_matrix_complex_float_const_subcolumn(
get(), j, offset,
n ).vector;
938 gsl_matrix_complex_float* m =
static_cast<gsl_matrix_complex_float*
>( malloc(
sizeof( gsl_matrix_complex_float ) ) );
939 *m = gsl_matrix_complex_float_const_view_array( base, n1, n2 ).matrix;
952 gsl_matrix_complex_float* m =
static_cast<gsl_matrix_complex_float*
>( malloc(
sizeof( gsl_matrix_complex_float ) ) );
953 *m = gsl_matrix_complex_float_const_view_array_with_tda( base, n1, n2, tda ).matrix;
964 gsl_matrix_complex_float* m =
static_cast<gsl_matrix_complex_float*
>( malloc(
sizeof( gsl_matrix_complex_float ) ) );
965 *m = gsl_matrix_complex_float_const_view_vector( v.
get(), n1, n2 ).matrix;
978 gsl_matrix_complex_float* m =
static_cast<gsl_matrix_complex_float*
>( malloc(
sizeof( gsl_matrix_complex_float ) ) );
979 *m = gsl_matrix_complex_float_const_view_vector_with_tda( v.
get(), n1, n2, tda ).matrix;
991 gsl_matrix_complex_float* m =
static_cast<gsl_matrix_complex_float*
>( malloc(
sizeof( gsl_matrix_complex_float ) ) );
992 *m = gsl_matrix_complex_float_const_submatrix(
get(), i, j, n1, n2 ).matrix;
1001 gsl_vector_complex_float* w =
static_cast<gsl_vector_complex_float*
>( malloc(
sizeof( gsl_vector_complex_float ) ) );
1002 *w = gsl_matrix_complex_float_const_row(
get(), i ).vector;
1011 gsl_vector_complex_float* w =
static_cast<gsl_vector_complex_float*
>( malloc(
sizeof( gsl_vector_complex_float ) ) );
1012 *w = gsl_matrix_complex_float_const_column(
get(), j ).vector;
1020 gsl_vector_complex_float* w =
static_cast<gsl_vector_complex_float*
>( malloc(
sizeof( gsl_vector_complex_float ) ) );
1021 *w = gsl_matrix_complex_float_const_diagonal(
get() ).vector;
1030 gsl_vector_complex_float* w =
static_cast<gsl_vector_complex_float*
>( malloc(
sizeof( gsl_vector_complex_float ) ) );
1031 *w = gsl_matrix_complex_float_const_subdiagonal(
get(), k ).vector;
1040 gsl_vector_complex_float* w =
static_cast<gsl_vector_complex_float*
>( malloc(
sizeof( gsl_vector_complex_float ) ) );
1041 *w = gsl_matrix_complex_float_const_superdiagonal(
get(), k ).vector;
1052 gsl_vector_complex_float* w =
static_cast<gsl_vector_complex_float*
>( malloc(
sizeof( gsl_vector_complex_float ) ) );
1053 *w = gsl_matrix_complex_float_const_subrow(
get(), i, offset,
n ).vector;
1064 gsl_vector_complex_float* w =
static_cast<gsl_vector_complex_float*
>( malloc(
sizeof( gsl_vector_complex_float ) ) );
1065 *w = gsl_matrix_complex_float_const_subcolumn(
get(), j, offset,
n ).vector;
1076 gsl_matrix_complex_float* m =
static_cast<gsl_matrix_complex_float*
>( malloc(
sizeof( gsl_matrix_complex_float ) ) );
1077 *m = gsl_matrix_complex_float_const_view_array( base, n1, n2 ).matrix;
1090 gsl_matrix_complex_float* m =
static_cast<gsl_matrix_complex_float*
>( malloc(
sizeof( gsl_matrix_complex_float ) ) );
1091 *m = gsl_matrix_complex_float_const_view_array_with_tda( base, n1, n2, tda ).matrix;
1102 gsl_matrix_complex_float* m =
static_cast<gsl_matrix_complex_float*
>( malloc(
sizeof( gsl_matrix_complex_float ) ) );
1103 *m = gsl_matrix_complex_float_const_view_vector( v.
get(), n1, n2 ).matrix;
1116 gsl_matrix_complex_float* m =
static_cast<gsl_matrix_complex_float*
>( malloc(
sizeof( gsl_matrix_complex_float ) ) );
1117 *m = gsl_matrix_complex_float_const_view_vector_with_tda( v.
get(), n1, n2, tda ).matrix;
1157#ifdef __GXX_EXPERIMENTAL_CXX0X__
1213 int isnull()
const {
return gsl_matrix_complex_float_isnull(
get() ); }
1218 int ispos()
const {
return gsl_matrix_complex_float_ispos(
get() ); }
1223 int isneg()
const {
return gsl_matrix_complex_float_isneg(
get() ); }
1228 int isnonneg()
const {
return gsl_matrix_complex_float_isnonneg(
get() ); }
1235 complex_float get(
size_t const i,
size_t const j )
const {
return gsl_matrix_complex_float_get(
get(), i, j ); }
1242 void set(
size_t const i,
size_t const j,
complex_float x ){ gsl_matrix_complex_float_set(
get(), i, j, x ); }
1272 int fread( FILE* stream ){
return gsl_matrix_complex_float_fread( stream,
get() ); }
1278 int fwrite( FILE* stream )
const {
return gsl_matrix_complex_float_fwrite( stream,
get() ); }
1284 int fscanf( FILE* stream ){
return gsl_matrix_complex_float_fscanf( stream,
get() ); }
1291 int fprintf( FILE* stream,
char const* format )
const {
1292 return gsl_matrix_complex_float_fprintf( stream,
get(), format ); }
1302 ccgsl_pointer = gsl_matrix_complex_float_alloc_from_block(
b.get(), offset, n1, n2, d2 );
1304 try {
count =
new size_t; }
catch( std::bad_alloc& e ){
1320 ccgsl_pointer = gsl_matrix_complex_float_alloc_from_matrix( m.
get(), k1, k2, n1, n2 );
1322 try {
count =
new size_t; }
catch( std::bad_alloc& e ){
1340 int swap_rows(
size_t const i,
size_t const j ){
return gsl_matrix_complex_float_swap_rows(
get(), i, j ); }
1348 return gsl_matrix_complex_float_swap_columns(
get(), i, j ); }
1356 int swap_rowcol(
size_t const i,
size_t const j ){
return gsl_matrix_complex_float_swap_rowcol(
get(), i, j ); }
1368 return gsl_matrix_complex_float_transpose_memcpy(
get(), src.
get() ); }
1376 return gsl_matrix_complex_float_mul_elements(
get(),
b.get() ); }
1384 return gsl_matrix_complex_float_div_elements(
get(),
b.get() ); }
1391 return gsl_matrix_complex_float_conjtrans_memcpy(
get(), src.
get() ); }
1398 return gsl_matrix_complex_float_scale_rows(
get(), x.
get() ); }
1405 return gsl_matrix_complex_float_scale_columns(
get(), x.
get() ); }
1412 return gsl_matrix_complex_float_add_diagonal(
get(), x ); }
1420 return gsl_matrix_complex_float_get_row( v.
get(),
get(), i ); }
1428 return gsl_matrix_complex_float_get_col( v.
get(),
get(), j ); }
1436 return gsl_matrix_complex_float_set_row(
get(), i, v.
get() ); }
1444 return gsl_matrix_complex_float_set_col(
get(), j, v.
get() ); }
1460 gsl_vector_complex_float_view w = gsl_matrix_complex_float_row(
ccgsl_pointer, i );
1478 gsl_vector_complex_float_view w = gsl_matrix_complex_float_row(
ccgsl_pointer, i );
1489 return gsl_permute_matrix_complex_float( p.
get(),
get() ); }
1495 return vector_complex_float ( gsl_vector_complex_float_alloc_row_from_matrix( m.get(), i ) ); }
1497 return vector_complex_float ( gsl_vector_complex_float_alloc_col_from_matrix( m.get(), i ) ); }
This class handles vector_complex_floats as shared handles.
This class can be used like a pointer for complex_float objects so that we can iterate over a vector ...
This class handles complex_float numbers.
This class is used to handle gsl exceptions so that gsl can use these rather than the GSL error handl...
@ GSL_EFAILED
generic failure
@ GSL_EINVAL
invalid argument supplied by user
@ GSL_EBADLEN
matrix, vector lengths are not conformant
A class template for the const iterators.
const_iterator_t< reverse_t > operator--(int)
The postfix – operator.
bool operator==(const_iterator_t< reverse_t > const &i) const
Comparison with const iterator.
const_iterator_t(iterator_t< reverse_t > const &i)
A copy constructor.
bool operator!=(iterator_t< reverse_t > const &i) const
Comparison with non-const iterator.
bool operator!=(const_iterator_t< reverse_t > const &i) const
Comparison with const iterator.
const_iterator_t(matrix_complex_float const *v, size_t position)
This constructor allows vector to create non-default iterators.
const_iterator_t< reverse_t > & operator=(const_iterator_t< reverse_t > const &i)
We can assign one output iterator from another.
const_iterator_t< reverse_t > & operator--()
The prefix – operator.
const_iterator_t< reverse_t > operator++(int)
The postfix ++ operator.
const_iterator_t< reverse_t > & operator++()
The prefix ++ operator.
const_iterator_t()
The default constructor.
bool operator==(iterator_t< reverse_t > const &i) const
Comparison with non-const iterator.
We create a suitable class for iterator types here.
bool operator!=(iterator_base< container, content, reverse_t > const &i) const
The != operator.
vector_complex_float_ptr pointer
An iterator must have a pointer typea.
pointer operator->() const
Dereference the pointer.
container * v
Store a pointer to a matrix we can iterate over: 0 if no matrix.
void increment()
Increment the iterator.
iterator_base(container *v, size_t position)
This constructor allows vector to create non-default iterators.
vector_complex_float value_type
An iterator must have a value type.
bool operator==(iterator_base< container, content, reverse_t > const &i) const
The == operator.
reference operator*() const
Dereference the pointer.
void decrement()
Decrement the iterator.
value_type reference
An iterator must have a reference type.
iterator_base()
The iterator is default constructible.
size_t position
Mark position of iterator within matrix.
std::bidirectional_iterator_tag iterator_category
An iterator must have an iterator category.
A class template for the two non-const iterators.
iterator_t()
The default constructor.
bool operator!=(const_iterator_t< reverse_t > const &i) const
Comparison with const iterator.
iterator_t(matrix_complex_float *v, size_t position)
This constructor allows vector to create non-default iterators.
bool operator==(const_iterator_t< reverse_t > const &i) const
Comparison with const iterator.
iterator_t< reverse_t > operator++(int)
The postfix ++ operator.
iterator_t< reverse_t > operator--(int)
The postfix – operator.
iterator_t< reverse_t > & operator--()
The prefix – operator.
iterator_t< reverse_t > & operator=(iterator_t< reverse_t > const &i)
We can assign one output iterator from another.
iterator_t< reverse_t > & operator++()
The prefix ++ operator.
This class handles matrix_complex_float objects as shared handles.
int ispos() const
C++ version of gsl_matrix_complex_float_ispos().
vector_complex_float diagonal()
C++ version of gsl_matrix_complex_float_diagonal().
static matrix_complex_float calloc(size_t const n1, size_t const n2)
C++ version of gsl_matrix_complex_float_calloc().
iterator begin()
Get iterator pointing to first vector_complex_float element.
matrix_complex_float & operator=(matrix_complex_float &&v)
Move operator.
complex_float get(size_t const i, size_t const j) const
C++ version of gsl_matrix_complex_float_get().
int scale_rows(vector_complex_float const &x)
C++ version of gsl_matrix_complex_float_scale_rows().
void set_identity()
C++ version of gsl_matrix_complex_float_set_identity().
int isneg() const
C++ version of gsl_matrix_complex_float_isneg().
int set_col(size_t const j, vector_complex_float const &v)
C++ version of gsl_matrix_complex_float_set_col().
static matrix_complex_float const const_view_vector_with_tda(vector_complex_float const &v, size_t const n1, size_t const n2, size_t const tda)
C++ version of gsl_matrix_complex_float_const_view_vector_with_tda().
vector_complex_float operator[](size_t const i)
This function allows us to use a matrix_complex_float like an array.
const_iterator end() const
Get iterator pointing beyond last vector_complex_float element.
void set(size_t const i, size_t const j, complex_float x)
C++ version of gsl_matrix_complex_float_set().
size_t size1() const
The number of rows of the matrix_complex_float.
vector_complex_float const subcolumn(size_t const j, size_t const offset, size_t const n) const
Another C++ version of gsl_matrix_complex_float_const_subcolumn().
size_t size_type
A container must have a size_type.
int fprintf(FILE *stream, char const *format) const
C++ version of gsl_matrix_complex_float_fprintf().
complex_float_ptr ptr(size_t const i, size_t const j)
C++ version of gsl_matrix_complex_float_ptr().
void set_zero()
C++ version of gsl_matrix_complex_float_set_zero().
static matrix_complex_float const view_vector_with_tda(vector_complex_float const &v, size_t const n1, size_t const n2, size_t const tda)
Another C++ version of gsl_matrix_complex_float_const_view_vector_with_tda().
vector_complex_float const operator[](size_t const i) const
This function allows us to use a matrix_complex_float like an array.
vector_complex_float subdiagonal(size_t const k)
C++ version of gsl_matrix_complex_float_subdiagonal().
complex_float_ptr const const_ptr(size_t const i, size_t const j) const
C++ version of gsl_matrix_complex_float_const_ptr().
matrix_complex_float & operator=(matrix_complex_float const &v)
The assignment operator.
matrix_complex_float()
The default constructor is only really useful for assigning to.
void set_all(complex_float x)
C++ version of gsl_matrix_complex_float_set_all().
vector_complex_float subrow(size_t const i, size_t const offset, size_t const n)
C++ version of gsl_matrix_complex_float_subrow().
bool unique() const
Find if this is the only object sharing the gsl_matrix_complex_float.
vector_complex_float const const_subdiagonal(size_t const k) const
C++ version of gsl_matrix_complex_float_const_subdiagonal().
vector_complex_float subcolumn(size_t const j, size_t const offset, size_t const n)
C++ version of gsl_matrix_complex_float_subcolumn().
reverse_iterator rbegin()
Get iterator pointing to first vector_complex_float element.
int mul_elements(matrix_complex_float const &b)
C++ version of gsl_matrix_complex_float_mul_elements().
void tricpy(CBLAS_UPLO_t Uplo, CBLAS_DIAG_t Diag, matrix_complex_float const &src)
Copy the upper or lower triangular part of matrix src to this.
int swap_columns(size_t const i, size_t const j)
C++ version of gsl_matrix_complex_float_swap_columns().
vector_complex_float const diagonal() const
Another C++ version of gsl_matrix_complex_float_const_diagonal().
vector_complex_float const row(size_t const i) const
Another C++ version of gsl_matrix_complex_float_const_row().
iterator_t< true > reverse_iterator
The reverse_iterator type.
static matrix_complex_float const const_view_array_with_tda(float const *base, size_t const n1, size_t const n2, size_t const tda)
C++ version of gsl_matrix_complex_float_const_view_array_with_tda().
void swap(matrix_complex_float &m)
Swap two matrix_complex_float objects.
vector_complex_float const const_subrow(size_t const i, size_t const offset, size_t const n) const
C++ version of gsl_matrix_complex_float_const_subrow().
matrix_complex_float(matrix_complex_float &&v)
Move constructor.
~matrix_complex_float()
The destructor only deletes the pointers if count reaches zero.
matrix_complex_float(size_t const n1, size_t const n2)
The default constructor creates a new matrix_complex_float with n1 rows and n2 columns.
vector_complex_float const const_subcolumn(size_t const j, size_t const offset, size_t const n) const
C++ version of gsl_matrix_complex_float_const_subcolumn().
size_t size2() const
The number of columns of the matrix_complex_float.
static matrix_complex_float view_vector_with_tda(vector_complex_float &v, size_t const n1, size_t const n2, size_t const tda)
C++ version of gsl_matrix_complex_float_view_vector_with_tda().
vector_complex_float row(size_t const i)
C++ version of gsl_matrix_complex_float_row().
size_t use_count() const
Find how many matrix_complex_float objects share this pointer.
vector_complex_float const const_row(size_t const i) const
C++ version of gsl_matrix_complex_float_const_row().
int scale(complex_float const x)
C++ version of gsl_matrix_complex_float_scale().
vector_complex_float column(size_t const j)
C++ version of gsl_matrix_complex_float_column().
matrix_complex_float(gsl_matrix_complex_float *v)
Could construct from a gsl_matrix_complex_float.
int get_col(vector_complex_float &v, size_t const j) const
C++ version of gsl_matrix_complex_float_get_col().
iterator_t< false > iterator
The iterator type.
int add_constant(complex_float const x)
C++ version of gsl_matrix_complex_float_add_constant().
static matrix_complex_float view_array(float *base, size_t const n1, size_t const n2)
C++ version of gsl_matrix_complex_float_view_array().
matrix_complex_float(matrix_complex_float const &v)
The copy constructor.
matrix_complex_float submatrix(size_t const i, size_t const j, size_t const n1, size_t const n2)
C++ version of gsl_matrix_complex_float_submatrix().
matrix_complex_float clone() const
The clone function.
static matrix_complex_float const view_vector(vector_complex_float const &v, size_t const n1, size_t const n2)
Another C++ version of gsl_matrix_complex_float_const_view_vector().
int conjtrans_memcpy(matrix_complex_float const &src)
C++ version of gsl_matrix_complex_float_conjtrans_memcpy().
int fread(FILE *stream)
C++ version of gsl_matrix_complex_float_fread().
reverse_iterator rend()
Get iterator pointing beyond last vector_complex_float element.
matrix_complex_float(matrix_complex_float &m, size_t const k1, size_t const k2, size_t const n1, size_t const n2)
C++ version of gsl_matrix_complex_float_alloc_from_matrix().
vector_complex_float const subrow(size_t const i, size_t const offset, size_t const n) const
Another C++ version of gsl_matrix_complex_float_const_subrow().
int transpose()
C++ version of gsl_matrix_complex_float_transpose().
int swap_rows(size_t const i, size_t const j)
C++ version of gsl_matrix_complex_float_swap_rows().
matrix_complex_float(std::initializer_list< std::initializer_list< std::complex< float > > > initializer_list)
Could construct from a std::initializer_list in C++11.
void reset()
Stop sharing ownership of the shared pointer.
const_reverse_iterator rend() const
Get iterator pointing beyond last vector_complex_float element.
vector_complex_float const const_diagonal() const
C++ version of gsl_matrix_complex_float_const_diagonal().
int scale_columns(vector_complex_float const &x)
C++ version of gsl_matrix_complex_float_scale_columns().
vector_complex_float const const_column(size_t const j) const
C++ version of gsl_matrix_complex_float_const_column().
const_reverse_iterator rbegin() const
Get iterator pointing to first vector_complex_float element.
vector_complex_float const const_superdiagonal(size_t const k) const
C++ version of gsl_matrix_complex_float_const_superdiagonal().
static matrix_complex_float const const_view_array(float const *base, size_t const n1, size_t const n2)
C++ version of gsl_matrix_complex_float_const_view_array().
static matrix_complex_float view_array_with_tda(float *base, size_t const n1, size_t const n2, size_t const tda)
C++ version of gsl_matrix_complex_float_view_array_with_tda().
matrix_complex_float const submatrix(size_t const i, size_t const j, size_t const n1, size_t const n2) const
Another C++ version of gsl_matrix_complex_float_const_submatrix().
vector_complex_float const superdiagonal(size_t const k) const
Another C++ version of gsl_matrix_complex_float_const_superdiagonal().
gsl_matrix_complex_float * get()
Get the gsl_matrix_complex_float.
const_iterator begin() const
Get iterator pointing to first vector_complex_float element.
int permute(permutation &p)
Permute the columns of this by permutation p.
int swap_rowcol(size_t const i, size_t const j)
C++ version of gsl_matrix_complex_float_swap_rowcol().
gsl_matrix_complex_float const * get() const
Get the gsl_matrix_complex_float.
size_t * count
The shared reference count.
int isnull() const
C++ version of gsl_matrix_complex_float_isnull().
matrix_complex_float(block_complex_float &b, size_t const offset, size_t const n1, size_t const n2, size_t const d2)
C++ version of gsl_matrix_complex_float_alloc_from_block().
int fscanf(FILE *stream)
C++ version of gsl_matrix_complex_float_fscanf().
static matrix_complex_float const const_view_vector(vector_complex_float const &v, size_t const n1, size_t const n2)
C++ version of gsl_matrix_complex_float_const_view_vector().
int transpose_memcpy(matrix_complex_float const &src)
C++ version of gsl_matrix_complex_float_transpose_memcpy().
int add_diagonal(complex_float const x)
C++ version of gsl_matrix_complex_float_add_diagonal().
int get_row(vector_complex_float &v, size_t const i) const
C++ version of gsl_matrix_complex_float_get_row().
int set_row(size_t const i, vector_complex_float const &v)
C++ version of gsl_matrix_complex_float_set_row().
const_iterator_t< false > const_iterator
The const_iterator type.
matrix_complex_float const const_submatrix(size_t const i, size_t const j, size_t const n1, size_t const n2) const
C++ version of gsl_matrix_complex_float_const_submatrix().
const_iterator_t< true > const_reverse_iterator
The const_reverse_t type.
int memcpy(matrix_complex_float const &src)
C++ version of gsl_matrix_complex_float_memcpy().
gsl_matrix_complex_float * ccgsl_pointer
The shared pointer.
void transpose_tricpy(CBLAS_UPLO_t Uplo, CBLAS_DIAG_t Diag, matrix_complex_float const &src)
Copy the upper or lower triangular part of matrix src to this.
iterator end()
Get iterator pointing beyond last vector_complex_float element.
int div_elements(matrix_complex_float const &b)
C++ version of gsl_matrix_complex_float_div_elements().
vector_complex_float superdiagonal(size_t const k)
C++ version of gsl_matrix_complex_float_superdiagonal().
int fwrite(FILE *stream) const
C++ version of gsl_matrix_complex_float_fwrite().
vector_complex_float const column(size_t const j) const
Another C++ version of gsl_matrix_complex_float_const_column().
int sub(matrix_complex_float const &b)
C++ version of gsl_matrix_complex_float_sub().
int add(matrix_complex_float const &b)
C++ version of gsl_matrix_complex_float_add().
static matrix_complex_float view_vector(vector_complex_float &v, size_t const n1, size_t const n2)
C++ version of gsl_matrix_complex_float_view_vector().
int isnonneg() const
C++ version of gsl_matrix_complex_float_isnonneg().
static matrix_complex_float const view_array_with_tda(float const *base, size_t const n1, size_t const n2, size_t const tda)
Another C++ version of gsl_matrix_complex_float_const_view_array_with_tda().
vector_complex_float const subdiagonal(size_t const k) const
Another C++ version of gsl_matrix_complex_float_const_subdiagonal().
static matrix_complex_float const view_array(float const *base, size_t const n1, size_t const n2)
Another C++ version of gsl_matrix_complex_float_const_view_array().
This class handles GSL permutation objects.
gsl_permutation * get()
Get the gsl_permutation.
This class handles vector_complex_float objects as shared handles.
vector_complex_float()
The default constructor is only really useful for assigning to.
gsl_vector_complex_float * get()
Get the gsl_vector_complex_float.
void wrap_gsl_vector_complex_float_without_ownership(gsl_vector_complex_float *v)
This function is intended mainly for internal use.
static vector_complex_float alloc_row_from_matrix(matrix_complex_float &m, size_t const i)
C++ version of gsl_vector_complex_float_alloc_row_from_matrix().
static vector_complex_float alloc_col_from_matrix(matrix_complex_float &m, size_t const j)
C++ version of gsl_vector_complex_float_alloc_col_from_matrix().
size_t n(workspace const &w)
C++ version of gsl_rstat_n().
double b(int order, double qq)
C++ version of gsl_sf_mathieu_b().
gsl_sf_result result
Typedef for gsl_sf_result.
The gsl package creates an interface to the GNU Scientific Library for C++.
This is a pointer-like type for iterator return values.
vector_complex_float & operator*()
Dereference operator.
vector_complex_float * operator->()
Dereference operator.
vector_complex_float_ptr(vector_complex_float const &v)
Typically we have to construct from a vector_complex_float.