Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gslvector.cpp

    r112b09 r5e8e02  
    1010#include <cassert>
    1111#include <cmath>
     12#include <iostream>
    1213
    1314#include "gslvector.hpp"
    1415#include "defs.hpp"
     16#include "vector.hpp"
     17#include "VectorContent.hpp"
    1518
    1619/** Constructor of class GSLVector.
     
    6164  gsl_vector_memcpy (vector, &m.vector);
    6265};
     66
     67/**
     68 * This function sets the GSLvector from an ordinary vector.
     69 *
     70 * Takes access to the internal gsl_vector and copies it
     71 */
     72void GSLVector::SetFromVector(Vector &v){
     73  gsl_vector_memcpy (vector, v.get()->content);
     74}
    6375
    6476/** This function returns the i-th element of a vector.
Note: See TracChangeset for help on using the changeset viewer.