Skip to content

Commit

Permalink
Incorporate decapodes ACSet serialization (#600)
Browse files Browse the repository at this point in the history
- First pass on extracting and serializing the Decapodes ACSet
representation.
   - Includes working example of Halfar dome PDE.
- Math Expression handles Gradient and Absolute value explicitly.
- Math Expression explicitly incorporates multiplication operations for
consecutive Mrows, and handles equals operators.
- Minor bug fixes and insertion of asserts.

---------

Co-authored-by: Deepsana Shahi <[email protected]>
Co-authored-by: ualiangzhang <[email protected]>
Co-authored-by: Justin <[email protected]> fe6a8c1
  • Loading branch information
3 people committed Oct 27, 2023
1 parent 610e850 commit 39ffa13
Show file tree
Hide file tree
Showing 832 changed files with 60,940 additions and 56,593 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ <h3>Instance variables</h3>
<h3>Methods</h3>
<dl>
<dt id="skema.img2mml.models.decoders.xfmer_decoder.Transformer_Decoder.create_pad_mask"><code class="name flex">
<span>def <span class="ident">create_pad_mask</span></span>(<span>self, matrix: <built-in method tensor of type object at 0x7f6e1495b500>, pad_token: int) ‑> <built-in method tensor of type object at 0x7f6e1495b500></span>
<span>def <span class="ident">create_pad_mask</span></span>(<span>self, matrix: <built-in method tensor of type object at 0x7f6d5ad5b500>, pad_token: int) ‑> <built-in method tensor of type object at 0x7f6d5ad5b500></span>
</code></dt>
<dd>
<div class="desc"></div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ <h3>Class variables</h3>
<h3>Methods</h3>
<dl>
<dt id="skema.img2mml.models.encoding.positional_encoding_for_xfmer.PositionalEncoding.forward"><code class="name flex">
<span>def <span class="ident">forward</span></span>(<span>self, x: <built-in method tensor of type object at 0x7f6e1495b500>) ‑> <built-in method tensor of type object at 0x7f6e1495b500></span>
<span>def <span class="ident">forward</span></span>(<span>self, x: <built-in method tensor of type object at 0x7f6d5ad5b500>) ‑> <built-in method tensor of type object at 0x7f6d5ad5b500></span>
</code></dt>
<dd>
<div class="desc"><p>Defines the computation performed at every call.</p>
Expand Down
2 changes: 1 addition & 1 deletion api/rust/actix_http/body/struct.BodyLimitExceeded.html

Large diffs are not rendered by default.

48 changes: 24 additions & 24 deletions api/rust/actix_http/body/trait.MessageBody.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/rust/actix_http/enum.Payload.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/rust/actix_http/error/enum.DispatchError.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/rust/actix_http/error/enum.ParseError.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/rust/actix_http/error/enum.PayloadError.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/rust/actix_http/error/struct.Error.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions api/rust/actix_http/h1/enum.Message.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Codec message</p>
</div></details><h2 id="variants" class="variants small-section-header">Variants<a href="#variants" class="anchor">§</a></h2><div class="variants"><section id="variant.Item" class="variant"><a href="#variant.Item" class="anchor">§</a><h3 class="code-header">Item(T)</h3></section><div class="docblock"><p>HTTP message.</p>
</div><section id="variant.Chunk" class="variant"><a href="#variant.Chunk" class="anchor">§</a><h3 class="code-header">Chunk(<a class="enum" href="https://doc.rust-lang.org/1.73.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../bytes/bytes/struct.Bytes.html" title="struct bytes::bytes::Bytes">Bytes</a>&gt;)</h3></section><div class="docblock"><p>Payload chunk.</p>
</div></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-Message%3CT%3E" class="impl"><a class="src rightside" href="../../src/actix_http/h1/mod.rs.html#31">source</a><a href="#impl-Debug-for-Message%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T: <a class="trait" href="https://doc.rust-lang.org/1.73.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>&gt; <a class="trait" href="https://doc.rust-lang.org/1.73.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="enum.Message.html" title="enum actix_http::h1::Message">Message</a>&lt;T&gt;</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl"><a class="src rightside" href="../../src/actix_http/h1/mod.rs.html#31">source</a><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.73.0/core/fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.73.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/1.73.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.73.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Encoder%3CMessage%3C(RequestHeadType,+BodySize)%3E%3E-for-ClientCodec" class="impl"><a class="src rightside" href="../../src/actix_http/h1/client.rs.html#191-240">source</a><a href="#impl-Encoder%3CMessage%3C(RequestHeadType,+BodySize)%3E%3E-for-ClientCodec" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../../tokio_util/codec/encoder/trait.Encoder.html" title="trait tokio_util::codec::encoder::Encoder">Encoder</a>&lt;<a class="enum" href="enum.Message.html" title="enum actix_http::h1::Message">Message</a>&lt;(<a class="enum" href="../enum.RequestHeadType.html" title="enum actix_http::RequestHeadType">RequestHeadType</a>, <a class="enum" href="../body/enum.BodySize.html" title="enum actix_http::body::BodySize">BodySize</a>)&gt;&gt; for <a class="struct" href="struct.ClientCodec.html" title="struct actix_http::h1::ClientCodec">ClientCodec</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="../../tokio_util/codec/encoder/trait.Encoder.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="struct" href="https://doc.rust-lang.org/1.73.0/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a></h4></section></summary><div class='docblock'>The type of encoding errors. <a href="../../tokio_util/codec/encoder/trait.Encoder.html#associatedtype.Error">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.encode-1" class="method trait-impl"><a class="src rightside" href="../../src/actix_http/h1/client.rs.html#194-239">source</a><a href="#method.encode-1" class="anchor">§</a><h4 class="code-header">fn <a href="../../tokio_util/codec/encoder/trait.Encoder.html#tymethod.encode" class="fn">encode</a>(
</div></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-Message%3CT%3E" class="impl"><a class="src rightside" href="../../src/actix_http/h1/mod.rs.html#31">source</a><a href="#impl-Debug-for-Message%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T: <a class="trait" href="https://doc.rust-lang.org/1.73.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>&gt; <a class="trait" href="https://doc.rust-lang.org/1.73.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="enum.Message.html" title="enum actix_http::h1::Message">Message</a>&lt;T&gt;</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl"><a class="src rightside" href="../../src/actix_http/h1/mod.rs.html#31">source</a><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.73.0/core/fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.73.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/1.73.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.73.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Encoder%3CMessage%3C(RequestHeadType,+BodySize)%3E%3E-for-ClientCodec" class="impl"><a class="src rightside" href="../../src/actix_http/h1/client.rs.html#191-240">source</a><a href="#impl-Encoder%3CMessage%3C(RequestHeadType,+BodySize)%3E%3E-for-ClientCodec" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../../tokio_util/codec/encoder/trait.Encoder.html" title="trait tokio_util::codec::encoder::Encoder">Encoder</a>&lt;<a class="enum" href="enum.Message.html" title="enum actix_http::h1::Message">Message</a>&lt;(<a class="enum" href="../enum.RequestHeadType.html" title="enum actix_http::RequestHeadType">RequestHeadType</a>, <a class="enum" href="../body/enum.BodySize.html" title="enum actix_http::body::BodySize">BodySize</a>)&gt;&gt; for <a class="struct" href="struct.ClientCodec.html" title="struct actix_http::h1::ClientCodec">ClientCodec</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="../../tokio_util/codec/encoder/trait.Encoder.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="struct" href="https://doc.rust-lang.org/1.73.0/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a></h4></section></summary><div class='docblock'>The type of encoding errors. <a href="../../tokio_util/codec/encoder/trait.Encoder.html#associatedtype.Error">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.encode" class="method trait-impl"><a class="src rightside" href="../../src/actix_http/h1/client.rs.html#194-239">source</a><a href="#method.encode" class="anchor">§</a><h4 class="code-header">fn <a href="../../tokio_util/codec/encoder/trait.Encoder.html#tymethod.encode" class="fn">encode</a>(
&amp;mut self,
item: <a class="enum" href="enum.Message.html" title="enum actix_http::h1::Message">Message</a>&lt;(<a class="enum" href="../enum.RequestHeadType.html" title="enum actix_http::RequestHeadType">RequestHeadType</a>, <a class="enum" href="../body/enum.BodySize.html" title="enum actix_http::body::BodySize">BodySize</a>)&gt;,
dst: &amp;mut <a class="struct" href="../../bytes/bytes_mut/struct.BytesMut.html" title="struct bytes::bytes_mut::BytesMut">BytesMut</a>
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.73.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.73.0/std/primitive.unit.html">()</a>, Self::<a class="associatedtype" href="../../tokio_util/codec/encoder/trait.Encoder.html#associatedtype.Error" title="type tokio_util::codec::encoder::Encoder::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Encodes a frame into the buffer provided. <a href="../../tokio_util/codec/encoder/trait.Encoder.html#tymethod.encode">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Encoder%3CMessage%3C(Response%3C()%3E,+BodySize)%3E%3E-for-Codec" class="impl"><a class="src rightside" href="../../src/actix_http/h1/codec.rs.html#149-197">source</a><a href="#impl-Encoder%3CMessage%3C(Response%3C()%3E,+BodySize)%3E%3E-for-Codec" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../../tokio_util/codec/encoder/trait.Encoder.html" title="trait tokio_util::codec::encoder::Encoder">Encoder</a>&lt;<a class="enum" href="enum.Message.html" title="enum actix_http::h1::Message">Message</a>&lt;(<a class="struct" href="../struct.Response.html" title="struct actix_http::Response">Response</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.73.0/std/primitive.unit.html">()</a>&gt;, <a class="enum" href="../body/enum.BodySize.html" title="enum actix_http::body::BodySize">BodySize</a>)&gt;&gt; for <a class="struct" href="struct.Codec.html" title="struct actix_http::h1::Codec">Codec</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="../../tokio_util/codec/encoder/trait.Encoder.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="struct" href="https://doc.rust-lang.org/1.73.0/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a></h4></section></summary><div class='docblock'>The type of encoding errors. <a href="../../tokio_util/codec/encoder/trait.Encoder.html#associatedtype.Error">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.encode" class="method trait-impl"><a class="src rightside" href="../../src/actix_http/h1/codec.rs.html#152-196">source</a><a href="#method.encode" class="anchor">§</a><h4 class="code-header">fn <a href="../../tokio_util/codec/encoder/trait.Encoder.html#tymethod.encode" class="fn">encode</a>(
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.73.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.73.0/std/primitive.unit.html">()</a>, Self::<a class="associatedtype" href="../../tokio_util/codec/encoder/trait.Encoder.html#associatedtype.Error" title="type tokio_util::codec::encoder::Encoder::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Encodes a frame into the buffer provided. <a href="../../tokio_util/codec/encoder/trait.Encoder.html#tymethod.encode">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Encoder%3CMessage%3C(Response%3C()%3E,+BodySize)%3E%3E-for-Codec" class="impl"><a class="src rightside" href="../../src/actix_http/h1/codec.rs.html#149-197">source</a><a href="#impl-Encoder%3CMessage%3C(Response%3C()%3E,+BodySize)%3E%3E-for-Codec" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../../tokio_util/codec/encoder/trait.Encoder.html" title="trait tokio_util::codec::encoder::Encoder">Encoder</a>&lt;<a class="enum" href="enum.Message.html" title="enum actix_http::h1::Message">Message</a>&lt;(<a class="struct" href="../struct.Response.html" title="struct actix_http::Response">Response</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.73.0/std/primitive.unit.html">()</a>&gt;, <a class="enum" href="../body/enum.BodySize.html" title="enum actix_http::body::BodySize">BodySize</a>)&gt;&gt; for <a class="struct" href="struct.Codec.html" title="struct actix_http::h1::Codec">Codec</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="../../tokio_util/codec/encoder/trait.Encoder.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="struct" href="https://doc.rust-lang.org/1.73.0/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a></h4></section></summary><div class='docblock'>The type of encoding errors. <a href="../../tokio_util/codec/encoder/trait.Encoder.html#associatedtype.Error">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.encode-1" class="method trait-impl"><a class="src rightside" href="../../src/actix_http/h1/codec.rs.html#152-196">source</a><a href="#method.encode-1" class="anchor">§</a><h4 class="code-header">fn <a href="../../tokio_util/codec/encoder/trait.Encoder.html#tymethod.encode" class="fn">encode</a>(
&amp;mut self,
item: <a class="enum" href="enum.Message.html" title="enum actix_http::h1::Message">Message</a>&lt;(<a class="struct" href="../struct.Response.html" title="struct actix_http::Response">Response</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.73.0/std/primitive.unit.html">()</a>&gt;, <a class="enum" href="../body/enum.BodySize.html" title="enum actix_http::body::BodySize">BodySize</a>)&gt;,
dst: &amp;mut <a class="struct" href="../../bytes/bytes_mut/struct.BytesMut.html" title="struct bytes::bytes_mut::BytesMut">BytesMut</a>
Expand Down
Loading

0 comments on commit 39ffa13

Please sign in to comment.