Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Matrix multiplication method and device and computer readable storage medium

A matrix multiplication operation, matrix technology, applied in the field of matrix operation, can solve problems such as slow operation speed

Inactive Publication Date: 2019-10-25
GUANGDONG COMM & NETWORKS INST
View PDF0 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The main purpose of the present invention is to provide a matrix multiplication operation method, device and computer-readable storage medium, aiming to solve the technical problem of slow operation speed in the existing matrix multiplication operation mode

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Matrix multiplication method and device and computer readable storage medium
  • Matrix multiplication method and device and computer readable storage medium
  • Matrix multiplication method and device and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0063] As an implementation manner, step S20 includes:

[0064] A. Search the first matrix according to the address of the first element of the first matrix in the first scalar parameter, and search the second matrix according to the address of the first element of the second matrix in the second scalar parameter matrix;

[0065] B. Based on the number of rows and columns of the first matrix in the first scalar parameter, determine the first segmentation parameter and the first filling parameter of the first matrix, and, based on the second scalar parameter in the second The number of rows and columns of the matrix determines the second segmentation parameter and the second filling parameter of the second matrix.

[0066] That is, the control module searches the first matrix from the storage module of the associated device according to the address of the first element of the first matrix in the first scalar parameter, and searches the first matrix from the storage module of t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a matrix multiplication operation method and device and a computer readable storage medium, and the method comprises the steps: obtaining a first scalar parameter of a to-be-operated first matrix and a second scalar parameter of a to-be-operated second matrix when a matrix multiplication operation instruction is received; determining a first matrix and a second matrix basedon the first scalar parameter and the second scalar parameter, and determining a first segmentation parameter, a first filling parameter, a second segmentation parameter and a second filling parameter; performing sub-matrix segmentation filling operation on the first matrix based on the first segmentation parameter and the first filling parameter to obtain a first sub-matrix sequence, and performing sub-matrix segmentation filling operation on the second matrix based on the second segmentation parameter and the second filling parameter to obtain a second sub-matrix sequence; and sequentiallyselecting a sub-matrix in the first sub-matrix sequence and a sub-matrix in the second sub-matrix sequence to perform multiplication to obtain a plurality of products, and accumulating the plurality of products to obtain an operation result. The matrix operation speed can be increased, and memory consumption is reduced.

Description

technical field [0001] The invention relates to the field of matrix operations, in particular to a matrix multiplication operation method, device and computer-readable storage medium. Background technique [0002] At present, in the computer field, technologies such as big data, cloud determination, artificial intelligence, the Internet of Things, and autonomous driving continue to rise and develop. The algorithms involved in these technologies include various matrix operations, especially the multiplication of large matrices operation. [0003] At present, general-purpose processors are generally used to perform matrix multiplication operations, but general-purpose processors have poor computing power, and it is very time-consuming and slow to perform multiplication operations on large matrices, which cannot meet the real-time requirements of these technologies. Contents of the invention [0004] The main purpose of the present invention is to provide a matrix multiplica...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F17/16
CPCG06F17/16
Inventor 刘玉佳曹建业
Owner GUANGDONG COMM & NETWORKS INST
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products