A RetroSearch Logo

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

Search Query:

Showing content from https://arrayfire.org/docs/getting_started_2integer_8cpp-example.htm below:

ArrayFire: getting_started/integer.cpp

#include <stdio.h>

#include <cstdlib>

int main(int argc, char** argv) {

try {

int device = argc > 1 ? atoi(argv[1]) : 0;

printf(

"\n=== ArrayFire signed(s32) / unsigned(u32) Integer Example "

"===\n");

int h_A[] = {1, 2, 4, -1, 2, 0, 4, 2, 3};

int h_B[] = {2, 3, -5, 6, 0, 10, -12, 0, 1};

printf("--\nSub-refencing and Sub-assignment\n");

A(0) = 11;

A(1) = 100;

A(1, span) = B(2, span);

printf("--Bit-wise operations\n");

printf("\n--Logical operations\n");

printf("\n--Transpose\n");

printf("\n--Flip Vertically / Horizontally\n");

printf("\n--Sum along columns\n");

printf("\n--Product along columns\n");

printf("\n--Minimum along columns\n");

printf("\n--Maximum along columns\n");

printf("\n--Minimum along columns with index\n");

min(out, idx, A);

fprintf(stderr,

"%s\n"

, e.

what

());

throw;

}

return 0;

}

A multi dimensional data container.

array T() const

Get the transposed the array.

An ArrayFire exception class.

virtual const char * what() const

Returns an error message for the exception in a string format.

array::array_proxy col(int index)

Returns a reference to a col.

array::array_proxy row(int index)

Returns a reference to a row.

AFAPI void setDevice(const int device)

Sets the current device.


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