{ "cells": [ { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "Timing: true" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" }, { "data": { "text/html": [ "Took 0ms" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ ":timing" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/html": [ "Took 41928ms" ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "source": [ ":dep nalgebra = \"0.16.12\"" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "data": { "text/html": [ "Took 110103ms" ] }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ ":dep showata = { version = \"0.1.0\", features=[\"show_nalgebra\"]}\n", "//:dep showata = { version = \"0.1.0\", features=[\"show_nalgebra\"], path=\"/Users/davidb/src/github.com/davidB/showata\"}" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "data": { "text/html": [ "Took 6938ms" ] }, "execution_count": 5, "metadata": {}, "output_type": "execute_result" } ], "source": [ "extern crate nalgebra;\n", "extern crate showata;\n", "use nalgebra as na;\n", "use showata::Showable;" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
0123
011121314
121222324
231323334
" ] }, "execution_count": 6, "metadata": {}, "output_type": "execute_result" }, { "data": { "text/html": [ "Took 4541ms" ] }, "execution_count": 6, "metadata": {}, "output_type": "execute_result" } ], "source": [ "let data = na::Matrix3x4::new(11, 12, 13, 14,\n", " 21, 22, 23, 24,\n", " 31, 32, 33, 34);\n", "data" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
0123
011121314
121222324
231323334
" ], "text/plain": [ "Ok(())" ] }, "execution_count": 7, "metadata": {}, "output_type": "execute_result" }, { "data": { "text/html": [ "Took 4117ms" ] }, "execution_count": 7, "metadata": {}, "output_type": "execute_result" } ], "source": [ "data.show()" ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [ { "data": { "text/plain": [ ":vars List bound variables and their types\n", ":opt Toggle optimization\n", ":explain Print explanation of last error\n", ":clear Clear all state, keeping compilation cache\n", ":dep Add dependency. e.g. :dep regex = \"1.0\"\n", "\n", "Mostly for development / debugging purposes:\n", ":last_compile_dir Print the directory in which we last compiled\n", ":timing Toggle printing of how long evaluations take\n", ":last_error_json Print the last compilation error as JSON (for debugging)\n", ":internal_debug Toggle various internal debugging code" ] }, "execution_count": 8, "metadata": {}, "output_type": "execute_result" }, { "data": { "text/html": [ "Took 0ms" ] }, "execution_count": 8, "metadata": {}, "output_type": "execute_result" } ], "source": [ ":help" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Rust", "language": "rust", "name": "rust" }, "language_info": { "codemirror_mode": "rust", "file_extension": ".rs", "mimetype": "text/rust", "name": "Rust", "pygment_lexer": "rust", "version": "" } }, "nbformat": 4, "nbformat_minor": 2 }