SUAVE  2.5.2
An Aerospace Vehicle Environment for Designing Future Aircraft
SUAVE.Analyses.Mission.Segments.Conditions.Conditions.expanded_array Class Reference
Inheritance diagram for SUAVE.Analyses.Mission.Segments.Conditions.Conditions.expanded_array:

Public Member Functions

def __init__ (self, cols, adjustment)
 
def resize (self, rows)
 
def __call__ (self)
 
def __mul__ (self, other)
 
def __rmul__ (self, other)
 

Detailed Description

This is an array that will expand later when the mission is initialized. It is called specifically by conditions

    Assumptions:
    None
    
    Source:
    None   

Constructor & Destructor Documentation

◆ __init__()

def SUAVE.Analyses.Mission.Segments.Conditions.Conditions.expanded_array.__init__ (   self,
  cols,
  adjustment 
)
Initialization that sets expansion later

    Assumptions:
    None

    Source:
    N/A

    Inputs:
    self
    cols       - columns                          [int]
    adjustment - how much smaller                 [int]

    Outputs:
    N/A
    
    Properties Used:
    N/A

Member Function Documentation

◆ __call__()

def SUAVE.Analyses.Mission.Segments.Conditions.Conditions.expanded_array.__call__ (   self)
This returns the value and shape of the array as is

    Assumptions:
    None

    Source:
    N/A

    Inputs:
    self

    Outputs:
    np.array   - properly sized                   [array]
    
    Properties Used:
    N/A

◆ __mul__()

def SUAVE.Analyses.Mission.Segments.Conditions.Conditions.expanded_array.__mul__ (   self,
  other 
)
Performs multiplication and returns self

    Assumptions:
    None

    Source:
    N/A

    Inputs:
    self
    other      - something can be multiplied      [float]

    Outputs:
    self
    
    Properties Used:
    N/A

◆ __rmul__()

def SUAVE.Analyses.Mission.Segments.Conditions.Conditions.expanded_array.__rmul__ (   self,
  other 
)
Performs multiplication and returns self

    Assumptions:
    None

    Source:
    N/A

    Inputs:
    self
    other      - something can be multiplied      [float]

    Outputs:
    self
    
    Properties Used:
    N/A

◆ resize()

def SUAVE.Analyses.Mission.Segments.Conditions.Conditions.expanded_array.resize (   self,
  rows 
)
This function actually completes the resizing. After this it's no longer an expanded array. That way it
    doesn't propogate virally. That means if one wishes to resize later the conditions need to be reset.

    Assumptions:
    None

    Source:
    N/A

    Inputs:
    self
    rows       - rows                             [int]
    v          - values (really self)             [int]

    Outputs:
    np.array   - properly sized                   [array]
    
    Properties Used:
    N/A

The documentation for this class was generated from the following file: