Matrix operation support method, electronic device and program

The matrix manipulation method facilitates intuitive gesture-based operations for rotation, circular shift, and transposition of matrix elements, enhancing user interaction and efficiency in matrix transformations.

JP2024116232AActive Publication Date: 2024-08-27CASIO COMPUTER CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2024091328
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-08-27
Estimated Expiration
2041-12-10

AI Technical Summary

Technical Problem

Conventional electronic computing devices and web applications lack intuitive methods for performing advanced matrix element movements such as rotational movement, circular shift, and transposition, which change the arrangement of multiple elements in a matrix.

Method used

A matrix manipulation method that allows for sophisticated movement of matrix components through intuitive gesture operations on a display, including rotation, circular shift, and transposition, by detecting touch positions within specific effective ranges and performing corresponding shifts or swaps based on user gestures.

Benefits of technology

Enables quick and intuitive manipulation of matrix components without the need for icons or menus, allowing for efficient and user-friendly matrix transformations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024116232000001_ABST
    Figure 2024116232000001_ABST
Patent Text Reader

Abstract

To provide a matrix operation method, an electronic device, and a program configured so that matrix components can be moved at a high level by an intuitive operation.SOLUTION: A control unit of an electronic device includes: control processing to display a matrix on a display unit, the matrix being an array of a plurality of components, and change the arrangement of the plurality of components in the matrix according to gesture operation on the matrix displayed on the display unit; and detection processing to detect a touch position on the display unit, and determine that the gesture operation is started when the touched position is within a preset effective range to start the gesture operation on the matrix when touched in. When the gesture operation shows a sliding operation from an arrangement position P1 of a first component to an arrangement position P2 of a second component, for a row R11 of the matrix in which the first component, the second component and a third component are arranged in this order, the control unit circularly shifts the components in the row R11 so that the first component and the second component may shift in the same direction.SELECTED DRAWING: Figure 4
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a matrix manipulation method, an electronic device, and a program. [Background technology]

[0002] 2. Description of the Related Art Conventionally, some electronic calculators have a matrix calculation function for inputting a matrix and performing calculations in addition to the usual four arithmetic calculation functions.

[0003] Also, devices capable of performing basic transformations of matrices (row operations and column operations) are known. For example, Patent Document 1 proposes a device that displays a list of row operation functions related to a matrix together with the matrix, and allows a user to select an equation or input a numerical value required to execute a touched row operation function from the list, thereby performing row operations.

[0004] In recent years, there have also been scientific calculator web applications and scientific calculator applications that run on touch-enabled devices. [Prior art documents] [Patent documents]

[0005] [Patent Document 1] JP 2012-243015 A Summary of the Invention [Problem to be solved by the invention]

[0006] However, conventional electronic computing devices, applications, and web applications do not allow intuitive operations to be performed on advanced matrix element movements (e.g., rotation, circular shift, transposition, etc.) that change the arrangement of multiple elements in a matrix at once.

[0007] The present invention has been made in consideration of the above problems, and has an object to enable advanced movement of matrix elements with intuitive operations. [Means for solving the problem]

[0008] In order to solve the above problems, a first aspect of the matrix manipulation method according to the present invention is a matrix manipulation method executed by a computer, comprising: a control process for displaying a matrix in which a plurality of components are arranged on a display unit; and changing the arrangement of a plurality of components in the matrix based on a gesture operation on the matrix displayed on the display unit; and a detection process for detecting a touch position on the display unit, and judging that the gesture operation has started when it is determined that the touch position at the time of touch-in is within a preset valid range for starting a gesture operation on the matrix. The control process is characterized in that when the gesture operation is an operation of sliding from the arrangement position of the first component to the arrangement position of the second component on a row in which a first component, a second component, and a third component are arranged in this order in the matrix, from the arrangement position of the first component toward the arrangement position of the third component, circularly shifting each component in the row so that at least the first component and the second component shift in the same direction. Furthermore, a second aspect of the matrix manipulation method according to the present invention is a matrix manipulation method executed by a computer, and includes a control process for displaying a matrix in which a plurality of components are arranged on a display unit, and changing the arrangement of the plurality of components in the matrix based on a gesture operation on the matrix displayed on the display unit, and a detection process for detecting a touch position on the display unit, and judging that the gesture operation has started when it is determined that the touch position at the time of touch-in is within a preset valid range for starting a gesture operation on the matrix, wherein the control process is characterized in that when the gesture operation is an operation of sliding from the arrangement position of the first component to the arrangement position of the second component on a column in which a first component, a second component, and a third component are arranged in this order in the matrix, from the arrangement position of the first component toward the arrangement position of the third component, circularly shifting each component in the column so that at least the first component and the second component shift in the same direction. Moreover, an electronic device of a first aspect according to the present invention includes a control unit that displays a matrix in which a plurality of components are arranged on a display unit and changes the arrangement of a plurality of components in the matrix based on a gesture operation on the matrix displayed on the display unit; and a detection unit that detects a touch position on the display unit and determines that the gesture operation has started when it is determined that the touch position at the time of touch-in is within a preset valid range for starting a gesture operation on the matrix, wherein the control unit is characterized in that when the gesture operation is an operation of sliding from the arrangement position of the first component to the arrangement position of the second component on a row in which a first component, a second component, and a third component are arranged in that order in the matrix, from the arrangement position of the first component toward the arrangement position of the third component, circularly shifts each component in the row so that at least the first component and the second component shift in the same direction. In addition, an electronic device of a second aspect of the present invention includes a control unit that displays a matrix in which a plurality of components are arranged on a display unit and changes the arrangement of a plurality of components in the matrix based on a gesture operation on the matrix displayed on the display unit; and a detection unit that detects a touch position on the display unit and determines that the gesture operation has started when it is determined that the touch position at the time of touch-in is within a predetermined valid range for starting a gesture operation on the matrix, wherein the control unit is characterized in that when the gesture operation is an operation of sliding from the arrangement position of the first component to the arrangement position of the second component in a column in which a first component, a second component, and a third component are arranged in this order in the matrix, from the arrangement position of the first component toward the arrangement position of the third component, circularly shifts each component in the column so that at least the first component and the second component shift in the same direction. Furthermore, a first aspect of the program according to the present invention causes a computer to function as: a control unit that displays a matrix in which a plurality of components are arranged on a display unit, and changes the arrangement of a plurality of components in the matrix based on a gesture operation on the matrix displayed on the display unit; and a detection unit that detects a touch position on the display unit, and determines that the gesture operation has started when it is determined that the touch position at the time of touch-in is within a preset valid range for starting a gesture operation on the matrix, and when the control unit determines that the gesture operation is an operation of sliding from the arrangement position of the first component to the arrangement position of the second component on a row in which a first component, a second component, and a third component are arranged in that order in the matrix, from the arrangement position of the first component toward the arrangement position of the third component, circularly shifts each component in the row so that at least the first component and the second component shift in the same direction. Furthermore, a second aspect of the program according to the present invention causes a computer to function as: a control unit that displays a matrix in which a plurality of components are arranged on a display unit, and changes the arrangement of a plurality of components in the matrix based on a gesture operation on the matrix displayed on the display unit; and a detection unit that detects a touch position on the display unit and determines that the gesture operation has started when it is determined that the touch position at the time of touch-in is within a preset valid range for starting a gesture operation on the matrix. When the gesture operation is an operation of sliding from the arrangement position of the first component to the arrangement position of the second component in a column in which a first component, a second component, and a third component are arranged in this order in the matrix, from the arrangement position of the first component toward the arrangement position of the third component, the control unit circularly shifts each component in the column so that at least the first component and the second component shift in the same direction. Effect of the Invention

