MATLAB BUILDER JA 2 Podręcznik Użytkownika Strona 163

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 292
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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
Przeglądanie stron 162
1 2 ... 158 159 160 161 162 163 164 165 166 167 168 ... 291 292

Komentarze do niniejszej Instrukcji

Brak uwag