- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have an array of matrices and want to set all the matrices to the identity matrix. How do I do this using ippmLoadIdentity_ma_64f_L?
Ipp64f matrixa[] = {
8, 8, 8, 8,
8, 8, 8, 8,
8, 8, 8, 8,
8 ,8 ,8, 8
};
Ipp64f matrixb[] =
{
4, 4, 4, 4,
4, 4, 4, 4,
4, 4, 4, 4,
4, 4, 4, 4
};
Ipp64f matrixc[] =
{
2, 2, 2, 2,
2, 2, 2, 2,
2, 2, 2, 2,
2, 2, 2, 2
};
Ipp64f* pmatrix[] = { matrixb, matrixc, matrixa };
IppStatus status;
status = ippmLoadIdentity_ma_64f_L((const Ipp64f**)pmatrix,0, 0, 0, 4, 4, 3);
It's probably something easy, but what's wrong about the above?
Ipp64f matrixa[] = {
8, 8, 8, 8,
8, 8, 8, 8,
8, 8, 8, 8,
8 ,8 ,8, 8
};
Ipp64f matrixb[] =
{
4, 4, 4, 4,
4, 4, 4, 4,
4, 4, 4, 4,
4, 4, 4, 4
};
Ipp64f matrixc[] =
{
2, 2, 2, 2,
2, 2, 2, 2,
2, 2, 2, 2,
2, 2, 2, 2
};
Ipp64f* pmatrix[] = { matrixb, matrixc, matrixa };
IppStatus status;
status = ippmLoadIdentity_ma_64f_L((const Ipp64f**)pmatrix,0, 0, 0, 4, 4, 3);
It's probably something easy, but what's wrong about the above?
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
The right call is
status = ippmLoadIdentity_ma_64f_L(
(Ipp64f**)pmatrix, 0 , 4*sizeof(Ipp64f), sizeof(Ipp64f), 4, 4, 3);In MX the stride meaning is address increment (difference) between sequential elements in the row (Stride2) and in the column (Stride1) really. All strides are set explicitly for contiguous array too.
Regards,
Vladimir
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page