[0009] According to the present invention, it becomes possible to perform advanced movement of matrix elements through intuitive operations. [Brief description of the drawings]

[0010] [Figure 1] FIG. 2 is a block diagram showing a functional configuration of the electronic device of the present invention. [Diagram 2] FIG. 13 is a diagram illustrating a rotation operation. [Diagram 3] A diagram showing an example of a 2-row, 3-column matrix rotated 90 degrees clockwise. [Figure 4] FIG. 13 is a diagram illustrating a circular shift operation of rows. [Diagram 5] FIG. 2 is a schematic diagram illustrating a circular shift operation of a column. [Figure 6] FIG. 2 is a diagram illustrating a transposition operation. [Figure 7] 2 is a flowchart showing the flow of a matrix manipulation process executed by the control unit in FIG. 1. [Figure 8] 2 is a flowchart showing the flow of row cyclic shift processing executed by the control unit in FIG. 1. [Figure 9] 2 is a flowchart showing the flow of a column cyclic shift process executed by the control unit in FIG. 1. [Figure 10] 2 is a flowchart showing the flow of a transposition process executed by the control unit of FIG. 1. [Figure 11] 4 is a flowchart showing the flow of a rotation process executed by the control unit in FIG. 1. [Figure 12] FIG. 1 is a diagram showing an aspect in which an electronic device is connected to a Web server via a communication network such as the Internet. [Figure 13] 13 is a block diagram showing the functional configuration of the Web server of FIG. 12. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] Hereinafter, the embodiments of the present invention will be described with reference to the drawings. However, the embodiments described below are subject to various limitations that are technically preferable for implementing the present invention. Therefore, the technical scope of the present invention is not limited to the following embodiments and illustrated examples.

[0012] [Configuration of electronic device 100] First, the configuration of electronic device 100 according to the present invention will be described. 1 is a block diagram showing the functional configuration of an electronic device 100 according to this embodiment. The electronic device 100 may be configured, for example, as a tablet terminal, a smartphone, a PC (Personal Computer), or the like equipped with a scientific calculator application (referred to as a scientific calculator app) 121, or may be configured as a device dedicated to calculations, and its form is not particularly limited.

[0013] As shown in FIG. 1, electronic device 100 includes a control unit 11, a storage unit 12, an operation unit 13, a display unit 14, a communication unit 15, etc., and each unit is connected by a bus 16.

[0014] The control unit 11 is configured to include a CPU (Central Processing Unit), a ROM (Read Only Memory), a RAM (Random Access Memory), etc. The CPU of the control unit 11 reads out programs and data stored in the ROM and the storage unit 12, and executes various processes using the RAM as a work area, thereby centrally controlling each unit of the electronic device 100.

[0015] The storage unit 12 is configured with a non-volatile semiconductor memory, a hard disk, etc., and stores various programs and data used by the programs. In this embodiment, the storage unit 12 stores a scientific calculator application 121. The scientific calculator application 121 is an application program that enables the control unit 11 to execute various processes relating to calculations including a matrix manipulation process, which will be described later.

[0016] The operation unit 13 includes a touch panel 131 formed by being superimposed on the screen of the display unit 14. The operation unit 13 may further include various operation buttons, detects operations of the operation buttons and operations on the screen of the display unit 14, and outputs the operation information to the control unit 11.

[0017] The display unit 14 is configured with an LCD (Liquid Crystal Display), an EL (Electro Luminescence) display, or the like, and performs various displays according to display information instructed by the control unit 11.

[0018] The communication unit 15 performs communication control for communicating with external devices via a communication network such as a LAN (Local Area Network) or the Internet.

[0019] [Operation of electronic device 100] Next, the operation of the electronic device 100 will be described. In the electronic device 100, when the operation unit 13 detects an operation to start the scientific calculator application 121, the control unit 11 starts the scientific calculator application 121 and executes the following process in cooperation with the scientific calculator application 121.

[0020] For example, when scientific calculator application 121 is started, control unit 11 causes an input screen to be displayed on display unit 14. When an instruction to input a matrix is ​​detected by touch panel 131 and each component of the matrix is ​​input, control unit 11 causes display unit 14 to display the matrix. When an input of an arithmetic expression including a matrix is ​​detected by touch panel 131 and an instruction to execute the expression is given, control unit 11 performs arithmetic processing based on the input and causes display unit 14 to display the arithmetic result. Here, a matrix refers to an arrangement of multiple components (elements).

[0021] In the electronic device 100 of the present embodiment, the arrangement of multiple elements in a matrix displayed on the display unit 14 can be changed at once by a gesture operation on the matrix. For example, the elements of the matrix can be rotated, circularly shifted, transposed, etc. by a gesture operation on the matrix. A gesture operation for rotating and moving the position of each element of a matrix is ​​called a rotation operation. A gesture operation for circularly shifting the elements of any row or column of the matrix is ​​called a circular shift operation. A gesture operation for transposing the elements of a row and column of a matrix by exchanging them is called a transposition operation.

[0022] (Rotation operation) For example, when a matrix is ​​displayed on the display unit 14, the control unit 11 sets an effective range R1 for starting a rotation operation on the matrix around the displayed matrix as shown in FIG. 2. In this embodiment, a predetermined range around the matrix (not including the matrix itself), for example, a range from the outer periphery of the matrix (for example, a rectangle formed by lines connecting the uppermost point, the uppermost point, the lowermost point, and the lowermost point of the matrix components including parentheses) to a point separated by an inter-element distance (row distance dRow or column distance dCol shown in FIGS. 4 and 5) is set as the effective range R1 for starting a rotation operation. In addition, the center point of the displayed matrix is ​​set as the matrix center point P0. In one embodiment, an area excluding an effective range for starting a transposition operation described later from the predetermined range around the matrix (not including the matrix itself) may be set as the effective range for starting a rotation operation.

