|
|
Class: FloatArray
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
FloatArrays store floats (and nothing else).
See documentation in DoubleArray for more information.
[memory requirements:]
OBJ-HEADER + (size * float-size)
DoubleArray
Array
arithmetic
-
* anObject
-
return the product of the receiver and the argument.
The argument may either be a scalar or another vector
-
+ anObject
-
return the sum of the receiver and the argument.
The argument may either be a scalar or another vector
-
- anObject
-
return the difference of the receiver and the argument.
The argument may either be a scalar or another vector
-
/ anObject
-
return the division of the receiver and the argument.
The argument may either be a scalar or another vector
-
abs
-
-
negated
-
-
primAbs
-
destructive absolute value of each element
-
primAddArray: floatArray
-
add the vector argument into the receiver (destructive).
The argument must be another vector
-
primAddScalar: aScalar
-
add the scalar argument into the receiver (destructive).
-
primDivArray: floatArray
-
divide the vector argument into the receiver (destructive).
The argument must be another vector
-
primDivScalar: aScalar
-
divide the scalar argument into the receiver (destructive).
-
primMulArray: floatArray
-
multiply the vector argument into the receiver (destructive).
The argument must be another vector
-
primMulScalar: aScalar
-
multiply the scalar argument into the receiver (destructive).
-
primNegated
-
destructive negative value of each element
-
primSubtractArray: floatArray
-
subtract the vector argument from the receiver (destructive).
The argument must be another vector
-
primSubtractScalar: aScalar
-
subtract the scalar argument from the receiver (destructive).
arithmetic destructive
-
*= anObject
-
multiply the argument into the receiver (destructive).
The argument may either be a scalar or another vector
-
+= anObject
-
add the argument into the receiver (destructive).
The argument may either be a scalar or another vector
-
-= anObject
-
subtract the argument from the receiver (destructive).
The argument may either be a scalar or another vector
-
/= anObject
-
divide the argument into the receiver (destructive).
The argument may either be a scalar or another vector
copying
-
clone
-
return a copy of the receiver
-
copyFrom: start to: stop
-
return a partial copy of the receiver
-
replaceFrom: start to: stop with: aCollection startingAt: replStart
-
queries
-
absMax
-
return the largest absolute value
-
defaultElement
-
-
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)
-
max
-
return the largest element;
redefined for speed
-
min
-
return the largest element;
redefined for speed
-
minMax
-
return a Tuple holding the smallest and largest element;
redefined for speed
-
numFloats
-
-
squaredLength
-
Return the squared length of the receiver interpreted as vector
vector arithmetic
-
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.
|