search for: inarray

Displaying 5 results from an estimated 5 matches for "inarray".

2016 Nov 17
2
Loop invariant not being optimized
I've got an example where I think that there should be some loop-invariant optimization happening, but it's not. Here's the C code: #define DIM 8 #define UNROLL_DIM DIM typedef double InArray[DIM][DIM]; __declspec(noalias) void f1( InArray c, const InArray a, const InArray b ) { #pragma clang loop unroll_count(UNROLL_DIM) for( int i=0;i<DIM;i++) #pragma clang loop unroll_count(UNROLL_DIM) for( int j=0;j<DIM;j++) #pragma clang loop unroll_count(UNROLL_DIM)...
2016 Jul 11
2
extra loads in nested for-loop
I was looking at the code generated from the following c code and noticed extra loads in the inner-loop of these nested for-loops: #define DIM 8 #define UNROLL_DIM DIM typedef double InArray[DIM][DIM]; void f1( InArray c, InArray a, InArray b ) { #pragma clang loop unroll_count(UNROLL_DIM) for( int i=0;i<DIM;i++) #pragma clang loop unroll_count(UNROLL_DIM) for( int j=0;j<DIM;j++) #pragma clang loop unroll_count(UNROLL_DIM) for( int k=0;k<DIM;k++) {...
2016 Nov 18
2
Loop invariant not being optimized
...*Subject:* [llvm-dev] Loop invariant not being optimized > > > > I've got an example where I think that there should be some loop-invariant > optimization happening, but it's not. Here's the C code: > > #define DIM 8 > #define UNROLL_DIM DIM > typedef double InArray[DIM][DIM]; > > __declspec(noalias) void f1( InArray c, const InArray a, const InArray b ) > { > > #pragma clang loop unroll_count(UNROLL_DIM) > for( int i=0;i<DIM;i++) > #pragma clang loop unroll_count(UNROLL_DIM) > for( int j=0;j<DIM;j++) > #pragma clan...
2008 Mar 17
1
summary of summaries
...x. :2.7690 Max. :27.000 (Other):300 V10 Min. : 6.00 1st Qu.:10.00 Median :14.00 Mean :18.03 3rd Qu.:24.00 Max. :52.00 Now I want to get a summary statistics of the summaries. Obviously I would need to store the summary results inarrays. But I was wondering if that makes sense and how an expert would solve this? I don't want to create an array for each column if possible. Thanks for the kind support, Bernd [[alternative HTML version deleted]]
2005 Nov 24
1
Extended $ function called $$
...ents; } } // adds an arrays to an array but keeps the array flat Array.prototype.append = function(array){ for(var i=0; i<array.length; i++){ var item=array[i]; if(item){this[this.length]=item;} } } // Checks to see if the current string is in the given array String.prototype.inArray = function(array){ for(var i=0; i<array.length; i++){ if(this == array[i]){return true;} } return false; } $$=function(){ if(typeof arguments[0] != ''string''){ return arguments[0]; } // get a nice flat array of selectors var selectorArray = []; for(var...