[0023] When touch panel 131 detects that a touch has been made within effective range R1 for starting a rotation operation (touch-in), control unit 11 acquires the touch position (coordinates) of the touch as gesture starting point P1.

[0024] When the touch panel 131 detects that the user has rotated and slid the finger (touch position) clockwise or counterclockwise from the gesture start point P1 around the matrix center point P0, the control unit 11 acquires the rotation angle up to the current time (counterclockwise is positive, clockwise is negative), and rotates and displays the entire matrix to be operated by a predetermined angle according to the rotation angle, as shown in FIG. 2. This makes it possible to easily grasp the angle to which the user has rotated the touch position. Note that each time the touch position is rotated by a predetermined angle or more (for example, each time it is rotated by 45°, 135°, 225°, 315°, or more), the position of each component of the matrix may also be rotated by a predetermined angle (for example, 90°) to display the extent to which each component of the matrix is ​​rotated by the current rotation operation so that the user can recognize the degree to which the matrix is ​​rotated.

[0025] When the touch panel 131 detects that the user has removed his / her finger from the screen and touched out (released the touch), the control unit 11 acquires the touched-out position (coordinates) as the gesture end point P2, and acquires the angle formed by the gesture start point P1, the matrix center point P0, and the gesture end point P2 as the rotation angle θ (counterclockwise is positive, and clockwise is negative). Then, the control unit 11 rotates and moves the position of each element of the matrix to be operated by a predetermined angle based on the rotation angle θ, as shown in FIG. 2, and displays it on the display unit 14.

[0026] For example, the control unit 11 rotates and moves each element of the matrix in the following manner in accordance with the rotation angle θ. 0°<θ≦45°: No rotation 45°<θ≦135°: Rotate 90° counterclockwise 135°<θ≦225°: Rotate 180° counterclockwise 225°<θ≦315°: Rotate 270° counterclockwise 315°<θ≦360°: Rotate 360° counterclockwise (i.e., no rotation) 0°<θ≦-45°: No rotation -45°<θ≦-135°: Rotate 90° clockwise -135°<θ≦-225°: Rotate 180° clockwise -225°<θ≦-315°: Rotate 270° clockwise -315°<θ≦-360°: Rotate 360° clockwise (i.e., no rotation) If θ is greater than 360°, the image is rotated in the same way as if θ was the remainder of dividing θ by 360. If θ is less than -360°, the image is rotated in the same way as if θ was the remainder of dividing -θ by 360 x -1.

[0027] FIG. 3 shows an example of a matrix drawn on display unit 14 when a user touches in within the effective range for starting a rotation operation of a 2-row, 3-column matrix, rotates the touch position clockwise by 90°, and then touches out to perform a rotation operation.

[0028] In this way, the rotation operation can be performed by touching the periphery of the matrix and swiping in the rotation direction around the matrix center point P0, which is a gesture operation that allows the positions of multiple elements in the matrix to be rotated in a single operation.This means that the rotation of matrix elements can be performed quickly and intuitively, without the need to operate icons, function buttons, menus, etc.

[0029] (Circular shift operation) For example, when a matrix is ​​displayed on the display unit 14, the control unit 11 sets the effective range for starting the cyclic shift operation for each row and each column within the displayed matrix (for example, R11 to R16 in the examples shown in FIGS. 4 and 5), as shown by dotted lines in FIGS. In this embodiment, a circular shift of rows in a matrix refers to shifting the components of a certain row in the matrix horizontally (right or left) and moving the overflowing components to the vacant space. For example, if the components of a certain row are (1, 2, 3), then when the row is circularly shifted to the right by one, the components of the row become (3, 1, 2). When the row is circularly shifted to the right by two, the components of the row become (2, 3, 1). Additionally, a circular shift of a column in a matrix refers to shifting the components of a certain column in the matrix vertically (up or down) and moving the overflowing components into the vacant space. For example, if the components of a certain column are (1, 2, 3) from the top, when the column is circularly shifted down by one position, the components of the column become (3, 1, 2) from the top. When the column is circularly shifted down by two positions, the components of the column become (2, 3, 1) from the top. In this embodiment, the area surrounding the components of each row in the matrix (for example, R11 to R13 in FIG. 4) is set as the effective range of the start of the circular shift operation for each row. For example, the outer periphery of the effective range of the start of the circular shift operation for each row is set to surround the components of each row, inside the area surrounded by the parentheses of the matrix, and not to overlap with the effective range of other rows. For example, the outer periphery of the effective range in the part between the first and second rows is inside 1 / 2dRow. Also, the area surrounding the components of each column in the matrix (for example, R14 to R16 in FIG. 5) is set as the effective range of the start of the circular shift operation for each column. For example, the outer periphery of the effective range of the start of the circular shift operation for each column is set to surround the components of each column, inside the area surrounded by the parentheses of the matrix, and not to overlap with the effective range of other columns. For example, the outer periphery of the effective range in the part between the first and second columns is inside 1 / 2dCol. In one embodiment, the effective range from which the circular shift operation begins is a rectangular range.

[0030] When touch panel 131 detects that the user has touched within the effective range for starting a circular shift operation of any row or column, control unit 11 acquires the touch position (coordinates) of the touch as gesture starting point P1. 4, when the touch panel 131 detects that a finger (touch position) has been slid (moved) in the horizontal direction from the gesture start point P1, the control unit 11 acquires the horizontally slid distance (horizontal slide distance sRow) and the slide direction (right or left), and cyclically shifts the components of the row that has been slid in the horizontally slid operation in the matrix to be operated, which is displayed on the display unit 14, according to the horizontal slide distance sRow and the slide direction, and displays them on the display unit 14. This allows the user to easily understand how the circular shift of the rows is performed by the horizontal slide of the current touch position.

[0031] When the touch panel 131 detects that the user has removed his / her finger from the screen to perform touch-out, the control unit 11 acquires the touch-out position (coordinates) as the gesture end point P2. Then, according to the horizontal slide distance sRow between the gesture start point P1 and the gesture end point P2 and the slide direction, as shown in FIG. 4, the components of the row operated by the horizontal slide operation of the matrix to be operated are circularly shifted by a predetermined shift amount in a predetermined direction and displayed on the display unit 14.

[0032] For example, the control unit 11 circularly shifts each component of the operated row of the matrix to be operated according to the horizontal slide distance sRow and the slide direction as follows: Here, the distance between columns of the matrix components is dCol, and the number of columns of the matrix is ​​N. Whether to slide to the right or left is determined by the slide direction of the touch position. 0 <sRow<0.5*dCol :スライドしない 0.5*dCol≦sRow<1.5*dCol: Slide one column to the right or left 1.5*dCol≦sRow<2.5*dCol: Slide two columns to the right or left ... (n-0.5)*dCol ≦sRow < (n+0.5)*dCol: Slide n columns to the right or left ... (N-1.5)*dCol≦sRow<(N-0.5)*dCol: Slide N-1 columns to the right or left (N-0.5)*dCol≦sRow: Slide N-1 columns to the right or left (up to a maximum of N-1 columns)

