Trait ToNalgebraFloat

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

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

Required Methods§

Implementations on Foreign Types§

Source§

impl<B: Backend> ToNalgebraFloat<B, 2> for Tensor<B, 2, Float>

Implement trait to convert burn tensor to nalgebra::DMatrix<f32> (Float type)

Implementors§