Deal all,
The type
typedef double ***tmp_tensor3;
is meant to represent a three-dimensional array. For some reasons the
standard array-of-array-of-array will not work in my case.
Can I convert an object of this type to the following type?
typedef doule * const * const * tensor3;
This would indicate that I would not like to mess up the indices, just
modify the numbers.
Suppose I have a variable of type tensor3, and a function is not meant to
modify the numbers, so that would expect a const_testor3 object;
typedef const doule * const * const * const_tensor3;
But that also will not work without a cast.
Is there a good way to express the meaning of a function that is not supposed
to change the numbers inside of the tensor? Like putting all that in a struct
or something more sophisticated?
Szabolcs
The type
typedef double ***tmp_tensor3;
is meant to represent a three-dimensional array. For some reasons the
standard array-of-array-of-array will not work in my case.
Can I convert an object of this type to the following type?
typedef doule * const * const * tensor3;
This would indicate that I would not like to mess up the indices, just
modify the numbers.
Suppose I have a variable of type tensor3, and a function is not meant to
modify the numbers, so that would expect a const_testor3 object;
typedef const doule * const * const * const_tensor3;
But that also will not work without a cast.
Is there a good way to express the meaning of a function that is not supposed
to change the numbers inside of the tensor? Like putting all that in a struct
or something more sophisticated?
Szabolcs
Comment