Results of 1 - 10 of about 30 for matrix (0.010 sec.)
- 5. データ構造 — Python 3.14.8 ドキュメント 12249
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 5. データ構造 テーマ 自動 ライト ダーク | 5. データ構造 ¶ この章では、すでに学んだことについてより詳しく説明するとともに、いくつか新しいこ
...内包表記中の最初の式は任意の式なので、そこに他のリスト内包表記を書くこともできます。 次の、長さ4のリスト3つからなる、3x4 の matrix について考えます: >>> matrix = [ ... [ 1 , 2 , 3 , 4 ], ... [ 5 , 6 , 7 , 8 ], ... [ 9 , 10 , 11 , 12 ], ... ] 次のリスト内...包表記は、matrix の行と列を入れ替えます: >>> [[ row [ i ] for row in matrix ] for i in range ( 4 )] [[1, 5, 9], [2, 6, 10], [3, 7, 11], [4,...この例は次のコードと等価です: >>> transposed = [] >>> for i in range ( 4 ): ... transposed . append ([ row [ i ] for row in matrix ]) ... >>> transposed [[1, 5, 9], [2, 6, 10], [3, 7, 11], [4, 8, 12]] これをもう一度変換すると、次のコードと等価になります... - https://man.mtool.work/python/3.14/tutorial/datastructures.html
- itertools --- 効率的なループ用のイテレータ生成関数群 — Python 3.14.8 ドキュメン... 11372
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » itertools --- 効率的なループ用のイテレータ生成関数群 テーマ 自動 ライト ダーク | itertools --- 効
...Add up the squares of the input values." # sum_of_squares([10, 20, 30]) → 1400 return sumprod ( * tee ( iterable )) # ==== Matrix operations ==== def reshape ( matrix , columns ): "Reshape a 2-D matrix to have a given number of columns." # reshape([(0,...1), (2, 3), (4, 5)], 3) → (0, 1, 2) (3, 4, 5) return batched ( chain . from_iterable ( matrix ), columns , strict = True ) def transpose ( matrix ): "Swap the rows and columns of a 2-D matrix." # transpose([(1, 2, 3)..., (11, 22, 33)]) → (1, 11) (2, 22) (3, 33) return zip ( * matrix , strict = True ) def matmul ( m1 , m2 ): "Multiply two matrices." # matmul([(7, 5), (3, 5)], [(2, 5), (7, 9)]) → (49, 80)... - https://man.mtool.work/python/3.14/library/itertools.html
- 5. データ構造 — Python 3.14.8 ドキュメント 11372
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 5. データ構造 テーマ 自動 ライト ダーク | 5. データ構造 ¶ この章では、すでに学んだことについてより詳しく説明するとともに、いくつか新しいこ
...内包表記中の最初の式は任意の式なので、そこに他のリスト内包表記を書くこともできます。 次の、長さ4のリスト3つからなる、3x4 の matrix について考えます: >>> matrix = [ ... [ 1 , 2 , 3 , 4 ], ... [ 5 , 6 , 7 , 8 ], ... [ 9 , 10 , 11 , 12 ], ... ] 次のリスト内...包表記は、matrix の行と列を入れ替えます: >>> [[ row [ i ] for row in matrix ] for i in range ( 4 )] [[1, 5, 9], [2, 6, 10], [3, 7, 11], [4,...この例は次のコードと等価です: >>> transposed = [] >>> for i in range ( 4 ): ... transposed . append ([ row [ i ] for row in matrix ]) ... >>> transposed [[1, 5, 9], [2, 6, 10], [3, 7, 11], [4, 8, 12]] これをもう一度変換すると、次のコードと等価になります... - https://man.mtool.work/python/3.14/tutorial/datastructures.html
- itertools --- 効率的なループ用のイテレータ生成関数群 — Python 3.14.8 ドキュメン... 11372
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » itertools --- 効率的なループ用のイテレータ生成関数群 テーマ 自動 ライト ダーク | itertools --- 効
...Add up the squares of the input values." # sum_of_squares([10, 20, 30]) → 1400 return sumprod ( * tee ( iterable )) # ==== Matrix operations ==== def reshape ( matrix , columns ): "Reshape a 2-D matrix to have a given number of columns." # reshape([(0,...1), (2, 3), (4, 5)], 3) → (0, 1, 2) (3, 4, 5) return batched ( chain . from_iterable ( matrix ), columns , strict = True ) def transpose ( matrix ): "Swap the rows and columns of a 2-D matrix." # transpose([(1, 2, 3)..., (11, 22, 33)]) → (1, 11) (2, 22) (3, 33) return zip ( * matrix , strict = True ) def matmul ( m1 , m2 ): "Multiply two matrices." # matmul([(7, 5), (3, 5)], [(2, 5), (7, 9)]) → (49, 80)... - https://man.mtool.work/python/3.14/library/itertools.html
- Type Object Structures — Python 3.14.8 ドキュメント 9910
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » Type Object Structures テーマ 自動 ライト ダーク | Type Object Structu
...div__ nb_true_divide binaryfunc __truediv__ nb_inplace_true_divide binaryfunc __itruediv__ nb_index unaryfunc __index__ nb_matrix_multiply binaryfunc __matmul__ __rmatmul__ nb_inplace_matrix_multiply binaryfunc __imatmul__ mp_length lenfunc __len__ mp_..._true_divide ; binaryfunc nb_inplace_floor_divide ; binaryfunc nb_inplace_true_divide ; unaryfunc nb_index ; binaryfunc nb_matrix_multiply ; binaryfunc nb_inplace_matrix_multiply ; } PyNumberMethods ; 注釈 二項関数と三項関数は、すべてのオペランドの型を...mberMethods . nb_index ¶ The corresponding slot ID Py_nb_index is part of the Stable ABI . binaryfunc PyNumberMethods . nb_matrix_multiply ¶ The corresponding slot ID Py_nb_matrix_multiply is part of the Stable ABI (バージョン 3.5 より). binaryfunc PyN... - https://man.mtool.work/python/3.14/c-api/typeobj.html
- Type Object Structures — Python 3.14.8 ドキュメント 9910
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » Type Object Structures テーマ 自動 ライト ダーク | Type Object Structu
...div__ nb_true_divide binaryfunc __truediv__ nb_inplace_true_divide binaryfunc __itruediv__ nb_index unaryfunc __index__ nb_matrix_multiply binaryfunc __matmul__ __rmatmul__ nb_inplace_matrix_multiply binaryfunc __imatmul__ mp_length lenfunc __len__ mp_..._true_divide ; binaryfunc nb_inplace_floor_divide ; binaryfunc nb_inplace_true_divide ; unaryfunc nb_index ; binaryfunc nb_matrix_multiply ; binaryfunc nb_inplace_matrix_multiply ; } PyNumberMethods ; 注釈 二項関数と三項関数は、すべてのオペランドの型を...mberMethods . nb_index ¶ The corresponding slot ID Py_nb_index is part of the Stable ABI . binaryfunc PyNumberMethods . nb_matrix_multiply ¶ The corresponding slot ID Py_nb_matrix_multiply is part of the Stable ABI (バージョン 3.5 より). binaryfunc PyN... - https://man.mtool.work/python/3.14/c-api/typeobj.html
- turtle --- Turtle graphics — Python 3.14.8 ドキュメント 9032
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Graphical user interfaces with Tk » turtle --- Turtle graphics テーマ 自動 ライト ダーク | turtle --- Turtle graphics ¶ ソースコード
...t12 -- a number (optional) t21 -- a number (optional) t12 -- a number (optional) Set or return the current transformation matrix of the turtle shape. If none of the matrix elements are given, return the transformation matrix as a tuple of 4 elements....Otherwise set the given elements and transform the turtleshape according to the matrix consisting of first row t11, t12 and second row t21, t22. The determinant t11 * t22 - t12 * t21 must not be zero, otherwis...e an error is raised. Modify stretchfactor, shearfactor and tiltangle according to the given matrix. >>> turtle = Turtle () >>> turtle . shape ( "square" ) >>> turtle . shapesize ( 4 , 2 ) >>> turtle . shearfactor ( - 0.5... - https://man.mtool.work/python/3.14/library/turtle.html
- turtle --- Turtle graphics — Python 3.14.8 ドキュメント 9032
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Graphical user interfaces with Tk » turtle --- Turtle graphics テーマ 自動 ライト ダーク | turtle --- Turtle graphics ¶ ソースコード
...t12 -- a number (optional) t21 -- a number (optional) t12 -- a number (optional) Set or return the current transformation matrix of the turtle shape. If none of the matrix elements are given, return the transformation matrix as a tuple of 4 elements....Otherwise set the given elements and transform the turtleshape according to the matrix consisting of first row t11, t12 and second row t21, t22. The determinant t11 * t22 - t12 * t21 must not be zero, otherwis...e an error is raised. Modify stretchfactor, shearfactor and tiltangle according to the given matrix. >>> turtle = Turtle () >>> turtle . shape ( "square" ) >>> turtle . shapesize ( 4 , 2 ) >>> turtle . shearfactor ( - 0.5... - https://man.mtool.work/python/3.14/library/turtle.html
- C API Stability — Python 3.14.8 ドキュメント 8139
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » C API Stability テーマ 自動 ライト ダーク | C API Stability ¶ Unless documented otherwise, Python's C API is covered by the Backw
...ivide() PyNumber_InPlaceAdd() PyNumber_InPlaceAnd() PyNumber_InPlaceFloorDivide() PyNumber_InPlaceLshift() PyNumber_InPlaceMatrixMultiply() PyNumber_InPlaceMultiply() PyNumber_InPlaceOr() PyNumber_InPlacePower() PyNumber_InPlaceRemainder() PyNumber_InP...er_InPlaceTrueDivide() PyNumber_InPlaceXor() PyNumber_Index() PyNumber_Invert() PyNumber_Long() PyNumber_Lshift() PyNumber_MatrixMultiply() PyNumber_Multiply() PyNumber_Negative() PyNumber_Or() PyNumber_Positive() PyNumber_Power() PyNumber_Remainder()...floor_divide Py_nb_index Py_nb_inplace_add Py_nb_inplace_and Py_nb_inplace_floor_divide Py_nb_inplace_lshift Py_nb_inplace_matrix_multiply Py_nb_inplace_multiply Py_nb_inplace_or Py_nb_inplace_power Py_nb_inplace_remainder Py_nb_inplace_rshift Py_nb_in... - https://man.mtool.work/python/3.14/c-api/stable.html
- C API Stability — Python 3.14.8 ドキュメント 8139
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » C API Stability テーマ 自動 ライト ダーク | C API Stability ¶ Unless documented otherwise, Python's C API is covered by the Backw
...ivide() PyNumber_InPlaceAdd() PyNumber_InPlaceAnd() PyNumber_InPlaceFloorDivide() PyNumber_InPlaceLshift() PyNumber_InPlaceMatrixMultiply() PyNumber_InPlaceMultiply() PyNumber_InPlaceOr() PyNumber_InPlacePower() PyNumber_InPlaceRemainder() PyNumber_InP...er_InPlaceTrueDivide() PyNumber_InPlaceXor() PyNumber_Index() PyNumber_Invert() PyNumber_Long() PyNumber_Lshift() PyNumber_MatrixMultiply() PyNumber_Multiply() PyNumber_Negative() PyNumber_Or() PyNumber_Positive() PyNumber_Power() PyNumber_Remainder()...floor_divide Py_nb_index Py_nb_inplace_add Py_nb_inplace_and Py_nb_inplace_floor_divide Py_nb_inplace_lshift Py_nb_inplace_matrix_multiply Py_nb_inplace_multiply Py_nb_inplace_or Py_nb_inplace_power Py_nb_inplace_remainder Py_nb_inplace_rshift Py_nb_in... - https://man.mtool.work/python/3.14/c-api/stable.html