[src] Trait arrayfire::ConstGenerator

pub trait ConstGenerator: HasAfEnum {
 type OutType: HasAfEnum;
 fn generate(&self, dims: Dim4) -> Array<Self::OutType>;
}

Type Trait to generate a constant Array of given size

Internally, ConstGenerator trait is implemented by following types.

  • f32
  • f64
  • num::Complex<f32>
  • num::Complex<f64>
  • bool
  • i32
  • u32
  • u8
  • i64
  • u64
  • i16
  • u16

Associated Types

type OutType: HasAfEnum

The type of Array object returned by generate function

Loading content...

Required methods

fn generate(&self, dims: Dim4) -> Array<Self::OutType>

Create an Array of dims size from scalar value self.

Parameters

  • dims are the dimensions of the output constant Array
Loading content...

Implementations on Foreign Types

impl ConstGenerator for i64 [src]

type OutType = i64

fn generate(&self, dims: Dim4) -> Array<Self::OutType>[src]

impl ConstGenerator for u64 [src]

type OutType = u64

fn generate(&self, dims: Dim4) -> Array<Self::OutType>[src]

impl ConstGenerator for bool [src]

type OutType = bool

fn generate(&self, dims: Dim4) -> Array<Self::OutType>[src]

impl ConstGenerator for f32 [src]

type OutType = f32

fn generate(&self, dims: Dim4) -> Array<Self::OutType>[src]

impl ConstGenerator for f64 [src]

type OutType = f64

fn generate(&self, dims: Dim4) -> Array<Self::OutType>[src]

impl ConstGenerator for i32 [src]

type OutType = i32

fn generate(&self, dims: Dim4) -> Array<Self::OutType>[src]

impl ConstGenerator for u32 [src]

type OutType = u32

fn generate(&self, dims: Dim4) -> Array<Self::OutType>[src]

impl ConstGenerator for u8 [src]

type OutType = u8

fn generate(&self, dims: Dim4) -> Array<Self::OutType>[src]

impl ConstGenerator for i16 [src]

type OutType = i16

fn generate(&self, dims: Dim4) -> Array<Self::OutType>[src]

impl ConstGenerator for u16 [src]

type OutType = u16

fn generate(&self, dims: Dim4) -> Array<Self::OutType>[src]

Loading content...

Implementors

impl ConstGenerator for c32 [src]

type OutType = c32

fn generate(&self, dims: Dim4) -> Array<Self::OutType>[src]

impl ConstGenerator for c64 [src]

type OutType = c64

fn generate(&self, dims: Dim4) -> Array<Self::OutType>[src]

Loading content...

AltStyle によって変換されたページ (->オリジナル) /