ccgsl 2.7.2
C++wrappersforGnuScientificLibrary
spmatrix_complex_long_double.hpp
Go to the documentation of this file.
1/*
2 * Copyright (C) 2010, 2011, 2012, 2019, 2020, 2021 John D Lamb
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or (at
7 * your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17 */
18
19#ifndef CCGSL_SPMATRIX_HPP
20#define CCGSL_SPMATRIX_HPP
21
22#include<cstddef>
23#include<gsl/gsl_spmatrix.h>
24#include<new>
25
26#include"exception.hpp"
29
30namespace gsl {
38 public:
42 enum {
44 COO = GSL_SPMATRIX_COO,
46 CSC = GSL_SPMATRIX_CSC,
48 CSR = GSL_SPMATRIX_CSR,
50 TRIPLET = GSL_SPMATRIX_TRIPLET,
52 CCS = GSL_SPMATRIX_CCS,
54 CRS = GSL_SPMATRIX_CRS
55 };
60 ccgsl_pointer = 0;
61 count = 0; // initially nullptr will do
62 }
63 // Refines random access container
64 // Refines assignable
70 explicit spmatrix_complex_long_double( size_t const n1, size_t const n2 ){
71 if( n1 > 0 and n2 > 0 ) ccgsl_pointer = gsl_spmatrix_complex_long_double_alloc( n1, n2 );
72 else { ccgsl_pointer = new gsl_spmatrix_complex_long_double; ccgsl_pointer->size1 = n1;
73 ccgsl_pointer->size2 = n2; ccgsl_pointer->data = 0; }
74 // just plausibly we could allocate spmatrix_complex_long_double but not count
75 try { count = new size_t; } catch( std::bad_alloc& e ){
76 // try to tidy up before rethrowing
77 if( n1 > 0 and n2 > 0 ) gsl_spmatrix_complex_long_double_free( ccgsl_pointer );
78 else delete ccgsl_pointer;
79 throw e;
80 }
81 *count = 1; // initially there is just one reference to ccgsl_pointer
82 }
91 explicit spmatrix_complex_long_double( size_t const n1, size_t const n2, size_t nzmax, size_t sptype ){
92 if( n1 > 0 and n2 > 0 )
93 ccgsl_pointer = gsl_spmatrix_complex_long_double_alloc_nzmax( n1, n2, nzmax, sptype );
94 else { ccgsl_pointer = new gsl_spmatrix_complex_long_double; ccgsl_pointer->size1 = n1;
95 ccgsl_pointer->size2 = n2; ccgsl_pointer->data = 0; }
96 // just plausibly we could allocate spmatrix_complex_long_double but not count
97 try { count = new size_t; } catch( std::bad_alloc& e ){
98 // try to tidy up before rethrowing
99 if( n1 > 0 and n2 > 0 ) gsl_spmatrix_complex_long_double_free( ccgsl_pointer );
100 else delete ccgsl_pointer;
101 throw e;
102 }
103 *count = 1; // initially there is just one reference to ccgsl_pointer
104 }
110 explicit spmatrix_complex_long_double( gsl_spmatrix_complex_long_double* v ){
111 ccgsl_pointer = v;
112 // just plausibly we could fail to allocate count: no further action needed.
113 count = new size_t;
114 *count = 1; // initially there is just one reference to ccgsl_pointer
115 }
116#ifdef __GXX_EXPERIMENTAL_CXX0X__
121 spmatrix_complex_long_double( std::initializer_list<std::initializer_list<complex_long_double> > initializer_list ){
122 size_t const n1 = initializer_list.size();
123 size_t const n2 = initializer_list.begin()->size();
124 for( auto l : initializer_list ){
125 if( l.size() != n2 ){
126 gsl::exception e( "matrix_complex_long_double rows have unequal sizes", __FILE__, __LINE__,
128 throw( e );
129 }
130 }
131 ccgsl_pointer = gsl_spmatrix_complex_long_double_alloc( n1, n2 );
132 // just plausibly we could allocate spmatrix_complex_long_double but not count
133 try { count = new size_t; } catch( std::bad_alloc& e ){
134 // try to tidy up before rethrowing
135 if( n1 > 0 and n2 > 0 ) gsl_spmatrix_complex_long_double_free( ccgsl_pointer );
136 else delete ccgsl_pointer;
137 throw e;
138 }
139 *count = 1; // initially there is just one reference to ccgsl_pointer
140 // now copy
141 int r = 0;
142 for( auto row : initializer_list ){
143 size_t c = 0;
144 for( auto x : row ){ set( r, c, x ); ++c; }
145 ++r;
146 }
147 }
148#endif
149 // copy constructor
155 if( count != 0 ) ++*count; // spmatrix_complex_long_double is now shared.
156 }
157 // assignment operator
163 // first, possibly delete anything pointed to by this
164 if( count == 0 or --*count == 0 ){
165 if( ccgsl_pointer != 0 and ccgsl_pointer->size1 > 0
166 and ccgsl_pointer->size2 > 0 ) gsl_spmatrix_complex_long_double_free( ccgsl_pointer );
167 else delete ccgsl_pointer;
168 delete count;
169 }
170 // Then copy
172 count = v.count;
173 if( count != 0 ) ++*count; // block is now shared.
174 return *this;
175 }
176 // clone()
184 // Now copy
185 gsl_spmatrix_complex_long_double_memcpy( copy.get(), get() );
186 // return new object
187 return copy;
188 }
189 // destructor
194 if( count != 0 and --*count == 0 ){
195 // could have allocated null pointer
196 if( ccgsl_pointer != 0 ){
197 if( ccgsl_pointer->size1 > 0 and ccgsl_pointer->size2 > 0 )
198 gsl_spmatrix_complex_long_double_free( ccgsl_pointer );
199 else delete ccgsl_pointer; }
200 delete count;
201 }
202 }
203 // Allow possibility of assigning from gsl_spmatrix_complex_long_double without sharing
212 void wrap_gsl_spmatrix_complex_long_double_without_ownership( gsl_spmatrix_complex_long_double* v ){
213 if( count != 0 and --*count == 0 ){
214 // could have allocated null pointer
215 if( ccgsl_pointer != 0 ){
216 if( ccgsl_pointer->size1 != 0 and ccgsl_pointer->size1 != 0 )
217 gsl_spmatrix_complex_long_double_free( ccgsl_pointer );
218 else delete ccgsl_pointer; }
219 }
220 ccgsl_pointer = v;
221 if(0 == count) count = new size_t;
222 *count = 2; // should never be able to delete ccgsl_pointer
223 }
227 void reset(){ spmatrix_complex_long_double().swap( *this ); }
228#ifdef __GXX_EXPERIMENTAL_CXX0X__
234 std::swap( count, v.count );
235 v.ccgsl_pointer = nullptr;
236 }
243 spmatrix_complex_long_double( std::move( v ) ).swap( *this );
244 return *this;
245 }
246#endif
247 public:
248 // Sizes
253 size_t size1() const { return ccgsl_pointer == 0 ? 0 : ccgsl_pointer->size1; }
258 size_t size2() const { return ccgsl_pointer == 0 ? 0 : ccgsl_pointer->size2; }
263 size_t nzmax() const { return ccgsl_pointer == 0 ? 0 : ccgsl_pointer->nzmax; }
268 int sptype() const { return ccgsl_pointer == 0 ? 0 : ccgsl_pointer->sptype; }
273 long double* data() {
274 if( ccgsl_pointer == 0 ) gsl_error( "null vector_complex_long_double", __FILE__, __LINE__, GSL_EFAULT );
275 return ccgsl_pointer->data; }
280 long double const* data() const {
281 if( ccgsl_pointer == 0 ) gsl_error( "null vector_complex_long_double", __FILE__, __LINE__, GSL_EFAULT );
282 return ccgsl_pointer->data; }
289 std::swap( ccgsl_pointer, m.ccgsl_pointer );
290 std::swap( count, m.count );
291 }
297 int realloc( size_t const nzmax ){ return gsl_spmatrix_complex_long_double_realloc( nzmax, get() ); }
302 size_t nnz() const { return gsl_spmatrix_complex_long_double_nnz( get() ); }
307 char const* type() const { return gsl_spmatrix_complex_long_double_type( get() ); }
312 int set_zero(){ return gsl_spmatrix_complex_long_double_set_zero( get() ); }
317 int tree_rebuild(){ return gsl_spmatrix_complex_long_double_tree_rebuild( get() ); }
325 gsl_spmatrix_complex_long_double_csc( dest.get(), get() );
326 return dest;
327 }
335 gsl_spmatrix_complex_long_double_csr( dest.get(), get() );
336 return dest;
337 }
344 spmatrix_complex_long_double dest { gsl_spmatrix_complex_long_double_compress( get(), sptype ) };
345 return dest; }
351 spmatrix_complex_long_double dest { gsl_spmatrix_complex_long_double_compcol( get() ) };
352 return dest; }
358 spmatrix_complex_long_double dest { gsl_spmatrix_complex_long_double_ccs( get() ) };
359 return dest; }
365 spmatrix_complex_long_double dest { gsl_spmatrix_complex_long_double_crs( get() ) };
366 return dest; }
372 int memcpy( spmatrix_complex_long_double& dest ) const { return gsl_spmatrix_complex_long_double_memcpy( dest.get(), get() ); }
379 int fprintf( FILE* stream, char const* format ) const {
380 return gsl_spmatrix_complex_long_double_fprintf( stream, get(), format ); }
386 int fwrite( FILE* stream ) const {
387 return gsl_spmatrix_complex_long_double_fwrite( stream, get() ); }
393 int fread( FILE* stream ){
394 return gsl_spmatrix_complex_long_double_fread( stream, get() ); }
401 complex_long_double get( size_t const i, size_t const j ) const {
402 return gsl_spmatrix_complex_long_double_get( get(), i, j ); }
410 int set( size_t const i, size_t const j, complex_long_double const x ){
411 return gsl_spmatrix_complex_long_double_set( get(), i, j, x ); }
418 gsl_complex_long_double* ptr( size_t const i, size_t const j ) const {
419 return gsl_spmatrix_complex_long_double_ptr( get(), i, j ); }
420 // END REAL ONLY
426 int scale( complex_long_double const x ){ return gsl_spmatrix_complex_long_double_scale( get(), x ); }
433 return gsl_spmatrix_complex_long_double_scale_columns( get(), x.get() ); }
440 return gsl_spmatrix_complex_long_double_scale_rows( get(), x.get() ); }
446 int equal( spmatrix_complex_long_double const& b ) const { return gsl_spmatrix_complex_long_double_equal( get(), b.get() ); }
451 int transpose(){ return gsl_spmatrix_complex_long_double_transpose( get() ); }
456 int transpose2(){ return gsl_spmatrix_complex_long_double_transpose2( get() ); }
457 // Now the static functions
465 static int realloc( size_t const nzmax, gsl::spmatrix_complex_long_double& spMatrix ){
466 return gsl_spmatrix_complex_long_double_realloc( nzmax, spMatrix.get() ); }
472 static size_t nnz( spmatrix_complex_long_double const& spMatrix ){
473 return gsl_spmatrix_complex_long_double_nnz( spMatrix.get() ); }
479 static char const* type( spmatrix_complex_long_double const& spMatrix ){
480 return gsl_spmatrix_complex_long_double_type( spMatrix.get() ); }
486 static int set_zero( spmatrix_complex_long_double& spMatrix ){
487 return gsl_spmatrix_complex_long_double_set_zero( spMatrix.get() ); }
494 return gsl_spmatrix_complex_long_double_tree_rebuild( spMatrix.get() ); }
502 spmatrix_complex_long_double dest { spMatrix.size1(), spMatrix.size2() };
503 gsl_spmatrix_complex_long_double_csc( dest.get(), spMatrix.get() );
504 return dest; }
512 spmatrix_complex_long_double dest { spMatrix.size1(), spMatrix.size2() };
513 gsl_spmatrix_complex_long_double_csr( dest.get(), spMatrix.get() );
514 return dest; }
522 spmatrix_complex_long_double dest { gsl_spmatrix_complex_long_double_compress( spMatrix.get(), sptype ) };
523 return dest; }
530 spmatrix_complex_long_double dest { gsl_spmatrix_complex_long_double_compcol( spMatrix.get() ) };
531 return dest; }
538 spmatrix_complex_long_double dest { gsl_spmatrix_complex_long_double_ccs( spMatrix.get() ) };
539 return dest; }
546 spmatrix_complex_long_double dest { gsl_spmatrix_complex_long_double_crs( spMatrix.get() ) };
547 return dest; }
555 return gsl_spmatrix_complex_long_double_memcpy( dest.get(), src.get() ); }
563 static int fprintf( FILE* stream, spmatrix_complex_long_double const& spMatrix, char const* format ){
564 return gsl_spmatrix_complex_long_double_fprintf( stream, spMatrix.get(), format ); }
570 static spmatrix_complex_long_double fscanf( FILE* stream ){
571 return spmatrix_complex_long_double { gsl_spmatrix_complex_long_double_fscanf( stream ) }; }
578 static int fwrite( FILE* stream, spmatrix_complex_long_double& spMatrix ){
579 return gsl_spmatrix_complex_long_double_fwrite( stream, spMatrix.get() ); }
586 static int fread( FILE* stream, spmatrix_complex_long_double& spMatrix ){
587 return gsl_spmatrix_complex_long_double_fread( stream, spMatrix.get() ); }
596 return gsl_spmatrix_complex_long_double_add( c.get(), a.get(), b.get() ); }
604 spmatrix_complex_long_double c { a.size1(), a.size2() };
605 gsl_spmatrix_complex_long_double_add( c.get(), a.get(), b.get() );
606 return c;
607 }
608#ifndef GSL_DISABLE_DEPRECATED
616 return gsl_spmatrix_complex_long_double_add_to_dense( a.get(), b.get() ); }
617#endif
625 return gsl_spmatrix_complex_long_double_dense_add( a.get(), b.get() ); }
633 return gsl_spmatrix_complex_long_double_dense_sub( a.get(), b.get() ); }
641 return gsl_spmatrix_complex_long_double_d2sp( S.get(), A.get() ); }
649 return gsl_spmatrix_complex_long_double_sp2d( A.get(), S.get() ); }
657 return gsl_spmatrix_complex_long_double_equal( a.get(), b.get() ); }
663 static int transpose( spmatrix_complex_long_double& a ){ return gsl_spmatrix_complex_long_double_transpose( a.get() ); }
669 static int transpose2( spmatrix_complex_long_double& a ){ return gsl_spmatrix_complex_long_double_transpose2( a.get() ); }
677 return gsl_spmatrix_complex_long_double_transpose_memcpy( dest.get(), src.get() ); }
678 private:
682 gsl_spmatrix_complex_long_double* ccgsl_pointer;
686 size_t* count;
687 public:
688 // shared reference functions
693 gsl_spmatrix_complex_long_double* get(){ return ccgsl_pointer; }
698 gsl_spmatrix_complex_long_double const* get() const { return ccgsl_pointer; }
704 bool unique() const { return count != 0 and *count == 1; }
709 size_t use_count() const { return count == 0 ? 0 : *count; }
715#ifdef __GXX_EXPERIMENTAL_CXX0X__
716 explicit
717#endif
718 operator bool() const { return ccgsl_pointer != 0; }
719 };
720}
721#endif
This class handles complex_long_double numbers.
This class is used to handle gsl exceptions so that gsl can use these rather than the GSL error handl...
Definition: exception.hpp:387
@ GSL_EBADLEN
matrix, vector lengths are not conformant
Definition: exception.hpp:490
This class handles matrix_complex_long_double objects as shared handles.
gsl_matrix_complex_long_double * get()
Get the gsl_matrix_complex_long_double.
This class handles sparse matrix_complex_long_double objects as shared handles.
size_t nzmax() const
The maximum number of nonzero elements.
static spmatrix_complex_long_double compcol(spmatrix_complex_long_double const &spMatrix)
C++ version of gsl_spmatrix_complex_long_double_compcol().
static spmatrix_complex_long_double compress(spmatrix_complex_long_double const &spMatrix, int const sptype)
C++ version of gsl_spmatrix_complex_long_double_compress().
spmatrix_complex_long_double compress(int const sptype) const
C++ version of gsl_spmatrix_complex_long_double_compress().
int equal(spmatrix_complex_long_double const &b) const
C++ version of gsl_spmatrix_complex_long_double_equal().
spmatrix_complex_long_double compcol() const
C++ version of gsl_spmatrix_complex_long_double_compcol().
spmatrix_complex_long_double crs() const
C++ version of gsl_spmatrix_complex_long_double_crs().
int fprintf(FILE *stream, char const *format) const
C++ version of gsl_spmatrix_complex_long_double_fprintf().
static int sp2d(gsl::matrix_complex_long_double &A, spmatrix_complex_long_double const &S)
C++ version of gsl_spmatrix_complex_long_double_sp2d().
static spmatrix_complex_long_double csc(spmatrix_complex_long_double const &spMatrix)
C++ version of gsl_spmatrix_complex_long_double_csc().
static int transpose_memcpy(spmatrix_complex_long_double &dest, spmatrix_complex_long_double const &src)
C++ version of gsl_spmatrix_complex_long_double_transpose_memcpy().
spmatrix_complex_long_double & operator=(spmatrix_complex_long_double &&v)
Move operator.
int fread(FILE *stream)
C++ version of gsl_spmatrix_complex_long_double_fread().
size_t size1() const
The number of rows of the matrix_complex_long_double.
static spmatrix_complex_long_double fscanf(FILE *stream)
C++ version of gsl_spmatrix_complex_long_double_fscanf().
spmatrix_complex_long_double ccs() const
C++ version of gsl_spmatrix_complex_long_double_ccs().
spmatrix_complex_long_double()
The default constructor is only really useful for assigning to.
static int memcpy(spmatrix_complex_long_double &dest, spmatrix_complex_long_double const &src)
C++ version of gsl_spmatrix_complex_long_double_memcpy().
static int fwrite(FILE *stream, spmatrix_complex_long_double &spMatrix)
C++ version of gsl_spmatrix_complex_long_double_fwrite().
static int transpose(spmatrix_complex_long_double &a)
C++ version of gsl_spmatrix_complex_long_double_transpose().
static size_t nnz(spmatrix_complex_long_double const &spMatrix)
C++ version of gsl_spmatrix_complex_long_double_nnz().
int set(size_t const i, size_t const j, complex_long_double const x)
C++ version of gsl_spmatrix_complex_long_double_set().
static int d2sp(gsl::spmatrix_complex_long_double &S, gsl::matrix_complex_long_double const &A)
C++ version of gsl_spmatrix_complex_long_double_d2sp().
size_t use_count() const
Find how many spmatrix_complex_long_double objects share this pointer.
static spmatrix_complex_long_double add(spmatrix_complex_long_double const &a, spmatrix_complex_long_double const &b)
C++ version of gsl_spmatrix_complex_long_double_add().
spmatrix_complex_long_double(gsl_spmatrix_complex_long_double *v)
Could construct from a gsl_spmatrix_complex_long_double.
spmatrix_complex_long_double(std::initializer_list< std::initializer_list< complex_long_double > > initializer_list)
Could construct from a std::initializer_list in C++11 and later.
spmatrix_complex_long_double clone() const
The clone function.
int tree_rebuild()
C++ version of gsl_spmatrix_complex_long_double_tree_rebuild().
spmatrix_complex_long_double(size_t const n1, size_t const n2)
This constructor creates a new matrix_complex_long_double with n1 rows and n2 columns.
static int fread(FILE *stream, spmatrix_complex_long_double &spMatrix)
C++ version of gsl_spmatrix_complex_long_double_fread().
spmatrix_complex_long_double(size_t const n1, size_t const n2, size_t nzmax, size_t sptype)
This constructor creates a new matrix_complex_long_double with n1 rows and n2 columns.
int scale(complex_long_double const x)
C++ version of gsl_spmatrix_complex_long_double_scale().
int transpose()
C++ version of gsl_spmatrix_complex_long_double_transpose().
static int tree_rebuild(spmatrix_complex_long_double &spMatrix)
C++ version of gsl_spmatrix_complex_long_double_tree_rebuild().
long double const * data() const
Give access to the data block.
static spmatrix_complex_long_double crs(spmatrix_complex_long_double const &spMatrix)
C++ version of gsl_spmatrix_complex_long_double_crs().
static int dense_sub(gsl::matrix_complex_long_double &a, spmatrix_complex_long_double const &b)
C++ version of gsl_spmatrix_dense_sub().
static int realloc(size_t const nzmax, gsl::spmatrix_complex_long_double &spMatrix)
C++ version of gsl_spmatrix_complex_long_double_realloc(): matches a function in gsl that is intended...
int set_zero()
C++ version of gsl_spmatrix_complex_long_double_set_zero().
gsl_spmatrix_complex_long_double * get()
Get the gsl_spmatrix_complex_long_double.
int realloc(size_t const nzmax)
C++ version of gsl_spmatrix_complex_long_double_realloc().
int memcpy(spmatrix_complex_long_double &dest) const
C++ version of gsl_spmatrix_complex_long_double_memcpy().
spmatrix_complex_long_double(spmatrix_complex_long_double const &v)
The copy constructor.
int fwrite(FILE *stream) const
C++ version of gsl_spmatrix_complex_long_double_fwrite().
static int set_zero(spmatrix_complex_long_double &spMatrix)
C++ version of gsl_spmatrix_complex_long_double_set_zero().
bool unique() const
Find if this is the only object sharing the gsl_spmatrix_complex_long_double.
spmatrix_complex_long_double csc() const
C++ version of gsl_spmatrix_complex_long_double_csc().
void swap(spmatrix_complex_long_double &m)
Swap two spmatrix_complex_long_double objects.
static int transpose2(spmatrix_complex_long_double &a)
C++ version of gsl_spmatrix_complex_long_double_transpose2().
static int add_to_dense(gsl::matrix_complex_long_double &a, spmatrix_complex_long_double const &b)
C++ version of gsl_spmatrix_add_to_dense().
size_t size2() const
The number of columns of the matrix_complex_long_double.
gsl_spmatrix_complex_long_double * ccgsl_pointer
The shared pointer.
void wrap_gsl_spmatrix_complex_long_double_without_ownership(gsl_spmatrix_complex_long_double *v)
This function is intended mainly for internal use.
static int dense_add(gsl::matrix_complex_long_double &a, spmatrix_complex_long_double const &b)
C++ version of gsl_spmatrix_dense_add().
static spmatrix_complex_long_double csr(spmatrix_complex_long_double const &spMatrix)
C++ version of gsl_spmatrix_complex_long_double_csr().
static char const * type(spmatrix_complex_long_double const &spMatrix)
C++ version of gsl_spmatrix_complex_long_double_type().
size_t * count
The shared reference count.
int scale_rows(gsl::vector_complex_long_double const &x)
C++ version of gsl_spmatrix_complex_long_double_scale_rows().
static spmatrix_complex_long_double ccs(spmatrix_complex_long_double const &spMatrix)
C++ version of gsl_spmatrix_complex_long_double_ccs().
static int add(spmatrix_complex_long_double &c, spmatrix_complex_long_double const &a, spmatrix_complex_long_double const &b)
C++ version of gsl_spmatrix_complex_long_double_add().
static int fprintf(FILE *stream, spmatrix_complex_long_double const &spMatrix, char const *format)
C++ version of gsl_spmatrix_complex_long_double_fprintf().
gsl_complex_long_double * ptr(size_t const i, size_t const j) const
C++ version of gsl_spmatrix_complex_long_double_ptr().
~spmatrix_complex_long_double()
The destructor only deletes the pointers if count reaches zero.
spmatrix_complex_long_double(spmatrix_complex_long_double &&v)
Move constructor.
complex_long_double get(size_t const i, size_t const j) const
C++ version of gsl_spmatrix_complex_long_double_get().
int transpose2()
C++ version of gsl_spmatrix_complex_long_double_transpose2().
char const * type() const
C++ version of gsl_spmatrix_complex_long_double_type().
gsl_spmatrix_complex_long_double const * get() const
Get the gsl_spmatrix_complex_long_double.
static int equal(spmatrix_complex_long_double const &a, spmatrix_complex_long_double const &b)
C++ version of gsl_spmatrix_complex_long_double_equal().
size_t nnz() const
C++ version of gsl_spmatrix_complex_long_double_nnz().
spmatrix_complex_long_double csr() const
C++ version of gsl_spmatrix_complex_long_double_csr().
int scale_columns(gsl::vector_complex_long_double const &x)
C++ version of gsl_spmatrix_complex_long_double_scale_columns().
spmatrix_complex_long_double & operator=(spmatrix_complex_long_double const &v)
The assignment operator.
void reset()
Stop sharing ownership of the shared pointer.
long double * data()
Give access to the data block.
int sptype() const
The type of the spmatrix_complex_long_double.
This class handles vector_complex_long_double objects as shared handles.
gsl_vector_complex_long_double * get()
Get the gsl_vector_complex_long_double.
double b(int order, double qq)
C++ version of gsl_sf_mathieu_b().
Definition: sf_mathieu.hpp:298
double a(int order, double qq)
C++ version of gsl_sf_mathieu_a().
Definition: sf_mathieu.hpp:272
The gsl package creates an interface to the GNU Scientific Library for C++.
Definition: blas.hpp:34