help-octave
[Top][All Lists]
Advanced

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

Array Initialisation


From: Paul Keir
Subject: Array Initialisation
Date: Thu, 29 Apr 2010 09:53:50 +0100

Hi,

 

When using the Octave C++ libs, is it possible to initialise an array with a POD array which is already allocated?

 

Perhaps something like:

 

double data[W*H];

Array2<double> a(data,W,H);

 

Or maybe:

 

Array2<double> b(W,H);

b.set(data,W*H);

 

I guess that might interfere with the reference counting in ArrayRep?

 

Many thanks,

Paul



The University of Glasgow, charity number SC004401

reply via email to

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