ComplexFloatArray.st
author Claus Gittinger <cg@exept.de>
Sat, 02 May 2020 21:40:13 +0200
changeset 5476 7355a4b11cb6
parent 4657 a2eb42a52e8b
permissions -rw-r--r--
#FEATURE by cg class: Socket class added: #newTCPclientToHost:port:domain:domainOrder:withTimeout: changed: #newTCPclientToHost:port:domain:withTimeout:
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4657
a2eb42a52e8b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4654
diff changeset
     1
"{ Encoding: utf8 }"
a2eb42a52e8b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4654
diff changeset
     2
4654
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
"
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
 COPYRIGHT (c) 2018 by Claus Gittinger
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
              All Rights Reserved
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
 This software is furnished under a license and may be used
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
 only in accordance with the terms of that license and with the
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
 inclusion of the above copyright notice.   This software may not
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
 be provided or otherwise made available to, or used by, any
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
 other person.  No title to or ownership of the software is
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
 hereby transferred.
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
"
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
"{ Package: 'stx:libbasic2' }"
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
"{ NameSpace: Smalltalk }"
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
AbstractNumberVector variableFloatSubclass:#ComplexFloatArray
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
	instanceVariableNames:''
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
	classVariableNames:''
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
	poolDictionaries:''
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
	category:'Collections-Arrayed'
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
!
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
!ComplexFloatArray class methodsFor:'documentation'!
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
copyright
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
"
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
 COPYRIGHT (c) 2018 by Claus Gittinger
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
              All Rights Reserved
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
 This software is furnished under a license and may be used
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
 only in accordance with the terms of that license and with the
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
 inclusion of the above copyright notice.   This software may not
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
 be provided or otherwise made available to, or used by, any
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
 other person.  No title to or ownership of the software is
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
 hereby transferred.
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
"
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
!
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
documentation
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
"
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
    ComplexFloatArrays store complex numbers (in single prevision) and nothing else.
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
    They have been added to support heavy duty number crunching and
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
    data exchange with openGL frameworks and other mass data libraries
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
    somewhat better than other smalltalks do. 
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
    Storing Complex numbers in these objects (instead of Arrays)
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
    has some benefits:
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
    1) since the values are stored directly (instead of pointers to them)
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
       both access overhead and garbage collect overhead is minimized.
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
    2) they can be much faster passed to c functions (such as graphics 
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
       libraries or heavy duty math packages), since the double values
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
       come packed and can be used in C by using a (double *) or double[].
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
       There is no need to loop over the array extracting doubles.      
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
    3) they could (in theory) be much more easily be processed by things like
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
       vector and array processors
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
    Be aware however, that ComplexFloatArrays are not supported in other
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
    smalltalks - your program will thus become somewhat less portable.
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
    (since their protocol is the same as normal arrays filled with floats,
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
     they can of course be easily simulated - a bit slower though)
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
    However, they could be simulated by a ByteArray, using doubleAt: and 
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
    doubleAtPut: messages to access the elements, but that seems a bit
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
    clumsy and unelegant. Also, the stc-compiler may learn how to deal
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
    with Float- and DoubleArrays, making accesses very fast in the future.
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
    Hint: if you use doubleArrays in your application and must port it
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
    to some other smalltalk, define a DoubleArray class there, which is derived
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
    from ByteArray, and add access methods.
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
    Of course, ComplexFloatArrays can be subclassed,
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
    and named instance variables can be added there.
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
    [memory requirements:]
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
        OBJ-HEADER + (size * float-size * 2)
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    79
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    80
    [See also:]
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    81
        ComplexSoubleArray DoubleArray FloatArray Array
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    82
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    83
    [author:]
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    84
        Claus Gittinger
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    85
"
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    86
!
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    87
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    88
examples
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    89
"
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    90
                                                                [exBegin]
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    91
    |vec|
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    92
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    93
    vec := ComplexFloatArray new:4.
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    94
    vec size.
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    95
    vec at:1.
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    96
    vec at:2.
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    97
    vec at:3.
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    98
    vec at:4.
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    99
    vec at:1 put:(1 + 4i).
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   100
    vec at:2 put:(2 + 4i).
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   101
    vec at:4 put:(4 + 4i).
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   102
    vec
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   103
                                                                [exEnd]
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   104
"
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   105
! !
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   106
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   107
!ComplexFloatArray class methodsFor:'instance creation'!
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   108
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   109
new:size
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   110
    ^ super new:(size * 2)
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   111
! !
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   112
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   113
!ComplexFloatArray class methodsFor:'queries'!
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   115
elementByteSize
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   116
    "for bit-like containers, return the number of bytes stored per element.
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   117
     Here, 2*4 is returned"
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   118
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   119
    ^ 8
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   120
! !
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   121
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   122
!ComplexFloatArray methodsFor:'accessing'!
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   123
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   124
at:index
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   125
    |baseIdx|
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   126
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   127
    baseIdx := index * 2.
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   128
    ^ Complex basicNew
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   129
        setReal:(self basicAt:(baseIdx - 1))
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   130
        setImaginary:(self basicAt:(baseIdx))
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   131
!
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   132
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   133
at:index put:aComplex
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   134
    |baseIdx|
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   135
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   136
    baseIdx := index * 2.
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   137
    self basicAt:(baseIdx - 1) put:aComplex real.
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   138
    self basicAt:(baseIdx) put:aComplex imaginary.
