Sparse matrix storage method CSRL (Compressed Sparse Row with Local Information) and SpMV (Sparse Matrix Vector Multiplication) realization method based on same
A sparse matrix and implementation method technology, applied in complex mathematical operations and other directions, can solve problems such as inability to vectorize, sparse storage methods do not contain key local information, etc., to reduce access, improve floating-point execution speed, and reduce storage space requirements. Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0037] Such as figure 1 As shown, the specific implementation process of the CSRL method of the present invention,
[0038] (1) For a row in the matrix, scan all the non-zero elements in the row in the sparse matrix A, and store each non-zero element in the array val in sequence, and its length is the number of non-zero elements in A nz;
[0039] (2) If the current non-zero element is the first non-zero element, record its column subscript index, and set the variable length that records the length of the continuous non-zero element segment to 1; if it is not the first non-zero element, then judge the current non-zero element Whether it is adjacent to the previous non-zero element. If it is adjacent, add 1 to length and continue to judge the next non-zero element. If it is not adjacent, the current continuous non-zero element segment ends, and the column subscript of the first non-zero element is stored in the jas array, and the length is stored Enter the jan array. Continu...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com