-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* WIP: Remove rlst_common * Removed rlst_common * Removed cyclic dependency * Renamed Scalar to RlstScalar * Added pointer to original licese for Scalar package derived RlstScalar trait. * Removed cauchy from dependencies * Fixed serde issue
- Loading branch information
Showing
71 changed files
with
964 additions
and
587 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ members = [ | |
"dense", | ||
"operator", | ||
"sparse", | ||
"common", | ||
"io", | ||
"suitesparse-src", | ||
"blis-src", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,4 @@ | ||
//! Public interface to Blis routines. | ||
pub mod gemm; | ||
// pub mod gemm; | ||
pub mod threading; | ||
pub mod types; | ||
|
||
use cauchy::Scalar; | ||
|
||
/// Compute expected size of a data slice from stride and shape. | ||
pub fn get_expected_data_size(stride: [usize; 2], shape: [usize; 2]) -> usize { | ||
if shape[0] == 0 || shape[1] == 0 { | ||
return 0; | ||
} | ||
|
||
1 + (shape[0] - 1) * stride[0] + (shape[1] - 1) * stride[1] | ||
} | ||
|
||
/// Panic if expected data size is not identical to actual data size. | ||
pub fn assert_data_size<T: Scalar>(data: &[T], stride: [usize; 2], shape: [usize; 2]) { | ||
let expected = get_expected_data_size(stride, shape); | ||
|
||
assert_eq!( | ||
expected, | ||
data.len(), | ||
"Wrong size for data slice. Actual size {}. Expected size {}.", | ||
data.len(), | ||
expected | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
//! Interface to Blis types | ||
use crate::raw; | ||
// //! Interface to Blis types | ||
// use crate::raw; | ||
|
||
/// Transposition Mode. | ||
#[derive(Clone, Copy, PartialEq)] | ||
#[repr(u32)] | ||
pub enum TransMode { | ||
/// Complex conjugate of matrix. | ||
ConjNoTrans = raw::trans_t_BLIS_CONJ_NO_TRANSPOSE, | ||
/// No modification of matrix. | ||
NoTrans = raw::trans_t_BLIS_NO_TRANSPOSE, | ||
/// Transposition of matrix. | ||
Trans = raw::trans_t_BLIS_TRANSPOSE, | ||
/// Conjugate transpose of matrix. | ||
ConjTrans = raw::trans_t_BLIS_CONJ_TRANSPOSE, | ||
} | ||
// /// Transposition Mode. | ||
// #[derive(Clone, Copy, PartialEq)] | ||
// #[repr(u32)] | ||
// pub enum TransMode { | ||
// /// Complex conjugate of matrix. | ||
// ConjNoTrans = raw::trans_t_BLIS_CONJ_NO_TRANSPOSE, | ||
// /// No modification of matrix. | ||
// NoTrans = raw::trans_t_BLIS_NO_TRANSPOSE, | ||
// /// Transposition of matrix. | ||
// Trans = raw::trans_t_BLIS_TRANSPOSE, | ||
// /// Conjugate transpose of matrix. | ||
// ConjTrans = raw::trans_t_BLIS_CONJ_TRANSPOSE, | ||
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.