Trait ToNalgebraInt

Source
pub trait ToNalgebraInt<B: Backend, const D: usize> {
    // Required methods
    fn to_nalgebra(&self) -> DMatrix<u32>;
    fn into_nalgebra(self) -> DMatrix<u32>;
}
Expand description

Trait for converting burn tensor to nalgebra::DMatrix or nalgebra::DVector (Int type)

Required Methods§

Implementations on Foreign Types§

Source§

impl<B: Backend> ToNalgebraInt<B, 2> for Tensor<B, 2, Int>

Implement trait to convert burn tensor to nalgebra::DMatrix<u32> (Int type)

Implementors§