#blas #lapack #ffi

rstsr-cblas-base

CBLAS enums and blas_int, lapack_int definition

2 releases

0.1.1 Jul 30, 2025
0.1.0 Jul 29, 2025

#2344 in Machine learning

Download history 82/week @ 2025-10-29 57/week @ 2025-11-05 115/week @ 2025-11-12 51/week @ 2025-11-19 83/week @ 2025-11-26 96/week @ 2025-12-03 141/week @ 2025-12-10 77/week @ 2025-12-17 40/week @ 2025-12-24 37/week @ 2025-12-31 25/week @ 2026-01-07 44/week @ 2026-01-14 64/week @ 2026-01-21 97/week @ 2026-01-28 65/week @ 2026-02-04 28/week @ 2026-02-11

262 downloads per month
Used in 20 crates (7 directly)

Apache-2.0

4KB

Basic blas_int, lapack_int definition and CBLAS enums

This crate serves as the very elementary definitions for all BLAS distributions (controlled by cargo feature ilp64):

  • blas_int for BLAS integers (used for dimensions)
  • lapack_int for LAPACK integers (used for dimensions, flags and integer scratchs iwork)

This crate also defines CBLAS enums.

Cargo feature

  • ilp64: control number of bits of blas_int and lapack_int.
  • lp64_as_int: use core::ffi::c_int instead of i32 as integer of LP64 scheme.

Both cargo features are not enabled by default.

Scheme ilp64 lp64_as_int Integer Type
LP64 No No i32
LP64 No Yes core::ffi::c_int
ILP64 Yes Ignored i64

No runtime deps

Features