Boost logo

Boost :

Subject: Re: [boost] different matrix library?
From: joel (joel.falcou_at_[hidden])
Date: 2009-08-15 06:00:18

Edward Grace wrote:
> Hmm, is the 'vector' and 'matrix' paradime you have in mind in the
> same manner as MATLAB?
Yes, NT2 is no more no less than a copycat of Matlab in C++

> There they seem to be two-faced, they are mathematical vectors and
> matricies but also just collections of values.
They are. nt2::matrix acts a s multi-dimensional collection of numerical
values that supports large nbr of functions and methods.
> Perhaps there needs to be a reasonable distinction between element
> wise operations and global operations on the object, for instance all
> the different types of product
> - Matrix product (* in MATLAB)
> - Hadamard product (.* in MATLAB)
> - Kronecker product (kron(A,B) in MATLAB)
> - Tensor product (tprod MATLAB Mex
What I do now is having :
 - * being matrix product
 - mul() beign Hadamard
 - kron and tprod bieng what they are.

Of course matrix * scalar falls back to Hadamard.

The underlying principles of NT2 is that matrix is the common
representation for all domain-specific entities.
So we have a polynom, image and even transform object that reuse
components of matrix to perform their
computation but with a stricter semantic. Matrix also play the role of
Lin. Alg. matrix and vector.

Joel Falcou - Assistant Professor
PARALL Team - LRI - Universite Paris Sud XI
Tel : (+33)1 69 15 66 35

Boost list run by bdawes at, gregod at, cpdaniel at, john at