Skip to content

Fix no error message seg fault #211

Closed
@BA8F0D39

Description

@BA8F0D39

For example: matrix addition

let dims = arrayfire::Dim4::new(&[4,4,1,1]);
let a = arrayfire::randu::<f32>(dims);
let sa =  arrayfire::sparse_from_dense(&a ,arrayfire::SparseFormat::CSR);
let b = arrayfire::randu::<f32>(dims);
let sb = arrayfire::sparse_from_dense(&b ,arrayfire::SparseFormat::CSR);
let c = sb.clone() + sa.clone();
arrayfire::af_print!("Random matrix", c);

Results in a segmentation fault

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions