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: Sun, 07 Mar 2010 22:30:37 -0800

man, 08 03 2010 kl. 07:17 +0100, skrev Jaroslav Hajek:
> On Mon, Mar 8, 2010 at 12:08 AM, Søren Hauberg <address@hidden> wrote:
> > How about the attached changeset? With this, I can do
> >
> >    octave_idx_type tmp_size [] = {4, 5, 6, 7};
> >    const dim_vector size (tmp_size, 4);
> >    Array<double> A (size, 0);
> >
> > I was a bit confused about the use of the 'explicit' keyword in the
> > other constructors. I thought this keyword only made a difference for
> > constructors with one input argument, but I see it is used with all
> > constructors.
> >
> > Søren
> >
> 
> Seems OK to me.

I've pushed it.

Thanks,
Søren




reply via email to

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