21 blitz::Array<double, 2> a(M->data, blitz::shape(M->size1, M->size2),
22 blitz::shape(M->tda, 1), blitz::neverDeleteData);
46 gsl_matrix_ = (gsl_matrix*) malloc(
sizeof(gsl_matrix));
52 gsl_matrix_->block = (gsl_block*) malloc(
sizeof(gsl_block));
81 free(gsl_vector_->block);
83 gsl_vector_free(gsl_vector_);
85 blitz::Array<double, 1> a(M->data, blitz::shape(M->size),
86 blitz::shape(M->stride), blitz::neverDeleteData);
105 free(gsl_vector_->block);
107 gsl_vector_free(gsl_vector_);
109 gsl_vector_ = (gsl_vector*) malloc(
sizeof(gsl_vector));
111 gsl_vector_->stride = 1;
113 gsl_vector_->owner = 0;
114 gsl_vector_->block = (gsl_block*) malloc(
sizeof(gsl_block));
128 free(gsl_vector_->block);
130 gsl_vector_free(gsl_vector_);
void reset(gsl_vector *M, bool Owned=true)
Reset class to point to new vector.
blitz::Array< double, 2 > blitz_array_
Contains classes to abstract away details in various Spurr Radiative Transfer software.
void reset(gsl_matrix *M, bool Owned=true)
Reset class to point to new matrix.
blitz::Array< T, D > to_c_order(const blitz::Array< T, D > &In)
Ensure that a given blitz::Array is contiguous, not reversed, and in C RowMajorArray format...