libuproc  1.2.0
Functions
matrix.h File Reference

Module: 2D double matrix. More...

#include <stdlib.h>
#include <stdarg.h>
#include "uproc/io.h"

Go to the source code of this file.

Functions

uproc_matrixuproc_matrix_create (unsigned long rows, unsigned long cols, const double *values)
 Create matrix object. More...
 
void uproc_matrix_destroy (uproc_matrix *matrix)
 Destroy matrix object. More...
 
void uproc_matrix_set (uproc_matrix *matrix, unsigned long row, unsigned long col, double value)
 Set the value of matrix[row, col]. More...
 
double uproc_matrix_get (const uproc_matrix *matrix, unsigned long row, unsigned long col)
 Get the value of matrix[row, col]. More...
 
void uproc_matrix_dimensions (const uproc_matrix *matrix, unsigned long *rows, unsigned long *cols)
 Obtain matrix dimensions. More...
 
uproc_matrixuproc_matrix_loads (uproc_io_stream *stream)
 Load matrix from stream. More...
 
uproc_matrixuproc_matrix_load (enum uproc_io_type iotype, const char *pathfmt,...)
 Load matrix from file. More...
 
uproc_matrixuproc_matrix_loadv (enum uproc_io_type iotype, const char *pathfmt, va_list ap)
 Load matrix from file. More...
 
int uproc_matrix_stores (const uproc_matrix *matrix, uproc_io_stream *stream)
 Store matrix to stream. More...
 
int uproc_matrix_store (const uproc_matrix *matrix, enum uproc_io_type iotype, const char *pathfmt,...)
 Store matrix to file. More...
 
int uproc_matrix_storev (const uproc_matrix *matrix, enum uproc_io_type iotype, const char *pathfmt, va_list ap)
 Store matrix to file. More...
 

Detailed Description

Module: 2D double matrix.