[0033] 5, when the touch panel 131 detects that the finger (touch position) has been slid (moved) vertically from the gesture start point P1, the control unit 11 acquires the vertical sliding distance (vertical sliding distance sCol) and the sliding direction (up or down), and cyclically shifts the components of the column that has been slid vertically in the matrix to be operated, which is displayed on the display unit 14, according to the vertical sliding distance sCol and the sliding direction, and displays them on the display unit 14. This allows the user to easily understand how the columns are cyclically shifted by the vertical sliding of the current touch position.

[0034] When the touch panel 131 detects that the user has removed his / her finger from the screen to perform touch-out, the control unit 11 acquires the touch-out position (coordinates) as the gesture end point P2. Then, according to the vertical slide distance sCol between the gesture start point P1 and the gesture end point P2 and the slide direction, the components of the vertically slid column of the matrix to be operated are circularly shifted by a predetermined shift amount in a predetermined direction and displayed on the display unit 14.

[0035] For example, the control unit 11 cyclically shifts the components of the operated column of the matrix to be operated according to the vertical slide distance sCol as follows: Here, the distance between the rows of the matrix components is dRow, and the number of rows of the matrix is ​​M. Whether to slide up or down is determined by the slide direction. 0 <sCol<0.5*dRow :スライドしない 0.5*dRow≦sCol<1.5*dRow: Slide one row up or down 1.5*dRow≦sCol<2.5*dRow: Slide 2 rows up or down ... (m-0.5)*dRow ≦sCol < (m+0.5)*dRow: Slide m rows up or down ... (M-1.5)*dRow≦sCol<(M-0.5)*dRow: Slide M-1 rows up or down (M-0.5)*dRow ≦sCol: Slide M-1 rows up or down (up to a maximum of M-1 rows)

[0036] In this way, with the circular shift operation, the positions of multiple elements in a matrix can be circularly shifted in a single operation by touching in on the row or column in the matrix that you want to circularly shift and swiping horizontally or vertically, so that the circular shift of matrix elements can be performed quickly and intuitively without having to operate icons, function buttons, menus, etc.

[0037] (Transposition operation) For example, when a matrix is ​​displayed on the display unit 14, the control unit 11 sets, for example, regions R21 and R22 (triangular regions outside the matrix in this embodiment) of a predetermined size located at the upper right and lower left of the displayed matrix as an effective range for starting a transposition operation on the matrix, as shown in Fig. 6. Also, the diagonal of the matrix (a line segment passing through the diagonal components; in this embodiment, a line segment connecting the upper left and lower right of the matrix) is set as a transposition boundary line L1. For example, in this embodiment, regions R21 and R22 are adjacent to the upper right and lower left corners of the matrix brackets. In one embodiment, regions R21 and R22 may be adjacent to the corner elements of the matrix. In this embodiment, region R21 (or region R22) is a triangle whose base is a straight line that passes through the upper right (or lower left) corner of the matrix brackets and is approximately parallel to the transposition boundary line L1. For example, when the length of each side of the triangle is t, t is expressed as follows: 0.5*dCol≦t<1*dCol In this embodiment, the size of the regions R21 and R22 is smaller than the size of the matrix (the apparent size on display) and the size of the effective range R1, and the regions R21 and R22 are set inside the outer periphery of the effective range R1. In one embodiment, the regions R21 and R22 may be located at the upper left and lower right of the displayed matrix. For example, they may be adjacent to the upper left and lower right corners of the brackets of the matrix, or adjacent to the elements at the upper left and lower right corners. In this case, the transposition boundary line L1 may be a line segment connecting the upper right and lower left of the matrix.

[0038] When touch panel 131 detects a touch-in within effective range R21 or R22 for starting a transposition operation, control unit 11 acquires the touched position (coordinates) as a gesture starting point P1. When the touch panel 131 detects that the user has slid the finger (touch position) diagonally from the gesture start point P1 at the upper right, the control unit 11 judges whether the touch position after the movement has crossed the transposition boundary line L1, and if it judges that the touch position has crossed the transposition boundary line L1, the control unit 11 changes the shape of the entire matrix of the operation target displayed on the display unit 14. For example, as shown in FIG. 6, when the touch position after the movement has crossed the transposition boundary line L1, the entire matrix is ​​deformed diagonally (into a parallelogram shape) so that the user can recognize that the touch position has crossed the transposition boundary line L1. This allows the user to easily know whether the touch position has crossed the transposition boundary line L1.

[0039] When the touch panel 131 detects that the user has removed his / her finger from the screen to perform touch-out, the control unit 11 acquires the position (coordinates) of the touch-out as the gesture end point P2, and determines whether the touch position has moved beyond (across) the transposition boundary line L1 based on the coordinates of the gesture start point P1 and the gesture end point P2. If it is determined that the touch position has moved beyond the transposition boundary line L1, the control unit 11 creates a transposed matrix by swapping the row components and column components of the matrix to be operated on, and displays the transposed matrix on the display unit 14. Specifically, the (i,j) component and the (i,j) component are swapped.

[0040] In this way, the transposition operation allows the positions of multiple elements in a matrix to be transposed in a single operation by a gesture operation of touching in on the upper right or lower left part of the matrix and swiping diagonally until it crosses the transposition boundary line L1. Therefore, matrix elements can be transposed quickly and intuitively without having to operate icons, function buttons, menus, etc.

[0041] (Matrix manipulation processing) 7 is a flowchart showing the flow of matrix operation processing executed by control unit 11 when a touch (touch-in) is detected on touch panel 131 while a matrix is ​​being displayed on display unit 14. The matrix operation processing is executed by control unit 11 in cooperation with scientific calculator application 121 stored in storage unit 12.

[0042] First, the control unit 11 determines whether or not a touch position where a touch (touch-in) is detected by the touch panel 131 is within a valid range for starting a gesture operation on a matrix (step S1). The effective range for starting a gesture operation includes the effective ranges of a rotation operation, a circular shift operation, and a transposition operation.

[0043] When it is determined that the touch position is within the effective range for starting a gesture operation on a matrix (step S1; YES), control unit 11 stores the coordinates of the touch position in the RAM as a gesture starting point (step S2).

[0044] Next, control unit 11 determines whether gesture start point P1 is within the area of ​​the matrix displayed on display unit 14 (step S3). If it is determined that the gesture starting point P1 is within the area of ​​the matrix displayed on the display unit 14 (step S3; YES), the control unit 11 determines whether or not a slide (movement) of the touch position has been detected by the touch panel 131 (step S4). When it is determined that the sliding of the touch position has not been detected (step S4; NO), the control unit 11 determines whether or not a touch-out has been detected by the touch panel 131 (step S7). When it is determined that touch-out has not been detected (step S7; NO), the control unit 11 returns to step S4. When it is determined that a touch-out has been detected (step S7; YES), the control unit 11 ends the matrix operation process.

