Results of 1 - 7 of about 7 for matrix (0.007 sec.)
- 5. データ構造 12286
- 5. データ構造 この章では、すでに学んだことについてより詳しく説明するとともに、いくつか新しいことを追加します。 5.1. リスト型についてもう少し list 型には、他にもいくつかメソッドがあります。リストオブジェクトのすべてのメソッドを以下に示します
...他のリスト内包表記を書くこともできます。 長さ 4 のリスト 3 つからなるリストで実装した、次の 3x4 の行列について考えます。 >>> 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, 8, 12]] 前の節で見たように、内側のリスト内包表記は、続く f...この例は次のコードと等価です: >>> 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
- 型オブジェクトの構造体 10451
- 型オブジェクトの構造体 新しい型を定義する PyTypeObject 構造体は、Python のオブジェクトシステムで特に重要な構造体の 1 つです。 型オブジェクトは PyObject_* 関数や PyType_* 関数で扱えますが、ほとんどの Python アプリケーションにとって関心のある
...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 ; 注釈 二項関数と三項関数は、すべてのオペランドの型を...NumberMethods . 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 PyNum... - https://man.mtool.work/python/3.14/c-api/typeobj.html
- itertools --- 効率的なループ用のイテレータ生成関数群 10069
- itertools --- 効率的なループ用のイテレータ生成関数群 このモジュールは イテレータ を構築する部品を実装しています。プログラム言語 APL, Haskell, SML からアイデアを得ていますが、 Python に適した形に修正されています。 このモジュールは、高速でメモ
...を求める。" # sum_of_squares([10, 20, 30]) → 1400 return sumprod ( * tee ( iterable )) # ==== 行列の操作 ==== def reshape ( matrix , columns ): "2 次元の行列を指定した列数に変形する。" # 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 ): "2 次元の行列の行と列を入れ替える。" # transpose([(1, 2, 3), (11, 2...2, 33)]) → (1, 11) (2, 22) (3, 33) return zip ( * matrix , strict = True ) def matmul ( m1 , m2 ): "2 つの行列の積を求める。" # matmul([(7, 5), (3, 5)], [(2, 5), (7, 9)]) → (49, 8... - https://man.mtool.work/python/3.14/library/itertools.html
- C API Stability 8978
- C API Stability 特記のない限り、Python の C API には後方互換性ポリシー PEP 387 が適用されます。 変更の大半はソース互換性を保ちます (通常は新しい API の追加だけを行います)。 既存 API の変更や削除は、非推奨の期間を経た後、または重大な問題を修
...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
- What's New in Python 2.1 7506
- What's New in Python 2.1 著者 : A.M. Kuchling はじめに この記事はPython 2.1の新機能について説明します。Python 2.1には Python 2.0ほど多くの変更点はありませんが、楽しい驚きがあります。2.1はPythonの拡張計画(PEP)を使い動かす最初のリリースであ
...ric Python is used for, it would be more useful to be able to perform elementwise comparisons of two matrices, returning a matrix containing the results of a given comparison for each element. If the two matrices are of different sizes, then the compar... - https://man.mtool.work/python/3.14/whatsnew/2.1.html
- typing --- 型ヒントのサポート 7143
- typing --- 型ヒントのサポート Added in version 3.5. ソースコード: Lib/typing.py 注釈 Python ランタイムは、関数や変数の型アノテーションを強制しません。型アノテーションは、 type checkers や IDE、linterなどのサードパーティーツールで使われます。
...ReadOnly [ str ] year : int def mutate_movie ( m : Movie ) -> None : m [ "year" ] = 1999 # 許可される m [ "title" ] = "The Matrix" # 型チェッカーのエラー この性質は実行時には検査されません。 詳細は TypedDict と PEP 705 を参照してください。 Added in ver... - https://man.mtool.work/python/3.14/library/typing.html
- 歴史とライセンス 7143
- 歴史とライセンス Python の歴史 Python は 1990 年代初頭に、ABC という言語の後継として、オランダの Stichting Mathematisch Centrum(CWI、 https://www.cwi.nl 参照)で Guido van Rossum によって作られました。 Python にはほかの多くの人々からの貢献
...ed. 作者: Skip Montanaro Copyright 1999, Bioreason, Inc., all rights reserved. 作者: Andrew Dalke Copyright 1995-1997, Automatrix, Inc., all rights reserved. 作者: Skip Montanaro Copyright 1991-1995, Stichting Mathematisch Centrum, all rights reserved....その著作権表示と本許諾表示の 両方を記載し、明確な事前の書面による許可なく、本ソフトウェアの配布に関する広告または宣伝に Automatrix、Bioreason、Mojam Media のいずれの名称も使用しないことを条件とします。 UUencode 関数と UUdecode 関数 uu コーデックには次の告...を負わないものとします。 test_epoll test.test_epoll モジュールには次の告知が含まれています。 Copyright (c) 2001-2006 Twisted Matrix Laboratories. 本ソフトウェアおよび関連ドキュメントファイル(以下「本ソフトウェア」)のコピーを取得するすべての人に、 本ソフ... - https://man.mtool.work/python/3.14/license.html
PREV
1
NEXT