An array is an ordered data structure consisting of a collection of elements (values or variables), each identified by one (single dimensional array, or vector) or multiple indexes.
6
votes
0answers
175 views
Repa performance for planetary simulation
I have written a simulation of the outer planets of the solar system using the Euler symplectic method and implemented this a) using repa and b) using yarr.
yarr seems to perform about x30 quicker ...
3
votes
0answers
71 views
vectorize a function operated on subarray of a ndarray
I have a function acted on each 2D slices of a 3D array. How to vectorize the function to avoid loop to improve the performace? For example:
def interp_2d(x0,y0,z0,x1,y1):
# x0, y0 and z0 are 2D ...
3
votes
0answers
217 views
Performance of assigning values to array
Code optimizing is said here in SO that profiling is the first step for optimizing javascript and the suggested engines are profilers of Chrome and Firefox. The problem with those is that they tell in ...
3
votes
0answers
224 views
Passing C# array of COM objects to VB6
I'm trying to pass .NET array to COM VB6 library. I have an object which is COM wrapper of VB6 object. It has method with the following signature:
[MethodImpl(MethodImplOptions.InternalCall,
...
3
votes
0answers
777 views
Inno Setup: How to define an array in const?
I'm having some problems defining an array of strings in const under the code section in Inno Setup, I have the following:
[code]
const
listvar: array [0..4] of string =
('one', 'two', ...
3
votes
0answers
155 views
How-to implement a custom debugger visualiser in VS2008 on an array using a WeakReference?
I would like to implement a custom debugger visualiser in vs2008 for a typical array as the standard one does not display the data as I would like it. However Visual Studio prevents doing this for ...
2
votes
0answers
45 views
Convert multi-dimensional array to records
Given: {{1,"a"},{2,"b"},{3,"c"}}
Desired:
foo | bar
-----+------
1 | a
2 | b
3 | c
You can get the intended result with the following query; however, it'd be better to have something ...
2
votes
0answers
57 views
How to use jtextfield to print 2 words?
ok so i have this code :
package coding.language;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import java.util.Scanner;
import ...
2
votes
0answers
18 views
Reading mysqli prepared statement into array
My understanding of mysqli prepared statements and result sets is that they are all stored server side meaning you can only have one available at once. This is a pain when you are trying to use the ...
2
votes
0answers
62 views
C# Unions and array copy
I am trying to copy an array of Struct1 into an array of Struct2 (same binary representation) the fastest way possible.
I have defined an union to convert between Struct1[] and Struct2[] but when I ...
2
votes
0answers
119 views
Aptana 3 and PHP 5.4 new array format
There is anyway to do that Aptana don't mark like errors syntax the new array shorthand?
i found this ticket, for one year ago, and still is open
...
2
votes
0answers
209 views
Numpy high precision
I am using numpy and pyfits to manipulate spectra and I require high precision (something like 8-10 decimal places on a value which might go as high as 10^12). For that the data type "decimal" would ...
2
votes
0answers
61 views
Traversing and manipulating javascript object with arrays into single object matching a format
I've been racking my brains with this one, I've attempted to resolve this with a number of recursive functions with no joy so I thought I'd ask to see if anyone has any solutions.
I have an object ...
2
votes
0answers
97 views
PHP SOAP Complex Array Handing
Seems PHP does not handle complex array properly. Using PHP 5.
WSDL
<?xml version="1.0"?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="urn:CostQueryServicewsdl" ...
2
votes
0answers
79 views
Display tagged items in lists sorted by tags
I have tasks that have tags in this format:
Array
(
[0] => stdClass Object
(
[task_id] => 10,
[task_text] => Mow and fertilize,
[tags] => Array
...