[0045] On the other hand, when it is determined that a slide (movement) of the touch position is detected by the touch panel 131 (step S4; YES), the control unit 11 determines whether the slide direction is the horizontal direction (step S5). When it is determined that the slide direction is the horizontal direction (step S5; YES), the control unit 11 executes a cyclic shift process of the rows (step S6).

[0046] Fig. 8 is a flowchart showing the flow of the circular shift process of rows executed in step S6 of Fig. 7. The circular shift process of rows is executed by the control unit 11 and the scientific calculator application 121 in cooperation with each other.

[0047] In the row circular shift process, the control unit 11 calculates the distance by which the touch position has been slid horizontally (horizontal slide distance sRow) and the slide direction (right or left) (step S61), and based on the horizontal slide distance sRow and the slide direction, circularly shifts the components of the row that is the target of operation of the matrix displayed on the display unit 14 by a predetermined shift amount in a predetermined direction, and displays it on the display unit 14 (step S62). As already described, in which direction and by how much the components of the row being operated on are cyclically shifted based on the slide distance sRow and the slide direction.

[0048] Next, the control unit 11 determines whether or not a touch-out has been detected by the touch panel 131 (step S63). When it is determined that touch-out has not been detected by the touch panel 131 (step S63; NO), the control unit 11 determines whether or not sliding of the touch position has been detected by the touch panel 131 (step S64). When it is determined that the sliding of the touch position has been detected (step S64; YES), the control unit 11 returns to step S61. When it is determined that the sliding of the touch position has not been detected (step S64; NO), the control unit 11 returns to step S63.

[0049] On the other hand, when it is determined that touch-out has been detected by the touch panel 131 (step S63; YES), the control unit 11 acquires the coordinates of the touch-out position as the gesture end point P2, and calculates the horizontal slide distance sRow and the slide direction between the gesture start point P1 and the gesture end point P2 (step S65). Then, based on the horizontal slide distance sRow and the slide direction, the control unit 11 circularly shifts the components of the row of the matrix to be operated displayed on the display unit 14 by a predetermined shift amount in a predetermined direction, and displays the shifted components on the display unit 14 (step S66), and ends the matrix operation process. As already described, in which direction and by how much the components of the row being operated on are cyclically shifted based on the slide distance sRow and the slide direction. If the matrix that is the object of the operation is a matrix included in a formula, the control unit 11 further recalculates the formula using the matrix after the circular shift, and causes the display unit 14 to display the recalculation result.

[0050] 7, if it is determined that the sliding direction of the touch position is not horizontal (step S5; NO), it is determined whether the sliding direction of the touch position is vertical (step S8).If it is determined that the sliding direction of the touch position is vertical (step S8; YES), the control unit 11 executes a circular shift process of the column (step S9). When it is determined that the sliding direction of the touch position is not vertical (step S8; NO), the control unit 11 ends the matrix operation process.

[0051] Fig. 9 is a flowchart showing the flow of the column circular shift process executed in step S9 of Fig. 7. The row circular shift process is executed by the control unit 11 and the scientific calculator application 121 in cooperation with each other.

[0052] In the column circular shift process, the control unit 11 calculates the distance by which the touch position has been slid vertically (vertical slide distance sCol) and the slide direction (up or down) (step S91), and based on the vertical slide distance sCol and the slide direction, circularly shifts the components of the column to be operated on in the matrix to be operated displayed on the display unit 14 by a predetermined shift amount in a predetermined direction, and displays it on the display unit 14 (step S92). As already described, in which direction and by how much the components of the column being operated on are cyclically shifted based on the vertical slide distance sCol and the slide direction.

[0053] Next, the control unit 11 determines whether or not a touch-out has been detected by the touch panel 131 (step S93). When it is determined that touch-out has not been detected by the touch panel 131 (step S93; NO), the control unit 11 determines whether or not sliding of the touch position has been detected by the touch panel 131 (step S94). When it is determined that the sliding of the touch position has been detected (step S94; YES), the control unit 11 returns to step S91. When it is determined that the sliding of the touch position has not been detected (step S94; NO), the control unit 11 returns to step S93.

[0054] On the other hand, when it is determined that touch-out has been detected by the touch panel 131 (step S93; YES), the control unit 11 acquires the coordinates of the touch-out position as the gesture end point P2, and calculates the vertical slide distance sCol and the slide direction between the gesture start point P1 and the gesture end point P2 (step S95). Then, based on the vertical slide distance sCol and the slide direction, the control unit 11 circularly shifts the components of the column to be operated of the matrix to be operated displayed on the display unit 14 by a predetermined shift amount in a predetermined direction, and finalizes the display (step S96), and ends the matrix operation process. As already described, in which direction and by how much the components of the column being operated on are cyclically shifted based on the vertical slide distance sCol and the slide direction. If the matrix that is the object of the operation is a matrix included in the calculation formula, the control unit 11 further recalculates the calculation formula using the matrix after the circular shift, and causes the display unit 14 to display the recalculation result.

[0055] In step S3 of FIG. 7, when it is determined that the gesture starting point P1 is not within the area of ​​the matrix displayed on the display unit 14 (step S3; NO), the control unit 11 determines whether the gesture starting point P1 is within the valid range of the transposition operation set in the upper right or lower left of the matrix (R21 or R22 in FIG. 6) (step S10). In one embodiment, the effective range of the transposition operation may be set to the upper left or lower right of the matrix. In this case, in step S10, the control unit 11 determines whether the gesture start point P1 is within the effective range of the transposition operation set to the upper left or lower right of the matrix. When it is determined that the gesture start point P1 is within the valid range of the transposition operation (step S10; YES), the control unit 11 determines whether or not the sliding of the touch position is detected by the touch panel 131 (step S11). When it is determined that the sliding of the touch position is not detected by the touch panel 131 (step S11; NO), the control unit 11 determines whether or not a touch-out is detected by the touch panel 131 (step S14). When it is determined that touch-out has not been detected (step S14; NO), the control unit 11 returns to step S11. When it is determined that a touch-out has been detected (step S14; YES), the control unit 11 ends the matrix operation process.

[0056] On the other hand, when it is determined that the touch panel 131 has detected the sliding of the touch position (step S11; YES), the control unit 11 determines whether the sliding direction of the touch position is an oblique direction (step S12). When it is determined that the sliding direction of the touch position is an oblique direction (step S12; YES), the control unit 11 executes a transposition process (step S13). When it is determined that the sliding direction of the touch position is not a diagonal direction (step S12; NO), the control unit 11 ends the matrix operation process.

