#OTHER by cg
authorClaus Gittinger <cg@exept.de>
Sat, 02 Mar 2019 23:16:40 +0100
changeset 23797 119ce5d12f09
parent 23796 72db4bb61aaf
child 23798 300f01ecb7f0
#OTHER by cg added: #isFloatArray
DoubleArray.st
--- a/DoubleArray.st	Sat Mar 02 23:15:13 2019 +0100
+++ b/DoubleArray.st	Sat Mar 02 23:16:40 2019 +0100
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
 "
  COPYRIGHT (c) 1993 by Claus Gittinger
 	      All Rights Reserved
@@ -295,6 +297,17 @@
     "
 ! !
 
+!DoubleArray methodsFor:'testing'!
+
+isFloatArray
+    "return true if the receiver has float elements.
+     These are Float, Double- and HalfFloat arrays"
+
+    ^ true
+
+    "Created: / 02-03-2019 / 23:13:34 / Claus Gittinger"
+! !
+
 !DoubleArray methodsFor:'vector arithmetic'!
 
 dot: aFloatVector