The document describes expression templates, which allow expressions involving variables and arithmetic operations like addition and multiplication to be represented as nested template classes. Variables are represented as Variable objects, and operations like addition return binary_expression objects containing the operands. Functions like eval() and diff() are defined to evaluate and take deriva
This is a story about me being wrong about tests and type systems. It’s also a story of me trying something new and learning a few things. Let’s start at the beginning. C++ vs Python # A few years ago, I was working in a team where the two main languages used were C++ and Python. Here’s what I used to think: C++ sucks: I have to specify types everywhere: I need to know the difference between int,
Update 28 Feb 2019: I added a new blog post with a slide deck containing the presentation I did for PyData Montreal. Introduction Short intro to Python extension objects in C/C++ Zero-copy PyTorch Tensor to Numpy and vice-versa Tensor Storage Shared Memory DLPack: a hope for the Deep Learning frameworks Babel Introduction This post is a tour around the PyTorch codebase, it is meant to be a guide f
最近The C++ Programming Language (4th Edition)を読んでいます. これは最新のC++11に準拠した権威ある(分厚い)解説書です. C++はちょとたしなむ程度でしたが,これを気に真面目に勉強してみようと思います. 勉強のためにUbuntu上でC++11の開発を行えるよう環境設定をしましたので,その工程をまとめておきます. 想定している環境は以下のようになります. OS Ubuntu 12.04 LTS 32bit GCC 4.8.1 参考にしたサイト UbuntuHandbook 1.GCCとG++のバージョン確認 まずは現在の自分の環境を確認します. ・現在のGCCとG++のバージョンを確認します. $ gcc --version $ g++ --version 私の環境では,以下のようになりました. gcc (Ubuntu/Linaro 4.6.3
第2回 C++(標準ライブラリの紹介) 標準ライブラリ(STL)でよく使う機能について紹介します。 ただし書き 以降では聞いたこともないものがたくさん出てきますが、もちろん全て覚える必要はありません stringとvector、ソートは頻出ですが、それ以外のものは簡単な問題では使わなくていいことが多いです 「こんなのがある」ということを覚えてもらい、必要なときにリファレンスを見ながら使えるようになれば十分です string 文字列を扱う。 string str; 空の文字列を宣言 str[i] i番目の文字を参照 str = str2 文字列の代入 str + str2 文字列の連結 str.size() 文字列の長さ str == str2 文字列の比較 str <= str2 str > str2 文字列の辞書順比較 str.find(str2) 文字列の検索(strの中にstr2が見
Version 1.91 is now available! Read about the new features and fixes from June. Integrate with External Tools via Tasks Lots of tools exist to automate tasks like linting, building, packaging, testing, or deploying software systems. Examples include the TypeScript Compiler, linters like ESLint and TSLint as well as build systems like Make, Ant, Gulp, Jake, Rake, and MSBuild. These tools are mostly
皆さんこんにちは お元気ですか。私は元気です。 VIsual Studio CodeでC++の環境を構築します。 C++のコードを書く時に案外いいエディタがなくて結構困ります。 今まではsublime text+ pluginを使っていましたが、デバッガ厳しい、 補完難しいなど色々困っていました。 そこで、試しにVisual Studio CodeでC++の環境を作ってみました。 Visual Studio Code Microsoftが作っているWindows, MacOS, Linuxで動作する 軽量高速な高機能エディタです。 (Visual Studio Code - Visual Studioより) ダウンロードは次のサイトを参考にしてください。 code.visualstudio.com 設定方法 まずは、Visual Studio CodeにC++の環境を構築します。 C++の
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く