Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Source file mesh_utils.ml
12345678910111213141516171819202122232425262728293031323334353637383940# 1 "src/mesh_utils.ml"openBigarray(* Useful conversion functions to avoid Obj.magic at many places while
being more secure. *)externalvec_to_c:('a,'b,'c)Array1.t->('a,'b,c_layout)Array1.t="%identity"externalvec_to_fortran:('a,'b,'c)Array1.t->('a,'b,fortran_layout)Array1.t="%identity"externalmat_to_c:('a,'b,'c)Array2.t->('a,'b,c_layout)Array2.t="%identity"externalmat_to_fortran:('a,'b,'c)Array2.t->('a,'b,fortran_layout)Array2.t="%identity"externalvec_opt_to_c:('a,'b,'c)Array1.toption->('a,'b,c_layout)Array1.toption="%identity"externalvec_opt_to_fortran:('a,'b,'c)Array1.toption->('a,'b,fortran_layout)Array1.toption="%identity"externalmat_opt_to_c:('a,'b,'c)Array2.toption->('a,'b,c_layout)Array2.toption="%identity"externalmat_opt_to_fortran:('a,'b,'c)Array2.toption->('a,'b,fortran_layout)Array2.toption="%identity"letis_c_layout(l:_layout)=l=(Obj.magicc_layout:_layout)letcopy_vecv=letv'=Array1.create(Array1.kindv)(Array1.layoutv)(Array1.dimv)inArray1.blitvv';v'letcopy_matm=letm'=Array2.create(Array2.kindm)(Array2.layoutm)(Array2.dim1m)(Array2.dim2m)inArray2.blitmm';m'