Matrix Calculation Framework Optimizing Temporary Storage

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing matrix calculation methods in programming languages and mathematical libraries are inefficient in resource usage, particularly due to excessive temporary storage requirements, and lack optimization at the expression level, leading to memory issues when dealing with large data sizes.

Innovation Solution

A matrix calculation method and device that convert matrix expressions into transformation expressions, classifying operations into types that can be computed with either partial or full access to operand matrix values, optimizing storage and computation by delaying calculations and using a matrix calculation framework to manage temporary storage and resource usage.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Quantity of substance

If existing matrix calculation methods are used, then matrix operations can be performed, but excessive temporary storage space is required and computing resources are used inefficiently

Engineering Contradiction:
Improvetemporary storage spaceVSAvoidcomputational efficiency
Core Design Contradiction:
Quantity of substanceVSProductivity

Solution Approach 1:

The patent segments the matrix expression into multiple operation types (first type operations that can be computed with partial access to operand values, and second type operations that require full access). This segmentation allows different storage strategies to be applied to different operation types, reducing overall temporary storage requirements while maintaining computational efficiency.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent performs preliminary classification of operations into types before execution. By identifying which operations can be computed with partial access versus full access to operand values, the system can prepare appropriate storage allocations in advance, avoiding excessive temporary storage allocation and improving computational throughput.

Inventive Principle:
Principle #10Preliminary action

2Productivity

If optimization is provided only in units of matrix operations, then individual operations are optimized, but entire matrix expressions cannot be optimized

Engineering Contradiction:
Improvematrix operation optimizationVSAvoidexpression-level optimization capability
Core Design Contradiction:
ProductivityVSAdaptability or versatility

Solution Approach 1:

The patent creates a universal optimization framework that handles both individual matrix operations and entire matrix expressions through a common classification mechanism. The operation type classification system serves multiple functions: it optimizes single operations when executed independently and optimizes sequences of operations when part of a larger expression, providing versatile optimization capability across different contexts.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Solution Approach 2:

The patent implements dynamic optimization by classifying operations based on their specific characteristics and the context in which they appear. The system can adaptively determine whether to optimize individual operations or entire expressions based on the operation types involved, making the optimization process flexible and context-aware rather than rigid and one-size-fits-all.

Inventive Principle:
Principle #15Dynamics

3Reliability

If temporary storage space is allocated for each operation result, then calculation results can be stored, but memory space becomes insufficient when matrix data size is large

Engineering Contradiction:
Improvecalculation result storageVSAvoidmemory space
Core Design Contradiction:
ReliabilityVSQuantity of substance

Solution Approach 1:

The patent applies different storage quality requirements to different operation types. First type operations (computable with partial access) require less stringent storage requirements compared to second type operations (requiring full access). This local differentiation of storage quality allows the system to maintain calculation result reliability where needed while minimizing overall memory consumption.

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The patent changes the storage parameter (amount of temporary space required) based on the operation type. By identifying operations that can tolerate partial access to operand values, the system reduces the storage parameter for those operations, thereby reducing total memory requirements while maintaining the ability to store necessary calculation results for correctness.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS20230077455A1Matrix calculation method and device
Publication Date: 2023.03.16 SUNG JAE MO
  • US20230077455A1 patent drawing
  • US20230077455A1 patent drawing
  • US20230077455A1 patent drawing

AI summary

Provided are a matrix calculation method and device. According to some embodiments of the present invention, a matrix calculation framework intervenes in the compilation or execution of program code including a matrix expression, thereby optimizing matrix calculation. Accordingly, the program code creator's burden of optimizing the matrix calculation can be reduced.