[0057] Fig. 10 is a flowchart showing the flow of the transposition process executed in step S13 of Fig. 7. The transposition process is executed by the control unit 11 and the scientific calculator application 121 in cooperation with each other.

[0058] In the transposition process, the control unit 11 determines whether the touch position after sliding has crossed the transposition boundary line L1 (step S131), and causes the display unit 14 to display the matrix to be operated in a shape according to the determination result (step S132). 6, when the touch position after the slide crosses the transposition boundary line L1, the entire matrix is ​​deformed diagonally (into a parallelogram shape) so that the user can recognize that it has crossed the transposition boundary line L1 and displayed on the display unit 14. When the touch position after the slide does not cross the transposition boundary line L1, the shape of the matrix is ​​not changed and displayed on the display unit 14 so that the user can recognize that it has not crossed the transposition boundary line L1.

[0059] Next, the control unit 11 determines whether or not a touch-out has been detected by the touch panel 131 (step S133). When it is determined that touch-out has not been detected by the touch panel 131 (step S133; NO), the control unit 11 determines whether or not sliding of the touch position has been detected by the touch panel 131 (step S134). When it is determined that the sliding of the touch position has been detected (step S134; YES), the control unit 11 returns to step S131. When it is determined that the sliding of the touch position has not been detected (step S134; NO), the control unit 11 returns to step S133.

[0060] On the other hand, if it is determined that touch-out has been detected by the touch panel 131 (step S133; YES), the control unit 11 acquires the coordinates of the touch-out position as the gesture end point P2, and determines whether the touch position has crossed the transposed boundary line L1 from the coordinates of the gesture start point P1 and the gesture end point P2 (step S135).

[0061] When it is determined that the touch position does not cross the transposition boundary line L1 (step S135; NO), the control unit 11 causes the display unit 14 to display the matrix before the transposition operation (step S137), and ends the transposition process. If it is determined that the touch position has crossed the transposition boundary line L1 (step S135; YES), the control unit 11 generates a transposed matrix by swapping the row components and column components of the matrix to be operated on, and displays it on the display unit 14 (step S136), and ends the transposition process. If the matrix that is the subject of the operation is a matrix included in a formula, control unit 11 further recalculates the formula using the transposed matrix, and causes display unit 14 to display the recalculation result.

[0062] On the other hand, in step S10 of FIG. 7, if it is determined that the gesture starting point P1 is not within the valid range of the transposition operation (step S10; NO), the control unit 11 determines whether or not sliding of the touch position is detected by the touch panel 131 (step S15). When it is determined that the sliding of the touch position has not been detected by the touch panel 131 (step S15; NO), the control unit 11 determines whether or not a touch-out has been detected by the touch panel 131 (step S18). When it is determined that touch-out has not been detected (step S18; NO), the control unit 11 returns to step S15. When it is determined that a touch-out has been detected (step S18; YES), the control unit 11 ends the matrix operation process.

[0063] On the other hand, if it is determined that the touch panel 131 has detected a slide of the touch position (step S15; YES), the control unit 11 determines whether the slide direction of the touch position is a rotation direction around the matrix center point P0 (step S16). When it is determined that the sliding direction of the touch position is a rotation direction around the matrix center point P0 (step S16; YES), the control unit 11 executes a rotation process (step S17). When it is determined that the sliding direction of the touch position is not a rotation direction around the matrix center point P0 (step S16; NO), the control unit 11 ends the matrix operation process.

[0064] Fig. 11 is a flowchart showing the flow of the rotation process executed in step S17 of Fig. 7. The rotation process is executed by the control unit 11 and the scientific calculator application 121 in cooperation with each other.

[0065] In the rotation process, the control unit 11 calculates the rotation angle of the touch position (the angle between the gesture starting point P1, the matrix center point P0, and the touch position; counterclockwise is positive and clockwise is negative) (step S171), and rotates the entire matrix of the operation targets displayed on the display unit 14 by a predetermined angle according to the rotation angle and displays it (step S172).

[0066] Next, the control unit 11 determines whether or not a touch-out has been detected by the touch panel 131 (step S173). When it is determined that touch-out has not been detected by the touch panel 131 (step S173; NO), the control unit 11 determines whether or not sliding of the touch position has been detected by the touch panel 131 (step S174). When it is determined that the sliding of the touch position has been detected (step S174; YES), the control unit 11 returns to step S171. When it is determined that the sliding of the touch position has not been detected (step S174; NO), the control unit 11 returns to step S173.

[0067] When it is determined that touch-out has been detected by touch panel 131 (step S173; YES), control unit 11 acquires the coordinates of the touch-out position as gesture end point P2, and acquires the angle formed by gesture start point P1, matrix center point P0, and gesture end point P2 as rotation angle θ (step S175). Then, control unit 11 rotates and moves the positions of each element of the matrix to be operated based on the rotation angle θ, and displays them on display unit 14 (step S176), and ends the rotation process. If the manipulated matrix is ​​a matrix included in a formula, control unit 11 further recalculates the formula using the matrix after rotation processing, and causes display unit 14 to display the recalculation result.

[0068] On the other hand, in step S1 of FIG. 7, if it is determined that the touch position detected by touch panel 131 is not within the valid range for starting the gesture operation (step S1; NO), control unit 11 executes processing according to a normal operation (step S19) and terminates the matrix operation processing.

[0069] In this way, by executing a matrix operation process, when a gesture operation (swipe) is performed on a matrix displayed on the display unit 14, the control unit 11 can determine whether a rotation operation, a row circular shift operation, a column circular shift operation, or a transposition operation has been performed, and change the arrangement of the matrix components according to the determined operation.

[0070] As described above, the control unit 11 of the electronic device 100 causes the display unit 14 to display a matrix in which multiple components are arranged, and changes the arrangement of the multiple components in the matrix based on a gesture operation on the matrix displayed on the display unit 14. Therefore, it becomes possible to quickly perform advanced movements of matrix elements with intuitive operations.

[0071] In addition, the control unit 11 detects the touch position touched on the display unit 14 using the touch panel 131, and when it determines that the touch position is within a valid range for starting a gesture operation for the matrix that is set in advance, it determines that a gesture operation has started. Therefore, by touching within the effective range for starting a gesture operation, the user can start a gesture operation that changes the arrangement of multiple components in a matrix.

[0072] In addition, when the performed gesture operation is an operation of rotating the touch position by a predetermined rotation angle or more around the matrix center point, the control unit 11 rotates and moves the position of each element of the matrix around the matrix center point. Therefore, the position of each element of the matrix can be rotated by a simple operation of rotating the touch position by a predetermined rotation angle or more around the matrix center point.

[0073] In addition, since the effective range for starting a gesture operation for a rotation operation on a matrix is ​​a specified range around the matrix, the position of each component of the matrix can be rotated by a simple operation of touching the periphery of the matrix and rotating the touch position by more than a specified rotation angle.

