SquareRepeatingElement[spec]
インタープリタ,API,あるいはフォーム指定における,タイプ spec の要素の正方配列を表す.
SquareRepeatingElement[spec,max]
最大サイズ max×max の要素の正方配列を表す.
SquareRepeatingElement[spec,{min,max}]
大きさが min から max までの要素の正方配列を表す.
SquareRepeatingElement
SquareRepeatingElement[spec]
インタープリタ,API,あるいはフォーム指定における,タイプ spec の要素の正方配列を表す.
SquareRepeatingElement[spec,max]
最大サイズ max×max の要素の正方配列を表す.
SquareRepeatingElement[spec,{min,max}]
大きさが min から max までの要素の正方配列を表す.
詳細
- Interpreterのコンテキストでは,spec はInterpreterに使われる任意の指定(CompoundElementあるいはRepeatingElementを含む)でよい.
- FormObjectおよびFormFunctionのコンテキストでは,spec はフォームに使われる任意の指定(完全連想を含む)でよい.
例題
すべて開く すべて閉じる例 (3)
SquareRepeatingElementを使ってデータの正方行列を解釈する:
Interpreter[SquareRepeatingElement["Number"]][{{"1.1", "3.2"}, { "32", "22.2"}}]SquareRepeatingElementは,正方ではないデータはうまく処理できない:
Interpreter[SquareRepeatingElement["Number"]][{{"1", "2.5", "3.2"}, {"11", "15", "12.2"}}]APIFunctionで使って複雑なデータを集める:
api = CloudDeploy @ APIFunction[
"data" -> SquareRepeatingElement["Integer"],
Det[#data]&,
AllowedCloudParameterExtensions -> {"json"}
]URLExecute[api, {"data__json" -> "[[1, 2], [3, 4]]"}]スコープ (2)
Interpreter[SquareRepeatingElement["Integer", 2]][{{"1", "2", "3"}, {"11", "22", "33"}, {"111", "222", "333"}}]Interpreter[SquareRepeatingElement["Integer", 2]][{{"1", "2"}, {"3", "4"}}]Interpreter[SquareRepeatingElement["Integer", {2, 100}]][{{"1"}}]Interpreter[SquareRepeatingElement["Integer", {2, 100}]][{{"1", "2"}, {"3", "4"}}]特性と関係 (3)
SquareRepeatingElementは任意のインタープリタ指定と一緒に使うことができる:
Interpreter[SquareRepeatingElement["Integer" | "Country"]][{{"15", "burkina faso"}, {"chad", "5"}}]RepeatingElementと一緒に使うこともできる:
Interpreter[SquareRepeatingElement[RepeatingElement["Number"]]][{{{"1", "2", "3"}, {"1"}}, {{"5", "6"}, {"7"}}}]CompoundElementと一緒に使うこともできる:
Interpreter[SquareRepeatingElement[CompoundElement[<|"country" -> "Country", "city" -> "City"|>]]][{{<|"country" -> "argentina", "city" -> "dubai"|>, <|"city" -> "bangalore", "country" -> "usa"|>}, {<|"country" -> "angola", "city" -> "lahore"|>, <|"city" -> "bangkok", "country" -> "canada"|>}}]考えられる問題 (1)
FormFunctionやFormPageのような構造はSquareRepeatingElementのための特別なインターフェースは表示しない:
CloudDeploy[
FormFunction["data" -> SquareRepeatingElement["Integer"],
Det[#data]&
]]関連するガイド
テキスト
Wolfram Research (2017), SquareRepeatingElement, Wolfram言語関数, https://reference.wolfram.com/language/ref/SquareRepeatingElement.html.
CMS
Wolfram Language. 2017. "SquareRepeatingElement." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/SquareRepeatingElement.html.
APA
Wolfram Language. (2017). SquareRepeatingElement. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SquareRepeatingElement.html
BibTeX
@misc{reference.wolfram_2026_squarerepeatingelement, author="Wolfram Research", title="{SquareRepeatingElement}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/SquareRepeatingElement.html}", note=[Accessed: 31-October-2026]}
BibLaTeX
@online{reference.wolfram_2026_squarerepeatingelement, organization={Wolfram Research}, title={SquareRepeatingElement}, year={2017}, url={https://reference.wolfram.com/language/ref/SquareRepeatingElement.html}, note=[Accessed: 31-October-2026]}