[][src]Trait smartcore::linalg::high_order::HighOrderOperations

pub trait HighOrderOperations<T: RealNumber>: BaseMatrix<T> {
    pub fn ab(&self, a_transpose: bool, b: &Self, b_transpose: bool) -> Self { ... }
}

High order matrix operations.

Provided methods

pub fn ab(&self, a_transpose: bool, b: &Self, b_transpose: bool) -> Self[src]

Y = AB

use smartcore::linalg::naive::dense_matrix::*;
use smartcore::linalg::high_order::HighOrderOperations;

let a = DenseMatrix::from_2d_array(&[&[1., 2.], &[3., 4.], &[5., 6.]]);
let b = DenseMatrix::from_2d_array(&[&[5., 6.], &[7., 8.], &[9., 10.]]);
let expected = DenseMatrix::from_2d_array(&[&[71., 80.], &[92., 104.]]);

assert_eq!(a.ab(true, &b, false), expected);
Loading content...

Implementors

impl<T: RealNumber> HighOrderOperations<T> for DenseMatrix<T>[src]

Loading content...