help-octave
[Top][All Lists]
Advanced

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

Re: How do you create an Array<octave_idx_type> in an .oct file?


From: Juan Pablo Carbajal
Subject: Re: How do you create an Array<octave_idx_type> in an .oct file?
Date: Sat, 11 Apr 2015 12:03:41 +0200

On Sat, Apr 11, 2015 at 1:07 AM, babelproofreader
<address@hidden> wrote:
> I'd like to use the Array octave_idx_type as an index vector to insert a
> matrix into an NDArray ( see
> http://stackoverflow.com/questions/19273053/write-to-a-matrix-in-oct-file-without-looping?rq=1
> <http://stackoverflow.com/questions/19273053/write-to-a-matrix-in-oct-file-without-looping?rq=1>
> ) as in
>
> A.insert( B , Array<octave_idx_type> ) ;
>
> where the array A is 3-dimensional. I know that I can use
>
> A.insert( B , 0 , 0 ) ;
>
> to insert into the first "page" but it is important that I be able to insert
> into the other pages of A in a loop, presumably by changing the idx_vector
> values for the page once in each loop.
>
> How do I create this idx_type array?
>
> Note! This has also been cross posted to
> http://stackoverflow.com/questions/29572075/how-do-you-create-an-arrayoctave-idx-type-in-an-oct-file
> <http://stackoverflow.com/questions/29572075/how-do-you-create-an-arrayoctave-idx-type-in-an-oct-file>
>
>
>
>
> --
> View this message in context: 
> http://octave.1599824.n4.nabble.com/How-do-you-create-an-Array-octave-idx-type-in-an-oct-file-tp4669744.html
> Sent from the Octave - General mailing list archive at Nabble.com.
>
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/help-octave

Could you provide some example code of what you want to achieve?
Do you best and sent it over.



reply via email to

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