Squeak Class Documentation category index | class index  
 
FloatArray
  category: Collections-Arrayed
  superclass: ArrayedCollection
  subclasses: B3DFloatArray KlattFrame

FloatArrays store 32bit IEEE floating point numbers.

instance methods
  accessing
  at:
at:put:
defaultElement
length
squaredLength

  arithmetic
  *
*=
+
+=
-
-=
/
/=
adaptToNumber:andSend:
dot:
negated

  comparing
  =
hash

  converting
  asFloatArray

  primitives-plugin
  primAddArray:
primAddScalar:
primDivArray:
primDivScalar:
primMulArray:
primMulScalar:
primSubArray:
primSubScalar:

  primitives-translated
 

  private
  replaceFrom:to:with:startingAt:

  user interface
  inspect
inspectWithLabel:

class methods
  plugin generation
  ccg:emitLoadFor:from:on:
ccg:prolog:expr:index:
ccgDeclareCForVar:

  primitive generation
 

instance methods
  accessing top  
 

at:

Primitive. Assumes receiver is indexable. Answer the value of an
indexable element in the receiver. Fail if the argument index is not an
Integer or is out of bounds. Essential. See Object documentation
whatIsAPrimitive.


 

at:put:

Primitive. Assumes receiver is indexable. Store the argument value in
the indexable element of the receiver indicated by index. Fail if the
index is not an Integer or is out of bounds. Or fail if the value is not of
the right type for this kind of collection. Answer the value that was
stored. Essential. See Object documentation whatIsAPrimitive.


 

defaultElement

Return the default element of the receiver


 

length

Return the length of the receiver


 

squaredLength

Return the squared length of the receiver


  arithmetic top  
 

*


 

*=


 

+


 

+=


 

-


 

-=


 

/


 

/=


 

adaptToNumber:andSend:

If I am involved in arithmetic with a Number. If possible,
convert it to a float and perform the (more efficient) primitive operation.


 

dot:

Primitive. Return the dot product of the receiver and the argument.
Fail if the argument is not of the same size as the receiver.


 

negated

Negated value of all elements in the collection


  comparing top  
 

=

Answer true if the receiver is equivalent to the otherCollection.
First test for identity, then rule out different species and sizes of
collections. As a last resort, examine each element of the receiver
and the otherCollection.


 

hash

Answer an integer hash value for the receiver such that,
-- the hash value of an unchanged object is constant over time, and
-- two equal objects have equal hash values


  converting top  
 

asFloatArray

Answer a FloatArray whose elements are the elements of the receiver, in
the same order.


  primitives-plugin top  
 

primAddArray:


 

primAddScalar:


 

primDivArray:


 

primDivScalar:


 

primMulArray:


 

primMulScalar:


 

primSubArray:


 

primSubScalar:


  primitives-translated top  

  private top  
 

replaceFrom:to:with:startingAt:

Primitive. This destructively replaces elements from start to stop in the receiver starting at index, repStart, in the collection, replacement. Answer the receiver. Range checks are performed in the primitive only. Optional. See Object documentation whatIsAPrimitive.


  user interface top  
 

inspect

Open a OrderedCollectionInspector on the receiver. Use basicInspect to get a normal (less useful) type of inspector.


 

inspectWithLabel:

Open a OrderedCollectionInspector on the receiver. Use basicInspect to get a normal (less useful) type of inspector.


class methods
  plugin generation top  
 

ccg:emitLoadFor:from:on:


 

ccg:prolog:expr:index:


 

ccgDeclareCForVar:


  primitive generation top