|
| |
| | Array - Wikipedia, the free encyclopedia |
 | | In computer programming, an array, also known as a vector or list (for one-dimensional arrays) or a matrix (for two-dimensional arrays), is one of the simplest data structures. |  | | The zero-based array was made popular by the C programming language, in which the abstraction of array is very weak, and an index n of an array is simply the address of the first element offset by n units. |  | | Dynamic arrays or growable arrays are arrays which automatically perform this resizing as late as possible, when the programmer attempts to add an element to the end of the array and there is no more space. |
|
http://en.wikipedia.org/wiki/Array
(1672 words)
|
|
| |
| | Array slicing - Wikipedia, the free encyclopedia |
 | | In computer programming, array slicing is an operation that extracts certain elements from an array and packages them as another array, possibly with different number of indices (or dimensions) and different index ranges. |  | | Depending on the language and context, the elements of the new array may be aliased to (i.e., share memory with) those of the original array. |  | | Slicing as a language feature probably started with FORTRAN (1957), more as a consequence of non-existent type and range checking than by design. |
|
http://en.wikipedia.org/wiki/Array_slicing
(547 words)
|
|
| |
| | multidimensional arrays Lambda the Ultimate |
 | | Arrays have a dimension/domain that you can query, unlike a typical function, and can only be indexed/called with integers. |  | | An array in CS is a piece of data, like a string or file. |  | | Sjoerd, in his factorial case, wants to reuse a function defined on Z as a function defined on arrays of Z. In Mathematica, Sjoerd's spec is easily satisfied by Listable. |
|
http://lambda-the-ultimate.org/node/view/222
(3983 words)
|
|
| |
| | [No title] |
 | | In the following, X is the array to be indexed, B is a boolean index array, and T is a tuple of indexing objects or a single indexing object (except for a boolean array) (note that X[a,b] is equivalent to X[(a,b)]). |  | | Implementation Plan This PEP proposes the implementation of the hybrid array object as a new-style C-type (with the ability to be subclassed) with the exception of a few python-level functions contained in numeric.py. |  | | These array objects make it possible for Python to be used in exactly the same way as other high-level interactive-and-programming environments such as MATLAB and IDL, while taking advantage of the superior programming language of Python. |
|
http://numeric.scipy.org/PEP.txt
(2588 words)
|
|
| |
| | Php Aphorisms: Reusable Code Snippets And Functions. Array Comparisons, Array Arguments Unfolding, Array Slicing And ... |
 | | Nesting this function into a loop so to compare multiple arrays scanned by such loop, might produce several interesting combinations depending on which part of the returned associative array you instruct to be used as one of the arguments at each next iteration of the nesting loop. |  | | This function extracts slices from an array once provided, along with the input array to manipulate, also a starting offset (and an optional end offset) index(es), and rearranges in various ways the array generated chunks that got split after such offset/s. |  | | It holds a numerically indexed array whose each entry represents a value that was found in both the passed arrays. |
|
http://www.unitedscripters.com/phps/aphorisms.html
(1852 words)
|
|
| |
| | C H A P T E R 8 - Evaluating and Displaying Data |
 | | Array Striding - Prints certain elements only, in a fixed pattern, within the specified slice (which may be an entire array). |  | | You evaluate arrays the same way you evaluate other types of variables. |  | | Here is the same array used in the previous example of a slice. |
|
http://docs.sun.com/source/817-6692/data.html
(1089 words)
|
|
| |
| | Arrays definition of Arrays in computing dictionary - by the Free Online Dictionary, Thesaurus and Encyclopedia. |
 | | Multi-dimensional arrays are used extensively in scientific simulation and mathematical processing; however, an array can be as simple as a pricing table held in memory for instant access by an order entry program. |  | | Arrays definition of Arrays in computing dictionary - by the Free Online Dictionary, Thesaurus and Encyclopedia. |  | | Most programming languages have the ability to store and manipulate arrays in one or more dimensions. |
|
http://computing-dictionary.thefreedictionary.com/Arrays
(130 words)
|
|
| |
| | Python Package modelutil: Writing Flexible and Robust Models |
 | | Otherwise, the array operations on the data are undefined. |  | | objects uses array slicing syntax a Numpy/numarray data array is returned. |  | | was an array dimensioned (level, longitude) that contained various values of latitude you wanted to obtain at each (level, longitude) location. |
