Lines Matching full:sparse
1260 const CvSparseMat* sparse = (const CvSparseMat*)sample;
1263 node = cvInitSparseMatIterator( sparse, &mat_iterator );
1280 int idx = *CV_NODE_IDX( sparse, node );
1287 row_sample[idx] = *(float*)CV_NODE_VAL( sparse, node );
1296 int idx = *CV_NODE_IDX( sparse, node );
1304 ptr->val = *(float*)CV_NODE_VAL( sparse, node );
1554 CV_ERROR( CV_StsBadArg, "predict_input should be a matrix or a sparse matrix" );
1628 CvSparseMat* sparse = (CvSparseMat*)predict_input;
1651 // hack: to decrease memory footprint, make all the sparse matrices
1659 // put each row (or column) of predict_input into separate sparse matrix.
1660 node = cvInitSparseMatIterator( sparse, &mat_iterator );
1663 int* idx = CV_NODE_IDX( sparse, node );
1671 *(float*)cvPtrND( sparse, &idx1, 0, 1, 0 ) = *(float*)CV_NODE_VAL( sparse, node );