eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'FloatArray':

Home

everywhere
www.exept.de
for:
[back]

Class: FloatArray


Inheritance:

   Object
   |
   +--Collection
      |
      +--SequenceableCollection
         |
         +--ArrayedCollection
            |
            +--FloatArray

Package:
stx:libbasic
Category:
Collections-Arrayed
Version:
rev: 1.26 date: 2009/12/01 22:11:19
user: cg
file: FloatArray.st directory: libbasic
module: stx stc-classLibrary: libbasic
Author:
Claus Gittinger

Description:


FloatArrays store floats (and nothing else).
See documentation in DoubleArray for more information.

[memory requirements:]
    OBJ-HEADER + (size * float-size)


Related information:

    DoubleArray
    Array

Instance protocol:

arithmetic
o  * anObject
return the product of the receiver and the argument.
The argument may either be a scalar or another vector

o  + anObject
return the sum of the receiver and the argument.
The argument may either be a scalar or another vector

o  - anObject
return the difference of the receiver and the argument.
The argument may either be a scalar or another vector

o  / anObject
return the division of the receiver and the argument.
The argument may either be a scalar or another vector

o  abs

o  negated

o  primAbs
destructive absolute value of each element

o  primAddArray: floatArray
add the vector argument into the receiver (destructive).
The argument must be another vector

o  primAddScalar: aScalar
add the scalar argument into the receiver (destructive).

o  primDivArray: floatArray
divide the vector argument into the receiver (destructive).
The argument must be another vector

o  primDivScalar: aScalar
divide the scalar argument into the receiver (destructive).

o  primMulArray: floatArray
multiply the vector argument into the receiver (destructive).
The argument must be another vector

o  primMulScalar: aScalar
multiply the scalar argument into the receiver (destructive).

o  primNegated
destructive negative value of each element

o  primSubtractArray: floatArray
subtract the vector argument from the receiver (destructive).
The argument must be another vector

o  primSubtractScalar: aScalar
subtract the scalar argument from the receiver (destructive).

arithmetic destructive
o  *= anObject
multiply the argument into the receiver (destructive).
The argument may either be a scalar or another vector

o  += anObject
add the argument into the receiver (destructive).
The argument may either be a scalar or another vector

o  -= anObject
subtract the argument from the receiver (destructive).
The argument may either be a scalar or another vector

o  /= anObject
divide the argument into the receiver (destructive).
The argument may either be a scalar or another vector

copying
o  clone
return a copy of the receiver

o  copyFrom: start to: stop
return a partial copy of the receiver

o  replaceFrom: start to: stop with: aCollection startingAt: replStart

queries
o  absMax
return the largest absolute value

o  defaultElement

o  length
Return the length of the receiver interpreted as vector
(that is the length of the vector from 0.0 @ 0.0 @ ... @ 0.0
to the point in the n-dimensional space represented by the receiver)

o  max
return the largest element;
redefined for speed

o  min
return the largest element;
redefined for speed

o  minMax
return a Tuple holding the smallest and largest element;
redefined for speed

o  numFloats

o  squaredLength
Return the squared length of the receiver interpreted as vector

vector arithmetic
o  dot: aFloatVector
Return the dot product of the receiver and the argument.
Fail if the argument is not of the same size as the receiver.



ST/X 6.1.1; WebServer 1.620 at exept:8081; Wed, 23 May 2012 09:14:01 GMT