[0074] Furthermore, the control unit 11 rotates the position of each element of the matrix by a predetermined angle around the matrix center point, based on the angle by which the touch position has been rotated. Therefore, by adjusting the angle at which the user rotates the touch position, the angle at which each element of the matrix is ​​rotated can be adjusted.

[0075] In addition, when the detected touch position (gesture starting point) is within a valid range set for any row in the matrix and the performed gesture operation is an operation of sliding the touch position horizontally, the control unit 11 circularly shifts the components of the operated row in the matrix. Therefore, by a simple operation of touching any row in the matrix and sliding it horizontally, the components of the touched row can be circularly shifted.

[0076] In addition, when the detected touch position (gesture starting point) is within a valid range set for any column in the matrix and the performed gesture operation is an operation of sliding the touch position vertically, the control unit 11 circularly shifts the components of the operated column in the matrix. Therefore, by a simple operation of touching any column in the matrix and sliding it vertically, the components of the touched column can be cyclically shifted.

[0077] Furthermore, in the circular shift operation, the control unit 11 shifts the elements of the matrix in a predetermined direction by a predetermined shift amount based on the distance and direction in which the touch position is slid. Therefore, by adjusting the distance and direction in which the user slides the touch position, the direction and amount of circular shift of the matrix elements can be adjusted.

[0078] In addition, when the detected touch position (gesture starting point) is within a valid range set at the upper right, lower right, upper left, or lower left of the matrix, and the gesture operation is an operation of sliding the touch position diagonally across the transposition boundary line L1, the control unit 11 generates a transposed matrix by swapping the row components and column components of the matrix. Therefore, by sliding the touch position diagonally downward from the upper right (or upper left) across the transposition boundary line L1, or by sliding the touch position diagonally upward from the lower left (or lower right) across the transposition boundary line L1, the row and column components of the matrix can be easily swapped.

[0079] It should be noted that the contents described in the above embodiment are preferred examples of the matrix manipulation method, electronic device, and program according to the present invention, and are not limited to these. For example, in the above embodiment, the electronic device 100 is equipped with a scientific calculator application 121 for executing the matrix manipulation method of the present invention, and the matrix manipulation method of the present invention is realized by cooperation between the control unit 11 of the electronic device 100 and the scientific calculator application 121 installed in the electronic device 100, but the present invention is not limited thereto. For example, as shown in FIG. 12, the electronic device 100 may be connected to a Web server 200 via a communication network N such as the Internet, a program for executing the matrix manipulation method of the present invention is a Web application 221 that runs on the Web server 200, and the matrix manipulation method of the present invention may be realized by having the Web server 200 execute the Web application 221 via a Web browser installed in the electronic device 100. Here, the Web server 200 is configured to include a control unit 21 configured by a CPU or the like, a storage unit 22 in which the Web application 221 is stored, an operation unit 23, a display unit 24, and a communication unit 25, as shown in FIG. 13, and each unit is connected via a bus 26.

[0080] When the program for executing the matrix manipulation method of the present invention is a Web application 221, the matrix operation (the above-mentioned rotation process, circular shift process, and transposition process) corresponding to the gesture operation is executed by cooperation between the control unit 21 on the Web server 200 side and the Web application 221 stored in the storage unit 22. For example, on the browser side of the electronic device 100, a matrix is ​​displayed in response to a user operation on a screen provided by the Web application 221, and when a gesture operation on the matrix is ​​detected, a set of the matrix value and a matrix transformation function (a function of rotation, circular shift, or transposition) serving as arguments is transmitted to the Web server 200 by the communication unit 15. In the Web server 200, in cooperation with the control unit 21 and the Web application 221, a rotation, circular shift, or transposition operation is performed based on the matrix value and the matrix transformation function received from the browser side (electronic device 100), and the result is transmitted to the browser side of the electronic device 100, and the result is displayed on the screen by the browser of the electronic device 100.

[0081] For example, if the matrix rotation function is rotate(matrix value, rotation angle), the matrix value to the left of the arrow in Figure 3 is matrix A, and the matrix value to the right of the arrow is matrix B, and a gesture operation is performed to rotate matrix A by -90°, the following operation is executed. The browser of the electronic device 100 sends the matrix rotation function "rotate(matrix A, -90°)" to the Web server 200. The Web server 200 calculates the received matrix rotation function and sends the result "matrix B" to the browser of the electronic device 100. The browser of the electronic device 100 receives the result "matrix B" from the Web server 200 and displays the result.

[0082] In the above embodiment, the touch is described as an operation of touching the screen of the display unit with a finger, but the touch in the present invention includes an operation of clicking a mouse and an operation of touching the screen of the display unit with a touch pen. In the above embodiment, the gesture operation of sliding the touch position is described as a swipe with a finger, but the gesture operation may be a drag with a mouse or a slide operation with a touch pen.

[0083] In the above embodiment, a semiconductor memory such as a ROM or a hard disk is used as a computer-readable medium for the program according to the present invention, but the present invention is not limited to this example. As other computer-readable media, a portable recording medium such as an SSD or a CD-ROM can be applied. In addition, a carrier wave can be applied as a medium for providing data of the program according to the present invention via a communication line.

[0084] In addition, the detailed configuration and operation of the electronic device may be modified as appropriate without departing from the spirit of the invention.

