Fixed size tables of non-numeric types

37 views
Skip to first unread message

even.osca...@gmail.com

unread,
Mar 11, 2014, 10:14:00 AM3/11/14
to nt2...@googlegroups.com
Hello,

I am in the process of choosing a library to handle my vector/table/volume type of problems.

I do get the impression that nt2 is mostly for handling matlab type problems,

However I do have some other needs in addition to this.

 So the question is, in addition to the matlab functionality, is there one or more fixed size
vector/array/table/matrix/volume class(es) that can handle arbitrary types, and do not require
runtime memory allocation.

Like:

  Vector <std::string, 4        > v; // 1D vector, fixed size 4
  Table   <std::string, 4, 4    > t; // 2D table, fixed size (4,4)
  Volume<std::string, 4, 4, 4> v; // 3D volume, fixed size (4,4,4)


Best Regards,

Even

Joel Falcou

unread,
Mar 16, 2014, 1:59:26 PM3/16/14
to nt2...@googlegroups.com
Hi,

two elements of answer:

- NT2 supports statically sized table by using the of_size_ settings:

table<float, of_size_<4,4> > x;

for any number of dimensions up to 4.
Note that the static quality of the table dimensions is independant of its
storage duration that can be dynamic_ or automatic_.

- NT2 doesn't have support for non numeric types at the moment, so a table of string is doomed to fail.

even.osca...@gmail.com

unread,
Mar 24, 2014, 6:06:52 AM3/24/14
to nt2...@googlegroups.com
Hi,

Thanks, it seems like nt2 has the potential to be really useful.

Regards,

Even

Reply all
Reply to author
Forward
0 new messages