Comments (8)
Hello,
The following code is working with AF 2.0, but it makes an error in AF 3.0. How can I implement af::seq with arrayfire open source library?
int m = 5;
array i = seq(m);
from arrayfire.
@hakttari I think we missed this functionality during the code refactor. I have created an feature request for this. You can follow up on progress here
from arrayfire.
This functionality is replaced by iota. The function definition are shown below.
The rep argument allows a repetition dimension to be chosen.
AFAPI array iota(const dim4 &dims, const unsigned rep = 3, af_dtype ty=f32);
AFAPI array iota(const dim_type d0, const unsigned rep = 0, af_dtype ty=f32);
AFAPI array iota(const dim_type d0, const dim_type d1,
const unsigned rep = 1, af_dtype ty=f32);
AFAPI array iota(const dim_type d0, const dim_type d1, const dim_type d2,
const unsigned rep = 2, af_dtype ty=f32);
AFAPI array iota(const dim_type d0, const dim_type d1, const dim_type d2,
const dim_type d3, const unsigned rep = 3, af_dtype ty=f32);
from arrayfire.
What's the point of taking it out? Why shouldn't we put it back in?
Sent from my iPhone
On Dec 18, 2014, at 11:52 PM, Shehzan Mohammed [email protected]
wrote:
This functionality is replaced by iota. The function definition are shown
below.
The rep argument allows a repetition dimension to be chosen.
AFAPI array iota(const dim4 &dims, const unsigned rep = 3, af_dtype ty=f32);
AFAPI array iota(const dim_type d0, const unsigned rep = 0,
af_dtype ty=f32);
AFAPI array iota(const dim_type d0, const dim_type d1,
const unsigned rep = 1, af_dtype ty=f32);
AFAPI array iota(const dim_type d0, const dim_type d1, const dim_type d2,
const unsigned rep = 2, af_dtype ty=f32);
AFAPI array iota(const dim_type d0, const dim_type d1, const dim_type d2,
const dim_type d3, const unsigned rep = 3,
af_dtype ty=f32);
—
Reply to this email directly or view it on GitHub
#51 (comment).
from arrayfire.
iota
is more complete than seq
. We can have a wrapper for this particular operation, but ideally I'd prefer if we forced the usage iota as opposed to seq.
from arrayfire.
We shouldn't break things unless there is a good reason.
Sent from my iPhone
On Dec 18, 2014, at 11:57 PM, Pavan Yalamanchili [email protected]
wrote:
iota is more complete than seq. We can have a wrapper for this particular
operation, but ideally I'd prefer if we forced the usage iota as opposed to
seq.
—
Reply to this email directly or view it on GitHub
#51 (comment).
from arrayfire.
@shehzan10 Can you create a wrapper for this to use iota internally ?
from arrayfire.
@hakttari This has been added to the current devel branch.
from arrayfire.
Related Issues (20)
- binary package for arm64
- [BUG] indexing the second dim with af::seq ignores step
- [BUG] Sorting can fail when a NAN is present HOT 1
- [Build] Bundled "extern" sources in tarball broken HOT 2
- [Build] Syntax error in CMake generator expression for OpenCL HOT 2
- [BUG] Doesn't compile due to errors with spdlog
- [Build] collect2: error: ld returned 1 exit status HOT 3
- [BUG, CUDA backend] af::shift cannot shift an array with one row HOT 4
- Integrate ZLUDA for AMD CUDA HOT 1
- [BUG] Elementwise value assignment silently fails after in-place array downsize using `rows()` HOT 1
- Arrayfire Graph: Extend Sparse Array Functionality
- [Build] Build error on x64-linux
- [Build] OneAPI version 2024 incompatible for MKL
- Per-Array Backend Configuration for Seamless CPU and GPU Integration
- [BUG] Converting from sparse array to dense array right after computation on the coordinates
- [Build] Error : missing lib #include <climits>
- [BUG] bad handling of u8 data in saveImage
- [BUG] FP16 Types Not Allowed for Atan2 Method
- [Question]Memory allocation issue in multithread
- [Urgent security issue] FreeImage arbitrary code execution vulnerability
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arrayfire.