Kevin Dolan
06-11-2002, 08:39 AM
I am curious about using NR C++ with the RogueWave Math.h++ libraries.
I know that my wrapper class must deal with the fact that RW indexes matrices with (i, J) rather than [i][j]. What really concerns me is the fact that RW works with views of data. This leads me to the following questions:
1) Do any of the NR routines explicitely use the copy constructor to create copies of data that can be modified without modifying the original data? for example:
void func(Vec_I_DP &x)
{
Vec_DP y(x);
for (int i = 0; i < y.size(); i++)
y[i] *= i;
...
}
2) Do any of the NR routines use the matrix subscripting operator to directly access a pointer to a column of a matrix?
3) Do any of the NR routines use the assignement operator to resize vectors or matrices?
Thanks,
Kevin Dolan
I know that my wrapper class must deal with the fact that RW indexes matrices with (i, J) rather than [i][j]. What really concerns me is the fact that RW works with views of data. This leads me to the following questions:
1) Do any of the NR routines explicitely use the copy constructor to create copies of data that can be modified without modifying the original data? for example:
void func(Vec_I_DP &x)
{
Vec_DP y(x);
for (int i = 0; i < y.size(); i++)
y[i] *= i;
...
}
2) Do any of the NR routines use the matrix subscripting operator to directly access a pointer to a column of a matrix?
3) Do any of the NR routines use the assignement operator to resize vectors or matrices?
Thanks,
Kevin Dolan