|
http://geosci.uchicago.edu/csc/modelutil/doc/man-flex.html
(945 words)
|
|
| |
| | Blitz++ User's Guide |
 | | If you slice the array or work on subarrays, there can be skips -- the array data is interspersed with other data not part of the array. |  | | The returned array is guaranteed to be stored contiguously in memory, and to be the only object referring to its memory block (i.e. |  | | When initializing arrays with comma delimited lists, note that the array is filled in storage order: from the first memory location to the last memory location. |
|
http://www.oonumerics.org/blitz/manual/blitz02.html
(6336 words)
|
|
| |
| | Vectors and Arrays - Language design and implementation |
 | | For example, if a language has both dynamic arrays and bound checking, then the bounds (and strides) of arrays have to be decided at run-time, when the array is created, and passed on if the array is used as a parameter. |  | | Most languages allow multi-dimensional arrays, either by having multiple indices or by permitting the element type to itself be an array, although some have a maximum allowed number of dimensions. |  | | If the language allows slicing, then any array may be a slice from a higher-dimension array, so every array has to be treated as if it is dynamic - the origin, bounds and strides can only be calculated once the slice has happened, at run-time. |
|
http://www.cs.man.ac.uk/~pjj/cs2112/ho/node17.html
(1063 words)
|
|
| |
| | Computer Science:Algorithms:Chapter 3 - Wikibooks, collection of open-content textbooks |
 | | The algorithm works by merging small, sorted subsections of the original array to create larger subsections of the array which are sorted. |  | | We can have a binary representation by using an array (or an allocated block of memory) of words to represent the bits of the large integer. |  | | These smaller arrays will also be unsorted and it is meaningful to sort these smaller problems; thus we can consider these smaller arrays "similar". |
|
http://en.wikibooks.org/wiki/Computer_Science:Algorithms:Chapter_3
(2101 words)
|
|
| |
| | [#BOO-173] Multi-dimensional arrays. - jira.codehaus.org |
 | | Multi indexed accessors works, etc. The type references is implemented as "as (int,3)" meaning "an int array of rank 3" for now; I still don't know what the final verdict on this one is, but it's an easy change. |  | | My current rectangular array slicing considers "0:1" to mean "elements 0 through 1 inclusive" for each dimension. |  | | I think it's the "2" for the array rank being left around, as the type left on the stack is an Int32. |
|
http://jira.codehaus.org/browse/BOO-173
(1085 words)
|
|
| |
| | [No title] |
 | | Three separate implementations of bit array slicing have been posted here and on digitalmars.D.bugs, as replacements for the current, completely non-functional 'implementation' that's worse than having no implementation at all. |  | | Pros: - ABI consistency with other array types* - Semantic consistency with other array types (slicing into arrays), in the cases that would be supported Cons: - Not a general solution - Adding a restriction to the spec would be (arguably) a step backward 2. |  | | http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D/3782 Restrict slicing to slices beginning on byte boundaries. |
|
http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D/7197
(291 words)
|
|
| |
| | Slicing - BOO - Confluence |
 | | Support for user defined slicing operations is planned but currently not implemented. |  | | This is because the boo compiler cannot predict that you want to pass a collection to the method, and since the type Object is neither a collection or array, we got the error. |  | | If you read the examples with some attention, you saw that [] is used to create slices of lists - Boo.Lang.List or System.Collections.IList, to be more specific -, and using () you create slices of arrays. |
|
http://docs.codehaus.org/display/BOO/Slicing
(436 words)
|
|
| |
| | SourceForge.net: Files |
 | | These have to be actual ints, or else the Array operator[] does not work properly. |  | | We check that Array is not allocated first. |  | | This file includes only the Array class implementation files. |
|
http://sourceforge.net/project/shownotes.php?release_id=114580
(2714 words)
|
|
| |
| | Python: module field |
 | | output Field object's data is a Numeric/numarray array. |  | | array and MA/ma is reproduced for Field objects. |  | | Returns deepcopy of Field object with data as Numeric/numarray array. |
|
http://geosci.uchicago.edu/csc/modelutil/doc/field.html
(3779 words)
|
|
| |
| | [No title] |
 | | The "array slicing operator" returns an array with as many dimensions as it started with...so rectangular slicing isn't even an issue. |  | | Today, my record on questions relating to arrays is about 0-2, so maybe there's some easy way to do this that I've missed (smirk) > > * What happens if you array slice a rectangular array and try to set it > > "by reference" to another array? |  | | IMHO, this is an almost > > must-have feature...but be careful, Pavel (playful grin), because it > > won't look right to have end-exclusive syntax here, either > > How exactly do you slice an associative array? |
|
http://www.digitalmars.com/drn-bin/wwwnews?D/3626
(383 words)
|
|
| |
| | Specification for a new array slicing function |
 | | The intention here is to provide a means to extract n-dimensional array 'slices' from an existing array in memory. |  | | Please find below a suggested specification for a new array slicing function, formatted as a standard IDL prolog. |  | | Re: Specification for a new array slicing function |
|
http://cow.physics.wisc.edu/~craigm/idl/archive/msg00693.html
(357 words)
|
|
| |
| | [No title] |
 | | ; 1..9:2); Because of the retraction of RFC 24, it is necessary to limit the use of whole-dimension slicing syntax to within a list index, since in that case a finite sized slice can be generated (since the bounds of the list are known). |  | | may be '*', which expands to (0..) for every missing dimension of the sliced array: my int @b :shape(2,2,2) = get_some_matrix(); my @first_elems = @b[0;*]; # @b[[0,0,0],[0,0,1],[0,1,0],[0,1,1]] The '*' operand may only be used in an array slicing context. |  | | If the cartesian product is not being stored, but is only being used as an array index, generation of a simple stream of tokens may suffice, such as described in L |
|
http://dev.perl.org/perl6/rfc/205.pod
(689 words)
|
|
| |
| | Tung Wai Yip's blog |
 | | Slicing uses half open notations, where L[a:b] is a subsequence with index x where a |  | | We write programs to operate on arrays, to find their length, traverse the subsequences, split them or join them. |  | | I have reproduce its example (with corrections) below: |
|
http://tungwaiyip.info
(6333 words)
|
|
| |
| | What's New |
 | | This is the fourth year in a row STATISTICA has received high marks from Scientific Computing and Instrumentation readers for its comprehensive array of statistical techniques, analytical power, and user-friendly, customizable interface. |  | | A review in the February 2003 issue of DM Review describes how STATISTICA Data Miner's impressive array of data mining algorithms solved a variety of classification and prediction problems for Oklahoma State University graduate IT students. |  | | BP will initially utilize STATISTICA in its chemicals division where employees in the United States and Europe will have access to a wide array of basic and advanced statistical techniques, including quality control charts, process analysis, experimental design, and neural networks. |
|
http://www.statsoft.com/company/whats_new.html
(8689 words)
|
|
| |
| | Part 05 - Containers and Casting - BOO - Confluence |
 | | Slicing counts up from the number 0, so 0 would be the 1st value, 1 would be the 2nd, and so on. |  | | Arrays are simple objects that hold equally-sized data elements, generally of the same data type. |  | | Slicing is quite simple, and can be done to |
|
http://docs.codehaus.org/pages/viewpage.action?pageId=32060
(714 words)
|
|
| |
| | Alternative array and hash slicing - |
 | | would take a list and slice parameters, and return a slice. |  | | Finally, flattened indexed slices and hash value slicing. |  | | While most experienced Perl hackers are on friendly terms with the current slicing schema, ala: |
|
http://dev.perl.org/rfc/134.html
(621 words)
|
|
| |
| | [Tutor] Sorting [array slicing for copying arrays] |
 | | And, it is > much cleaner and easier to understand. |  | | Next message: [Tutor] __init__ Problem, self is not defined |  | | *grin* You can copy the roster in one shot by using a whole array slice, like this: self.results = self.roster[:] I hope this helps! |
|
http://mail.python.org/pipermail/tutor/2002-July/016026.html
(136 words)
|
|
|