```py eigenspaces=key_matrix.eigenspaces_right(format='galois') target_eigenspace=None for eigenvalue,eigenspace in eigenspaces: if eigenvalue==1: target_eigenspace=eigenspace breaktarget_input=None while True: random_vector=target_eigenspace.random_element()...
(i,j) // Inputs: // file_name path to .dmat file // W eigen matrix containing to-be-written coefficients // ascii write ascii file {true} // Returns true on success, false on error // template <typename DerivedW> IGL_INLINE bool writeDMAT( const std::string file_name, ...
m_pOutfid->write_int(FIFF_FIRST_SAMPLE, &first);//m_pOutfid->finish_writing_raw();Eigen::MatrixXd eData = evoked.data; Eigen::MatrixXd matValue = MatrixXd::Zero(eData.rows()+10, eData.cols()); matValue.block(0,0,128,matValue.cols()) = evoked.data; m_pOutfid->write_raw...
CvSeq* s = cvGetFileNodeByName( fs2,0,"frame_size")->data.seq;intframe_width = cvReadInt( (CvFileNode*)cvGetSeqElem(s,0) );intframe_height = cvReadInt( (CvFileNode*)cvGetSeqElem(s,1) ); CvMat* color_cvt_matrix = (CvMat*) cvReadByName( fs2,0,"color_cvt_matrix");printf("co...
►EigenMatrix ►elasticityMotionSolver ►electrostaticDepositionFvPatchScalarField ►electrostaticPotential ►emptyFaePatchField ►emptyFaPatch ►emptyFaPatchField ►emptyFvPatch ►emptyFvPatchField ►emptyFvsPatchField ►emptyOp ►emptyPointPatch ►emptyPointPatchField ►emptyPolyPatch ►end...
bool YaelIO::write_fvecs_file(const char *file_name, const Eigen::Matrix<float, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor> & data) { assert(file_name); FILE *pf = fopen(file_name, "w"); if (!pf) { perror ("ivecs_write"); return false; } int d = (int)data.cols(...
►EigenMatrix ►elasticityMotionSolver ►electrostaticPotential ►emptyFaePatchField ►emptyFaPatch ►emptyFaPatchField ►emptyFvPatch ►emptyFvPatchField ►emptyFvsPatchField ►emptyOp ►emptyPointPatch ►emptyPointPatchField ►emptyPolyPatch ►endian ►energyJumpAMIFvPatchScalarField ...
fileout.close() 开发者ID:LeopoldC,项目名称:ProjetTransposable,代码行数:35,代码来源:makeTElearningmatrix.py 示例3: convertNetToGefx ▲点赞 3▼ defconvertNetToGefx(input_file):G =Noneifinput_file.endswith(Constants.GEXF_FORMAT): G = nx.read_gexf(input_file,None,True)elifinput_file.endswith...
eulerMatrix = Euler_angles2matrix(0.0,0.0, psi) x = MDin.getValue(xmipp.MDL_SHIFT_X, i) y = MDin.getValue(xmipp.MDL_SHIFT_Y, i) shift = array([x, y,0]) shiftOut = dot(eulerMatrix, shift) [x, y, z] = shiftOutifflip: ...
group_sum_matrix.cpp group_sum_matrix.h guess_extension.cpp guess_extension.h harmonic.cpp harmonic.h harwell_boeing.cpp harwell_boeing.h hausdorff.cpp hausdorff.h heat_geodesics.cpp heat_geodesics.h hessian.cpp hessian.h hessian_energy.cpp hessian_energy.h histc.cpp histc.h hsv_to_rgb...