Skip to content

Commit

Permalink
Merge pull request #11 from anmonteiro/anmonteiro/rke-unsafe-bigarray
Browse files Browse the repository at this point in the history
Add `unsafe_bigarray` to `Rke.Weighted`
  • Loading branch information
dinosaure authored Jul 28, 2020
2 parents 79037d1 + 3b912d1 commit 0b3d570
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/rke.ml
Original file line number Diff line number Diff line change
Expand Up @@ -390,4 +390,6 @@ module Weighted = struct
let clear q =
q.r <- 0 ;
q.w <- 0

let unsafe_bigarray {v; _} = v
end
2 changes: 2 additions & 0 deletions lib/sigs.ml
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,8 @@ module Weighted = struct
(** Human-readable pretty-printer of {!t}. *)

(** / **)
val unsafe_bigarray :
('a, 'b) t -> ('a, 'b, Bigarray_compat.c_layout) Bigarray_compat.Array1.t

val from : ('a, 'b, Bigarray_compat.c_layout) Bigarray_compat.Array1.t -> ('a, 'b) t
end
Expand Down

0 comments on commit 0b3d570

Please sign in to comment.