![]() |
Bridges-Python 3.5.0-dev1
Bridges(Python API)
|
brief This class can be used to create 2D arrays of type Element. More...
Public Member Functions | |
__init__ (self, rows=None, cols=None) | |
Create an array object with the specified dimensions. | |
![]() | |
None | set_size (self, int nd, list dim) |
Set the size of each dimensions; also allocates array space. | |
str | get_data_structure_type (self) |
Gets the data structure type. | |
List[int] | get_dimensions (self) |
Get the size of each dimensions. | |
Element | get_element (self, *args, **kwargs) |
Getter function for an element in the array at given position. | |
set_element (self, *args, **kwargs) | |
Setter function for an element in the array at given position. | |
__getitem__ (self, item) | |
__setitem__ (self, key, value) | |
dict | get_data_structure_representation (self) |
Generating the JSON string for a bridges array object. | |
Public Attributes | |
num_rows | |
num_cols | |
size | |
Additional Inherited Members | |
![]() | |
list | dims = [1,1,1] |
![]() | |
_dims | |
_array_data | |
_num_dims | |
_size | |
![]() | |
num_dims = property | |
Getter for representing the number of dimensions in the array. | |
size = property | |
Getter for representing the size of array. | |
brief This class can be used to create 2D arrays of type Element.
This class can be used to create 2D arrays of type Element. Element enables to store objects of any types and provide styling features for visualization purposes.
Array2D are internally represented as 1D arrays.
Example Tutorial at: https//:bridgesuncc.github.io/tutorials/Array.html (1D, 2D, and 3D Array)
bridges.array2d.Array2D.__init__ | ( | self, | |
rows = None , |
|||
cols = None |
|||
) |
Create an array object with the specified dimensions.
rows | number of rows in array (int) |
cols | number of cols in array (int) |
Reimplemented from bridges.array.Array.
bridges.array2d.Array2D.num_cols |
bridges.array2d.Array2D.num_rows |
bridges.array2d.Array2D.size |