Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Matrix Standard library

Tags:

c

Is there any standard library of Matrix in c. Which I can implement across the platform. If not then kindly tell me OS dependent libraries of Matrix.

like image 460
Siddiqui Avatar asked Jan 04 '10 05:01

Siddiqui


People also ask

Is there a matrix library in C++?

Eigen is a C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms.

What does matrix () do in C++?

In C++, a matrix is a so-called 2D array, with the dimensions as m,n, where m represents the number of rows present in the array, and n represents the number of columns in the array.

What is in the C++ Standard Library?

The Standard Template Library (STL) is a set of C++ template classes to provide common programming data structures and functions such as lists, stacks, arrays, etc. It is a library of container classes, algorithms, and iterators. It is a generalized library and so, its components are parameterized.

Is Python good for Matrix?

Matrix is one of the important data structures that can be used in mathematical and scientific calculations. Python does not have a straightforward way to implement a matrix data type.


2 Answers

There are so many.

In particular, you might want to look at the GNU scientific library.

Alternatively, you can just implement your own matrix operations.


Re cross platform:

GSL is very cross platform. According to the site, it compiles on around 12 operating systems (Solaris, Linux, darwin, various *BSDs and something called a SR8000 Super Technical Server). I would guess it could be compiled on embedded systems as well. For windows, you can either use cygwin or Gsl for Windows.

Which platforms are you planning on using?

like image 110
Seth Avatar answered Oct 22 '22 17:10

Seth


Meschach seems to be the only popular C-based matrix library. There are tons of C++ based matrix libraries however.

The main question however is for what purpose you need that library. If for mathematical linear algebra, you should rather find a linear algebra library, so you have all your operations in one place (BLAS based, for example spblas). If however you need matrix3 and matrix4 types for 3D calculations, you should try to find one that is optimized for 3x3 or 4x4 operations, like this one).

like image 26
Kornel Kisielewicz Avatar answered Oct 22 '22 18:10

Kornel Kisielewicz