31 auto* tmp =
static_cast<gsl_matrix *
>(gslData);
33 tmp->data = tmp->block->data;
34 tmp->block->size = v.
rows()*v.
cols();
37 tmp->size1 = v.
rows();
38 tmp->size2 = v.
cols();
79 auto* tmp =
static_cast<gsl_vector *
>(gslData);
81 tmp->data = tmp->block->data;
82 tmp->block->size = v.
size();
85 tmp->size = tmp->block->size;
contains the definition of a Matrix type
contains the definition of a Vector type
GslMatrix(const yarp::sig::Matrix &)
Allocate from yarp Matrix.
void * getGslMatrix()
Return GSL compatile pointer.
GslVector(const yarp::sig::Vector &)
size_t cols() const
Return number of columns.
double * data()
Return a pointer to the first element.
size_t rows() const
Return number of rows.
T * data()
Return a pointer to the first element of the vector.