Class | Dobjects::Dtable |
In: |
split/Dvector/dvector.c
|
Parent: | Object |
Dtables are a specialized implementation of two-dimensional arrays of double precision floating point numbers. They are intended for use in applications needing efficient processing of large 2D tables of numeric data. Essentially any of the operations you might do with a Ruby Array of numbers can also be done with a Dtable. Dtables follow the same design philosophy as Dvector and uses Dvectors for several operations.
Called by the marshalling mechanism to store a permanent copy of a Dtable. limit is simply ignored.
When argument is a number, this operation returns a copy of dtable with each entry x replaced by x + number. When argument is a data array, this operation returns a copy of dtable with each entry x replaced by x + the corresponding entry in the other data array.
When argument is a number, each entry x in dtable is replaced by x + number. When argument is a data array, each entry x in dtable is replaced by x + the corresponding entry in the other data array.
When argument is a number, this operation returns a copy of dtable with each entry x replaced by number ** x. When argument is a data array, this operation returns a copy of dtable with each entry x replaced by the corresponding entry in the other data array raised to the power x.
When argument is a number, this operation replaces each entry x of dtable by number ** x. When argument is a data array, this operation replaces each entry x of dtable by the corresponding entry in the other data array raised to the power x.
When argument is a number, this operation returns a copy of dtable with each entry x replaced by the angle whose tangent is x/number. When argument is a data array, this operation returns a copy of dtable with each entry x replaced by the angle whose tangent is x divided by the corresponding entry in the other data array.
When argument is a number, this operation replaces each entry x of dtable by the angle whose tangent is x/number. When argument is a data array, this operation replaces each entry x of dtable by the angle whose tangent is x divided by the corresponding entry in the other data array.
When argument is a number, this operation returns a copy of dtable with each entry x replaced by x / number. When argument is a data array, this operation returns a copy of dtable with each entry x replaced by x / the corresponding entry in the other data array.
When argument is a number, each entry x in dtable is replaced by x / number. When argument is a data array, each entry x in dtable is replaced by x / the corresponding entry in the other data array.
Returns a copy of dtable. For performance sensitive situations involving a series of operations, first make a copy using dup and then do "bang" operations to modify the result without further copying.
When argument is a number, this operation returns a copy of dtable with each entry x replaced by x % number. When argument is a data array, this operation returns a copy of dtable with each entry x replaced by x % the corresponding entry in the other data array.
When argument is a number, this operation returns a copy of dtable with each entry x replaced by x % number. When argument is a data array, this operation returns a copy of dtable with each entry x replaced by x % the corresponding entry in the other data array.
When argument is a number, this operation returns a copy of dtable with each entry x replaced by x * number. When argument is a data array, this operation returns a copy of dtable with each entry x replaced by x * the corresponding entry in the other data array.
When argument is a number, each entry x in dtable is replaced by x * number. When argument is a data array, each entry x in dtable is replaced by x * the corresponding entry in the other data array.
When argument is a number, this operation returns a copy of dtable with each entry x replaced by x ** number. When argument is a data array, this operation returns a copy of dtable with each entry x replaced by x ** the corresponding entry in the other data array.
When argument is a number, this operation returns a copy of dtable with each entry x replaced by x ** number. When argument is a data array, this operation returns a copy of dtable with each entry x replaced by x ** the corresponding entry in the other data array.
The contents of dtable are replaced by the contents of the file, starting after skipping the specified number of lines. The values in the file are listed with row number 0 first.
When the argument is a number, this operation returns a copy of dtable with each entry x replaced by the remainder of x divided by number. When the argument is a data array, this operation returns a copy of dtable with each entry x replaced by the remainder of x divided by the corresponding entry in the other data array.
Replace each entry x of dtable with the integer closest to x. (Numbers midway between integers round away from zero.)
Returns a copy of dtable with each entry x replaced by sign(x)/cutoff if abs(x) < cutoff, 1/x otherwise.
Replaces each entry x in dtable by sign(x)/cutoff if abs(x) < cutoff, 1/x otherwise.
Stores the contents of a_dec in the specified column of the array. The length of the vector must equal the number of rows in the array.
Stores the contents of a_dec in the specified row of the array. The length of the vector must equal the number of columns in the array.
When argument is a number, this operation returns a copy of dtable with each entry x replaced by x - number. When argument is a data array, this operation returns a copy of dtable with each entry x replaced by x - the corresponding entry in the other data array.
When argument is a number, each entry x in dtable is replaced by x - number. When argument is a data array, each entry x in dtable is replaced by x - the corresponding entry in the other data array.