pyfan.amto.array.mesh

Created on Nov 26, 2017

@author: fan

Most type of state grid generation:

Given N Vectors,

Module Contents

Functions

two_mat_mesh(mat_one, mat_two, return_joint=False, return_single_col=False)

Parameters

three_mat_mesh(mat_one, mat_two, mat_three, return_joint=False, return_single_col=False)

Parameters

multipl_mat_mesh(mat_one, mat_two, mat_three=None, mat_four=None, mat_five=None, mat_six=None)

check_length(mat)

pyfan.amto.array.mesh.logger[source]

Created on Mar 17, 2017

@author: fan

pyfan.amto.array.mesh.two_mat_mesh(mat_one, mat_two, return_joint=False, return_single_col=False)[source]
Parameters
return_single_col: boolean

mat_one and mat_two are single vector, shape them into 2d array with 1 column, rather than 1d. If not, could cause multiplication problems when we have both 1 column 2d array and single column 1d array in the same formula. But this can not always to set to True, hence default is actually false, because this function could take as input a matrix for mat_one, in that case, already 2d array.

pyfan.amto.array.mesh.three_mat_mesh(mat_one, mat_two, mat_three, return_joint=False, return_single_col=False)[source]
Parameters
return_single_col: boolean

mat_one and mat_two are single vector, shape them into 2d array with 1 column, rather than 1d. If not, could cause multiplication problems when we have both 1 column 2d array and single column 1d array in the same formula. But this can not always to set to True, hence default is actually false, because this function could take as input a matrix for mat_one, in that case, already 2d array.

pyfan.amto.array.mesh.multipl_mat_mesh(mat_one, mat_two, mat_three=None, mat_four=None, mat_five=None, mat_six=None)[source]
pyfan.amto.array.mesh.check_length(mat)[source]
pyfan.amto.array.mesh.mat_one[source]