[0085] Although the embodiment of the present invention has been described above, the technical scope of the present invention is not limited to the above embodiment, but is defined based on the claims. Furthermore, the technical scope of the present invention also includes equivalent ranges that are made by adding modifications that are not related to the essence of the present invention from the claims. The inventions described in the claims originally attached to this application are set forth below. The claim numbers in the appended claims are the same as those in the claims originally attached to this application. [Additional Notes] <Claim 1> The computer Displaying a matrix in which multiple elements are arranged on a display unit; A matrix manipulation method for changing an arrangement of a plurality of components in the matrix based on a gesture manipulation on the matrix displayed on the display unit. <Claim 2> The computer includes: The matrix manipulation method according to claim 1, further comprising: detecting a touch position on the display unit; and determining that the gesture operation has started when the touch position is determined to be within a valid range for starting a gesture operation for the matrix that has been set in advance. <Claim 3> The computer includes: 3. The matrix manipulation method according to claim 2, wherein when the gesture operation is an operation of rotating the touch position by a predetermined rotation angle or more around a center point of the matrix, the position of each element of the matrix is ​​rotated around the center point. <Claim 4> 4. The matrix manipulation method according to claim 3, wherein an effective range for starting the gesture manipulation with respect to the matrix is ​​a predetermined range around the matrix. <Claim 5> The computer includes: 5. The matrix manipulation method according to claim 3, further comprising rotating a position of each element of the matrix by a predetermined angle around the central point based on an angle by which the touch position is rotated. <Claim 6> The computer includes: 6. The matrix manipulation method according to claim 2, further comprising the step of: when the detected touch position is within the valid range set for any row in the matrix, and the gesture operation is an operation of sliding the touch position laterally, circularly shifting components of the operated row of the matrix. <Claim 7> The computer includes: 7. The matrix manipulation method according to claim 2, further comprising the step of: when the detected touch position is within the valid range set for any column in the matrix, and the gesture operation is an operation of sliding the touch position vertically, circularly shifting components of the operated column of the matrix. <Claim 8> The computer includes: 8. The matrix manipulation method according to claim 6, further comprising the step of shifting elements of the matrix in a predetermined direction by a predetermined shift amount based on a distance and a direction in which the touch position is slid. <Claim 9> The computer includes: 9. The matrix manipulation method according to claim 2, further comprising: generating a transposed matrix by swapping row components and column components of the matrix when the detected touch position is within the effective range set in the upper right or lower left of the matrix and the gesture operation is an operation of sliding the touch position diagonally across a line connecting the upper left and lower right of the matrix. <Claim 10> The computer includes: 9. The matrix manipulation method according to claim 2, further comprising: generating a transposed matrix by swapping row components and column components of the matrix when the detected touch position is within the effective range set in the upper left or lower right of the matrix and the gesture operation is an operation of sliding the touch position diagonally across a straight line connecting the upper right and lower left of the matrix. <Claim 11> 11. The matrix manipulation method according to claim 1, wherein the display unit comprises a touch panel. <Claim 12> The matrix manipulation method according to claim 11 , wherein the gesture manipulation is a swipe. <Claim 13> 11. The matrix manipulation method according to claim 1, wherein the gesture manipulation is a drag. <Claim 14> a control unit that causes a matrix in which a plurality of components are arranged to be displayed on a display unit, and changes an arrangement of the plurality of components in the matrix based on a gesture operation on the matrix displayed on the display unit; An electronic device comprising: <Claim 15> Computer, a control unit that causes a matrix in which a plurality of components are arranged to be displayed on a display unit, and changes an arrangement of the plurality of components in the matrix based on a gesture operation on the matrix displayed on the display unit; A program to function as a [Explanation of symbols]

[0086] 100 Electronic equipment 11 Control section 12 Storage section 121 Scientific calculator app 13 Control section 131 Touch Panel 14 Display section 15 Communications Department 16 Bus

Claims

1. 1. A computer implemented method for matrix manipulation comprising the steps of: a control process for displaying a matrix in which a plurality of components are arranged on a display unit, and changing an arrangement of the plurality of components in the matrix based on a gesture operation on the matrix displayed on the display unit; a detection process for detecting a touch position on the display unit, and determining that the gesture operation has started when it is determined that the touch position at the time of touch-in is within a valid range for starting a gesture operation on the matrix set in advance; Including, When the gesture operation is an operation of sliding a row in which a first component, a second component, and a third component are arranged in this order in the matrix from a position of the first component toward a position of the third component, the control process performs a circular shift on each component in the row such that at least the first component and the second component shift in the same direction. Matrix operation method.

2. 1. A computer implemented method for matrix manipulation comprising the steps of: a control process for displaying a matrix in which a plurality of components are arranged on a display unit, and changing an arrangement of the plurality of components in the matrix based on a gesture operation on the matrix displayed on the display unit; a detection process for detecting a touch position on the display unit, and determining that the gesture operation has started when it is determined that the touch position at the time of touch-in is within a valid range for starting a gesture operation on the matrix set in advance; Including, When the gesture operation is an operation of sliding a column in which a first component, a second component, and a third component are arranged in this order in the matrix from a position of the first component toward a position of the third component, the control process shifts each component in the column circularly such that at least the first component and the second component shift in the same direction. Matrix operation method.

3. the detection process determines that the gesture operation has ended when the user touches the touch panel.

3. The method of claim 1 or 2.

4. a control unit that causes a matrix in which a plurality of components are arranged to be displayed on a display unit, and changes an arrangement of the plurality of components in the matrix based on a gesture operation on the matrix displayed on the display unit; a detection unit that detects a touch position on the display unit, and determines that the gesture operation has started when it is determined that the touch position at the time of touch-in is within a valid range for starting a gesture operation on the matrix that is set in advance; Equipped with when the gesture operation is an operation of sliding a row in which a first component, a second component, and a third component are arranged in this order in the matrix from a position of the first component to a position of the second component from a side of a position of the first component to a side of a position of the third component, the control unit circularly shifts each component in the row such that at least the first component and the second component shift in the same direction. electronic equipment.

5. a control unit that causes a matrix in which a plurality of components are arranged to be displayed on a display unit, and changes an arrangement of the plurality of components in the matrix based on a gesture operation on the matrix displayed on the display unit; a detection unit that detects a touch position on the display unit, and determines that the gesture operation has started when it is determined that the touch position at the time of touch-in is within a valid range for starting a gesture operation on the matrix that is set in advance; Equipped with when the gesture operation is an operation of sliding a column in which a first component, a second component, and a third component are arranged in this order in the matrix from a position of the first component to a position of the second component from a position of the first component toward a position of the third component, the control unit circularly shifts each component in the column such that at least the first component and the second component shift in the same direction. electronic equipment.

6. Computer, a control unit that causes a matrix in which a plurality of components are arranged to be displayed on a display unit, and changes an arrangement of the plurality of components in the matrix based on a gesture operation on the matrix displayed on the display unit; a detection unit that detects a touch position on the display unit, and determines that the gesture operation has started when it is determined that the touch position at the time of touch-in is within a valid range for starting a gesture operation on the matrix that is set in advance; Function as a when the gesture operation is an operation of sliding a row in which a first component, a second component, and a third component are arranged in this order in the matrix from a position of the first component to a position of the second component from a side of a position of the first component to a side of a position of the third component, the control unit circularly shifts each component in the row such that at least the first component and the second component shift in the same direction. program.

7. Computer, a control unit that causes a matrix in which a plurality of components are arranged to be displayed on a display unit, and changes an arrangement of the plurality of components in the matrix based on a gesture operation on the matrix displayed on the display unit; a detection unit that detects a touch position on the display unit, and determines that the gesture operation has started when it is determined that the touch position at the time of touch-in is within a valid range for starting a gesture operation on the matrix that is set in advance; Function as a when the gesture operation is an operation of sliding a column in which a first component, a second component, and a third component are arranged in this order in the matrix from a position of the first component to a position of the second component from a position of the first component toward a position of the third component, the control unit circularly shifts each component in the column such that at least the first component and the second component shift in the same direction. program.

Citation Information

Patent Citations

  • Matrix calculation device and program

    JP2012243015A