4657
a2eb42a52e8b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4654
diff changeset
   139
!
a2eb42a52e8b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4654
diff changeset
   140
a2eb42a52e8b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4654
diff changeset
   141
at:index put:realPart i:imaginaryPart
a2eb42a52e8b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4654
diff changeset
   142
    |baseIdx|
a2eb42a52e8b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4654
diff changeset
   143
a2eb42a52e8b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4654
diff changeset
   144
    baseIdx := index * 2.
a2eb42a52e8b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4654
diff changeset
   145
    self basicAt:(baseIdx - 1) put:realPart.
a2eb42a52e8b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4654
diff changeset
   146
    self basicAt:(baseIdx) put:imaginaryPart.
a2eb42a52e8b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4654
diff changeset
   147
!
a2eb42a52e8b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4654
diff changeset
   148
a2eb42a52e8b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4654
diff changeset
   149
imaginaryAt:index
a2eb42a52e8b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4654
diff changeset
   150
    |baseIdx|
a2eb42a52e8b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4654
diff changeset
   151
a2eb42a52e8b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4654
diff changeset
   152
    baseIdx := index * 2.
a2eb42a52e8b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4654
diff changeset
   153
    ^ (self basicAt:(baseIdx))
a2eb42a52e8b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4654
diff changeset
   154
!
a2eb42a52e8b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4654
diff changeset
   155
a2eb42a52e8b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4654
diff changeset
   156
realAt:index
a2eb42a52e8b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4654
diff changeset
   157
    |baseIdx|
a2eb42a52e8b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4654
diff changeset
   158
a2eb42a52e8b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4654
diff changeset
   159
    baseIdx := index * 2.
a2eb42a52e8b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4654
diff changeset
   160
    ^ (self basicAt:(baseIdx - 1))
4654
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   161
! !
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   162
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   163
!ComplexFloatArray methodsFor:'queries'!
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   164
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   165
defaultElement
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   166
    ^ Complex zero
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   167
!
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   168
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   169
isValidElement:anObject
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   170
    "return true, if I can hold this kind of object"
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   171
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   172
    ^ anObject isNumber
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   173
!
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   174
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   175
size
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   176
    ^ super size // 2
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   177
! !
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   178
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   179
!ComplexFloatArray class methodsFor:'documentation'!
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   180
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   181
version
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   182
    ^ '$Header$'
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   183
!
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   184
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   185
version_CVS
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   186
    ^ '$Header$'
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   187
! !
8d88bdbad647 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   188