Trait argmin_math::ArgminEye

source ·
pub trait ArgminEye {
    // Required methods
    fn eye(n: usize) -> Self;
    fn eye_like(&self) -> Self;
}
Expand description

Identity matrix

Required Methods§

source

fn eye(n: usize) -> Self

Identity matrix of size n

source

fn eye_like(&self) -> Self

Identity matrix of same size as self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ArgminEye for Vec<Vec<f32>>

source§

fn eye_like(&self) -> Vec<Vec<f32>>

source§

fn eye(n: usize) -> Vec<Vec<f32>>

source§

impl ArgminEye for Vec<Vec<f64>>

source§

fn eye_like(&self) -> Vec<Vec<f64>>

source§

fn eye(n: usize) -> Vec<Vec<f64>>

source§

impl ArgminEye for Vec<Vec<i8>>

source§

fn eye_like(&self) -> Vec<Vec<i8>>

source§

fn eye(n: usize) -> Vec<Vec<i8>>

source§

impl ArgminEye for Vec<Vec<i16>>

source§

fn eye_like(&self) -> Vec<Vec<i16>>

source§

fn eye(n: usize) -> Vec<Vec<i16>>

source§

impl ArgminEye for Vec<Vec<i32>>

source§

fn eye_like(&self) -> Vec<Vec<i32>>

source§

fn eye(n: usize) -> Vec<Vec<i32>>

source§

impl ArgminEye for Vec<Vec<i64>>

source§

fn eye_like(&self) -> Vec<Vec<i64>>

source§

fn eye(n: usize) -> Vec<Vec<i64>>

source§

impl ArgminEye for Vec<Vec<u8>>

source§

fn eye_like(&self) -> Vec<Vec<u8>>

source§

fn eye(n: usize) -> Vec<Vec<u8>>

source§

impl ArgminEye for Vec<Vec<u16>>

source§

fn eye_like(&self) -> Vec<Vec<u16>>

source§

fn eye(n: usize) -> Vec<Vec<u16>>

source§

impl ArgminEye for Vec<Vec<u32>>

source§

fn eye_like(&self) -> Vec<Vec<u32>>

source§

fn eye(n: usize) -> Vec<Vec<u32>>

source§

impl ArgminEye for Vec<Vec<u64>>

source§

fn eye_like(&self) -> Vec<Vec<u64>>

source§

fn eye(n: usize) -> Vec<Vec<u64>>

source§

impl ArgminEye for Array2<f32>

source§

impl ArgminEye for Array2<f64>

source§

impl ArgminEye for Array2<i8>

source§

impl ArgminEye for Array2<i16>

source§

impl ArgminEye for Array2<i32>

source§

impl ArgminEye for Array2<i64>

source§

impl ArgminEye for Array2<u8>

source§

impl ArgminEye for Array2<u16>

source§

impl ArgminEye for Array2<u32>

source§

impl ArgminEye for Array2<u64>

source§

impl<N, R, C> ArgminEye for OMatrix<N, R, C>
where N: Scalar + Zero + One, R: Dim, C: Dim, DefaultAllocator: Allocator<N, R, C>,

source§

fn eye_like(&self) -> OMatrix<N, R, C>

source§

fn eye(n: usize) -> OMatrix<N, R, C>

Implementors§