help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Allocating N-dimensional Array in C++


From: Søren Hauberg
Subject: Re: Allocating N-dimensional Array in C++
Date: Fri, 19 Mar 2010 14:57:45 -0700

tor, 18 03 2010 kl. 16:41 -0400, skrev John W. Eaton:
> Any objection to removing the
> 
>   dim_vector (const octave_idx_type *vec, size_t vec_size)
> 
> construtor?  Or is there some big advantage to having this constructor
> that outweighs the negatives of it being an unsafe constructor since
> there is no way to ensure that the length of the array pointed to by
> VEC is at least VEC_SIZE elements?

I guess having short-hand constructors for up to 7 dimensions will be
enough to cover 99.9% of all use-cases. So, I would be okay with this
constructor being removed.

Søren



reply via email to

[Prev in Thread] Current Thread [Next in Thread]