Skip to content
/ bal Public

Change of layout for Bigarrays (Fortran ←→ C)

Notifications You must be signed in to change notification settings

ghennequin/bal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bal: Bigarray layout changes

The OCaml Bigarray library is currently lacking functions to let you switch layouts, which makes it difficult to have libraries such as Lacaml (Fortran layout) and GSL (C layout) interact. This small library provides functions to change layouts.

let mf = Lacaml.D.Mat.random 10 5
let mc = Bal.change_mat_layout Bigarray.c_layout mf
(* this is now a 5x10 matrix *) 

About

Change of layout for Bigarrays (Fortran ←→ C)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published