MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / af_set_seq_param_indexer

Function af_set_seq_param_indexer

src/api/c/index.cpp:364–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362}
363
364af_err af_set_seq_param_indexer(af_index_t* indexer, const double begin,
365 const double end, const double step,
366 const dim_t dim, const bool is_batch) {
367 try {
368 ARG_ASSERT(0, (indexer != NULL));
369 ARG_ASSERT(4, (dim >= 0 && dim <= 3));
370 af_seq s = af_make_seq(begin, end, step);
371 indexer[dim].idx.seq = s;
372 indexer[dim].isSeq = true;
373 indexer[dim].isBatch = is_batch;
374 }
375 CATCHALL;
376 return AF_SUCCESS;
377}
378
379af_err af_release_indexers(af_index_t* indexers) {
380 try {

Callers

nothing calls this directly

Calls 1

af_make_seqFunction · 0.70

Tested by

no test coverage detected