pub struct MatlabSparseCompat;
Expand description
MATLAB compatibility utilities
Implementations§
Source§impl MatlabSparseCompat
impl MatlabSparseCompat
Sourcepub fn to_matlab(
sparse: &dyn SparseTensor,
name: String,
) -> TorshResult<MatlabSparseMatrix>
pub fn to_matlab( sparse: &dyn SparseTensor, name: String, ) -> TorshResult<MatlabSparseMatrix>
Convert ToRSh sparse tensor to MATLAB sparse matrix
Sourcepub fn from_matlab(
matlab: &MatlabSparseMatrix,
) -> TorshResult<Box<dyn SparseTensor>>
pub fn from_matlab( matlab: &MatlabSparseMatrix, ) -> TorshResult<Box<dyn SparseTensor>>
Convert MATLAB sparse matrix to ToRSh sparse tensor
Sourcepub fn create_load_script(variable_name: &str) -> String
pub fn create_load_script(variable_name: &str) -> String
Create MATLAB script to load sparse matrix from components
Sourcepub fn create_analysis_script(variable_name: &str) -> String
pub fn create_analysis_script(variable_name: &str) -> String
Generate MATLAB analysis script for sparse matrix
Sourcepub fn export_matlab_package(
sparse: &dyn SparseTensor,
output_dir: &Path,
variable_name: &str,
) -> TorshResult<()>
pub fn export_matlab_package( sparse: &dyn SparseTensor, output_dir: &Path, variable_name: &str, ) -> TorshResult<()>
Export complete MATLAB package with matrix and analysis tools
Auto Trait Implementations§
impl Freeze for MatlabSparseCompat
impl RefUnwindSafe for MatlabSparseCompat
impl Send for MatlabSparseCompat
impl Sync for MatlabSparseCompat
impl Unpin for MatlabSparseCompat
impl UnwindSafe for MatlabSparseCompat
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more