Home Index classes Index static functions Index enumerations Index structure types

{Cvector|_of_complex}


CLASS {Cvector|_of_complex} , TESTED, OPERATORS:



IMPORT : {Complex} , {Sorting} .

{Complex}.{complex} Items|_stored[] , READ


      

FUNCTION New_cvector ( INT L|ength_Cvector ) ==> {Cvector} , NEW



FUNCTION Cvector|_from_fixed_array (
     
{complex} A|rray_source [*] ) ==> {Cvector} , NEW



FUNCTION Cvector_2 (
     
{complex} X|_coordinate ,
     
{complex} Y|_coordinate ) ==> {Cvector} , NEW



FUNCTION Cvector_3 (
     
{complex} X|_coordinate ,
     
{complex} Y|_coordinate ,
     
{complex} Z|_coordinate ) ==> {Cvector} , NEW



METHOD Count|_items ==> INT



METHOD Len|gth_of_Cvector ==> INT



------------------------------------------------------------ 'access items'

  

METHOD . [ INT Index INDEXING {complex} ] ==> {complex}



METHOD Clone|_of_Cvector ==> {Cvector} , NEW



----------------------------------------------------------------------- '*'

     

OPERATOR {Cvector} * {Cvector} ==> {complex} , OPERATORS



OPERATOR {Cvector} * REAL ==> {Cvector} , NEW , OPERATORS



OPERATOR {Cvector} * {complex} ==> {Cvector} , NEW , OPERATORS



OPERATOR REAL * {Cvector} ==> {Cvector} , NEW , OPERATORS



OPERATOR {complex} * {Cvector} ==> {Cvector} , NEW , OPERATORS



------------------------------------------------------------ '-A, A+B, A-B'

   

OPERATOR - {Cvector} ==> {Cvector} , NEW , OPERATORS



OPERATOR {Cvector} + {Cvector} ==> {Cvector} , NEW , OPERATORS



OPERATOR {Cvector} - {Cvector} ==> {Cvector} , NEW , OPERATORS



------------------------------------------------------------- '|A|, A == B'

   

METHOD Cmodule|_of_vector ==> {complex} , OPERATORS



METHOD Eq|ual_to_vector ( {Cvector} C|ompare_to ) ==> BOOL



METHOD Str|ing_representation ==> STR



------------------------------------------------------------------- 'A x B'

  

FUNCTION x|_vector_product (
     
{Cvector} A|_operand1 ,
     
{Cvector} B|_operand2 ) ==> {Cvector} , NEW , PUBLIC , OPERATORS



FUNCTION Cmixed|_product (
     
{Cvector} A|_operand1 ,
     
{Cvector} B|_operand2 ,
     
{Cvector} C|_operand3 ) ==> {complex} , OPERATORS


END