Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gslvector.cpp

    r112b09 r0c7ed8  
    66 */
    77
    8 #include "Helpers/MemDebug.hpp"
    9 
    108#include <cassert>
    119#include <cmath>
     
    1311#include "gslvector.hpp"
    1412#include "defs.hpp"
     13#include "vector.hpp"
    1514
    1615/** Constructor of class GSLVector.
     
    6160  gsl_vector_memcpy (vector, &m.vector);
    6261};
     62
     63/**
     64 * This function sets the GSLvector from an ordinary vector.
     65 *
     66 * Takes access to the internal gsl_vector and copies it
     67 */
     68void GSLVector::SetFromVector(Vector &v){
     69  gsl_vector_memcpy (vector, v.get());
     70}
    6371
    6472/** This function returns the i-th element of a vector.
Note: See TracChangeset for help on using the changeset viewer.