A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://arrayfire.github.io/arrayfire-rust/arrayfire/../arrayfire/struct.Dim4.html below:

arrayfire::Dim4 - Rust

[−][src]Struct arrayfire::Dim4

Dim4 is used to store Array dimensions

impl Dim4[src] pub fn new(dims: &[u64; 4]) -> Self[src]

Create Dim4 object

use arrayfire::Dim4;
let dims = Dim4::new(&[4, 4, 2, 1]);
pub fn elements(&self) -> u64[src]

Get the number of elements represented by Dim4 object

pub fn ndims(&self) -> usize[src]

Get the number of dimensions of Dim4

pub fn get(&self) -> &[u64; 4][src]

Get the dimensions as a slice of 4 values

impl Clone for Dim4[src] impl Copy for Dim4[src] impl Debug for Dim4[src] impl Default for Dim4[src]

Default trait for Dim4 returns an Array of dimensions [1, 1, 1, 1]

impl Display for Dim4[src]

Enables use of Dim4 objects for printing it to display

use arrayfire::Dim4;

let dims = Dim4::new(&[4, 4, 2, 1]);
println!("0th Dimension length is {}", dims[0]); 
impl Index<usize> for Dim4[src]

Enables index operation for Dim4

use arrayfire::Dim4;

let dims = Dim4::new(&[4, 4, 2, 1]);
println!("0th Dimension length is {}", dims[0]); 
println!("1th Dimension length is {}", dims[1]); 
println!("2th Dimension length is {}", dims[2]); 
println!("3th Dimension length is {}", dims[3]); 
type Output = u64

The returned type after indexing.

fn index(&self, _index: usize) -> &u64[src]

Performs the indexing (container[index]) operation.

impl IndexMut<usize> for Dim4[src]

Enables index operation for Dim4 to modify dimensions

use arrayfire::Dim4;

let mut dims = Dim4::new(&[4, 4, 2, 1]);
dims[2] = 4;
println!("Dimensions: {}", dims); 
impl PartialEq<Dim4> for Dim4[src] impl StructuralPartialEq for Dim4[src] impl<T> Any for T where
    T: 'static + ?Sized
[src] impl<T> Borrow<T> for T where
    T: ?Sized
[src] impl<T> BorrowMut<T> for T where
    T: ?Sized
[src] impl<T> From<T> for T[src] pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src] pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src] type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T> ToString for T where
    T: Display + ?Sized
[src] impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src] impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4