MATLAB BUILDER JA 2 Betriebsanweisung Seite 163

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 292
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 162
Using Class Methods
When run, the example displays this output:
The imaginary part of matrix A is:
6.0 5.0 14.0
7.0 1.0 23.0
1.0 1.0 9.0
Methods to Copy, Convert, and Compare MWNumericArrays
Use these methods to copy, convert, and compare objects of class
MWNumericArray.
Method Description
“clone” on
page 4-87
Creates and returns a deep copy of this array.
“compareTo”
on page 4-88
Compares this array with the specified array for order.
“equals” on
page 4-89
Indicates whether some other array is equal to this one.
“hashcode” on
page 4-89
Returns a hash code value for the array.
“sharedCopy”
on page 4-89
Creates and returns a shared copy of this array.
“toString” on
page 4-89
Returns a string representation of the array.
clone. This method create s and returns a deep copy of this array. Because
clone allocates a new array, any changes made to this new array are not
reflected in the original.
The
clone method of MWNumericArray overrides the clone method of class
MWArray.
The prototype for the
clone method is
public Object clone()
4-87
Seitenansicht 162
1 2 ... 158 159 160 161 162 163 164 165 166 167 168 ... 291 292

Kommentare zu diesen Handbüchern

Keine Kommentare