YARP  2.3.70.1
Yet Another Robot Platform
yarp::gsl::GslMatrix Class Reference

Classes for compatibility with the GSL library. More...

#include <yarp/gsl/Gsl.h>

Public Member Functions

 GslMatrix (const yarp::sig::Matrix &)
 Allocate from yarp Matrix. More...
 
 ~GslMatrix ()
 
void * getGslMatrix ()
 Return GSL compatile pointer. More...
 
const void * getGslMatrix () const
 Return GSL compatile, const pointer. More...
 

Private Attributes

void * gslData
 

Detailed Description

Classes for compatibility with the GSL library.

Legacy code like: Matrix m; gsl_function(m.getGslMatrix());

Should be replaced with: Matrix m; gsl_function(GslMatrix(m).getGslMatrix());

Definition at line 39 of file Gsl.h.

Constructor & Destructor Documentation

◆ GslMatrix()

GslMatrix::GslMatrix ( const yarp::sig::Matrix v)

Allocate from yarp Matrix.

Definition at line 20 of file Gsl.cpp.

◆ ~GslMatrix()

GslMatrix::~GslMatrix ( )

Definition at line 42 of file Gsl.cpp.

Member Function Documentation

◆ getGslMatrix() [1/2]

void * GslMatrix::getGslMatrix ( )

Return GSL compatile pointer.

Definition at line 55 of file Gsl.cpp.

◆ getGslMatrix() [2/2]

const void * GslMatrix::getGslMatrix ( ) const

Return GSL compatile, const pointer.

Definition at line 61 of file Gsl.cpp.

Member Data Documentation

◆ gslData

void* yarp::gsl::GslMatrix::gslData
private

Definition at line 59 of file Gsl.h.


The documentation for this class was generated from the following files: