help-octave
[Top][All Lists]
Advanced

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

Re: Shallow matrix construction in Octave C++ API


From: c.
Subject: Re: Shallow matrix construction in Octave C++ API
Date: Sun, 3 Nov 2013 08:46:04 +0100

On 3 Nov 2013, at 07:32, Mike Puglia <address@hidden> wrote:

> Hi, 
> 
> Someone asked a question on stackoverflow last year about shallow matrix 
> construction in the C++ API and it was never answered.  The link is:
> 
> http://stackoverflow.com/questions/10890131/shallow-matrix-construction-in-octave-c-api
> 
> I am also looking for a way to accomplish this and I was wondering if anyone 
> could shed some light on the subject.  The basic idea is simple.  I have a 
> matrix stored as an array of doubles in column-major format.  Is there anyway 
> to construct a light copy of a Matrix object around the pointer+length 
> information.  I have a performance critical application and I've run into a 
> spot where the Octave C++ API would be useful, but I can't afford to 
> initialize a new matrix and duplicate all of the data.
> 
> Thanks in advance,
> 
> MTP

No, there is no such method.

According to previous threads on this list
it seems this was a design choice which is not 
likely to change.

c.

reply via email to

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