I'm trying to accomplish
namespace NTL
{
typedef std::valarray vector;
}
through standard C++. I know it's not allowed, but I need a quick and easy way (without reimplementing all functions, operators, overloads, etc.) to get a template typedef.
I am now doing a template class Vector which has a valarray as data member, but that will require me to overload all math functions for my vector (again... as valarray does it as well).
Any ideas? Thanks!
PS: I will probably need to extend the functionality of NTL::vector
at some point, and a way to incorporate that in the solution would be awesome.